[Lldb-commits] [lldb] Initial step in targets DAP support (PR #86623)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 25 21:02:16 PDT 2024
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 93f9fb2c825dba48db64d5f726b54bcbd4766009 b2dfdb546808c495779e5781c6619fcadb752b00 -- lldb/test/API/tools/lldb-dap/stepInTargets/main.cpp lldb/include/lldb/API/SBLineEntry.h lldb/include/lldb/API/SBSymbolContextList.h lldb/source/API/SBLineEntry.cpp lldb/tools/lldb-dap/DAP.h lldb/tools/lldb-dap/lldb-dap.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/test/API/tools/lldb-dap/stepInTargets/main.cpp b/lldb/test/API/tools/lldb-dap/stepInTargets/main.cpp
index cd4419e8a4..d3c3dbcc13 100644
--- a/lldb/test/API/tools/lldb-dap/stepInTargets/main.cpp
+++ b/lldb/test/API/tools/lldb-dap/stepInTargets/main.cpp
@@ -1,17 +1,11 @@
-int foo(int val, int extra) {
- return val + extra;
-}
+int foo(int val, int extra) { return val + extra; }
-int bar() {
- return 22;
-}
+int bar() { return 22; }
-int bar2() {
- return 54;
-}
+int bar2() { return 54; }
-int main(int argc, char const *argv[]) {
+int main(int argc, char const *argv[]) {
foo(bar(), bar2()); // set breakpoint here
return 0;
}
diff --git a/lldb/tools/lldb-dap/lldb-dap.cpp b/lldb/tools/lldb-dap/lldb-dap.cpp
index e27c078d14..30cba6d23f 100644
--- a/lldb/tools/lldb-dap/lldb-dap.cpp
+++ b/lldb/tools/lldb-dap/lldb-dap.cpp
@@ -3186,7 +3186,7 @@ void request_stepIn(const llvm::json::Object &request) {
auto it = g_dap.step_in_targets.find(target_id);
if (it != g_dap.step_in_targets.end())
step_in_target = it->second;
-
+
const bool single_thread = GetBoolean(arguments, "singleThread", false);
lldb::RunMode run_mode =
single_thread ? lldb::eOnlyThisThread : lldb::eOnlyDuringStepping;
``````````
</details>
https://github.com/llvm/llvm-project/pull/86623
More information about the lldb-commits
mailing list