[Lldb-commits] [lldb] [lldb-dap] Simplify `readMemory` (PR #109485)

via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 20 15:05:42 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 65c57066e099fe7f1357485cd6c4fb068bc82323 48718649469aae62b2945e7de22cf7280316b757 --extensions 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 1ee04f0089..ca742e8cee 100644
--- a/lldb/tools/lldb-dap/lldb-dap.cpp
+++ b/lldb/tools/lldb-dap/lldb-dap.cpp
@@ -4418,8 +4418,7 @@ void request_readMemory(const llvm::json::Object &request) {
   addr_int += GetSigned(arguments, "offset", 0);
   const uint64_t count_requested = GetUnsigned(arguments, "count", 0);
 
-  lldb::SBAddress addr =
-      g_dap.target.ResolveLoadAddress(addr_int);
+  lldb::SBAddress addr = g_dap.target.ResolveLoadAddress(addr_int);
 
   // We also need support reading 0 bytes
   // VS Code sends those requests to check if a `memoryReference`

``````````

</details>


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


More information about the lldb-commits mailing list