[Lldb-commits] [lldb] [lldb/linux] Make truncated reads work (PR #106532)

via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 29 04:45:32 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 fdca2c33a1f33f4886d969ea0f0219764c7b6b59 610757ced98139d3d10451dcca195692b0c2d832 --extensions cpp -- lldb/test/API/functionalities/memory/holes/main.cpp lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/test/API/functionalities/memory/holes/main.cpp b/lldb/test/API/functionalities/memory/holes/main.cpp
index b641fd2ebe..3228a1bff7 100644
--- a/lldb/test/API/functionalities/memory/holes/main.cpp
+++ b/lldb/test/API/functionalities/memory/holes/main.cpp
@@ -27,7 +27,8 @@ int getpagesize() {
 
 char *allocate_memory_with_holes() {
   int pagesize = getpagesize();
-  void *mem = VirtualAlloc(nullptr, num_pages * pagesize, MEM_RESERVE, PAGE_NOACCESS);
+  void *mem =
+      VirtualAlloc(nullptr, num_pages * pagesize, MEM_RESERVE, PAGE_NOACCESS);
   if (!mem) {
     std::cerr << std::system_category().message(GetLastError()) << std::endl;
     exit(1);

``````````

</details>


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


More information about the lldb-commits mailing list