[Lldb-commits] [lldb] Fix loading UUIDs from ELF headers. (PR #117028)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 20 11:01:09 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 012dd8be4b5a4c00deb22345c630990f160b3aa3 37eccb509ea6468879cf530c6952aab7adec4001 --extensions cpp -- lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp b/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
index e58c06b9bd..cd95b00046 100644
--- a/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
+++ b/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
@@ -1042,8 +1042,8 @@ UUID ProcessElfCore::FindBuidIdInCoreMemory(lldb::addr_t address) {
// We need to slide the address of the p_vaddr as these values don't get
// relocated in memory.
const lldb::addr_t vaddr = program_header.p_vaddr + address;
- byte_read = ReadMemory(vaddr, note_bytes.data(), program_header.p_memsz,
- error);
+ byte_read =
+ ReadMemory(vaddr, note_bytes.data(), program_header.p_memsz, error);
if (byte_read != program_header.p_memsz)
continue;
DataExtractor segment_data(note_bytes.data(), note_bytes.size(),
``````````
</details>
https://github.com/llvm/llvm-project/pull/117028
More information about the lldb-commits
mailing list