[Lldb-commits] [lldb] [lldb] Add step back single instruction for targets supporting reverse execution (PR #191183)

via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 9 05:56:36 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- lldb/include/lldb/Target/Thread.h lldb/include/lldb/Target/ThreadPlanStepInstruction.h lldb/include/lldb/lldb-private-enumerations.h lldb/source/API/SBThread.cpp lldb/source/API/SBThreadPlan.cpp lldb/source/Commands/CommandObjectThread.cpp lldb/source/Interpreter/CommandInterpreter.cpp lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp lldb/source/Plugins/DynamicLoader/Windows-DYLD/DynamicLoaderWindowsDYLD.cpp lldb/source/Target/StopInfo.cpp lldb/source/Target/Thread.cpp lldb/source/Target/ThreadPlanStepInstruction.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp
index 083b1a0ca..9f4c923db 100644
--- a/lldb/source/Target/Thread.cpp
+++ b/lldb/source/Target/Thread.cpp
@@ -2339,7 +2339,8 @@ Status Thread::StepBack() {
   }
 
   if (!process->SupportsReverseDirection()) {
-    return Status::FromErrorString("process does not support reverse execution");
+    return Status::FromErrorString(
+        "process does not support reverse execution");
   }
 
   Status error;

``````````

</details>


https://github.com/llvm/llvm-project/pull/191183


More information about the lldb-commits mailing list