[Lldb-commits] [lldb] [lldb] Handle an empty SBMemoryRegionInfo from scripted process (PR #115963)

via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 13 10:32:11 PST 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 b0a4e958e85784cff46303c92b6a3a14b20fa1d8 aadf21dddfd0f053956b93cd431272e3f237d646 --extensions c,cpp -- lldb/test/API/functionalities/scripted_process_empty_memory_region/main.c lldb/source/Target/Process.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index ba4701e266..5a847782ab 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -6190,8 +6190,7 @@ Status Process::GetMemoryRegionInfo(lldb::addr_t load_addr,
   if (error.Success() && range_info.GetRange().GetRangeBase() == 0 &&
       (range_info.GetRange().GetByteSize() == 0 ||
        range_info.GetRange().GetByteSize() == UINT64_MAX))
-    error =
-        Status::FromErrorString("Invalid memory region");
+    error = Status::FromErrorString("Invalid memory region");
 
   return error;
 }

``````````

</details>


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


More information about the lldb-commits mailing list