[Lldb-commits] [lldb] [lldb-dap] Add 'source' references to stack frames without source files. (PR #128268)

via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 21 17:53:47 PST 2025


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 79261d4aab4f7a0f56f5ea32a5ac06241c5cd94a 2f7885cfac5d5049c317de56109eed3bd2579acc --extensions cpp -- lldb/tools/lldb-dap/JSONUtils.cpp lldb/tools/lldb-dap/lldb-dap.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/tools/lldb-dap/lldb-dap.cpp b/lldb/tools/lldb-dap/lldb-dap.cpp
index 1da8358eb5..a6db74cd3f 100644
--- a/lldb/tools/lldb-dap/lldb-dap.cpp
+++ b/lldb/tools/lldb-dap/lldb-dap.cpp
@@ -3503,7 +3503,8 @@ void request_source(DAP &dap, const llvm::json::Object &request) {
     response["success"] = false;
     response["message"] = "source not found";
   } else {
-    lldb::SBInstructionList insts = frame.GetSymbol().GetInstructions(dap.target);
+    lldb::SBInstructionList insts =
+        frame.GetSymbol().GetInstructions(dap.target);
     lldb::SBStream stream;
     insts.GetDescription(stream);
     body["content"] = stream.GetData();

``````````

</details>


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


More information about the lldb-commits mailing list