[Lldb-commits] [lldb] [lldb] Add a DataFileCache for ObjectFile header bytes (PR #231344)

via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 12 22:25:38 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r origin/main...HEAD lldb/test/API/macosx/memory-read-module-symtab/TestMemoryReadModuleSymtab.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- TestMemoryReadModuleSymtab.py	2026-10-13 05:23:25.000000 +0000
+++ TestMemoryReadModuleSymtab.py	2026-10-13 05:25:06.611920 +0000
@@ -151,11 +151,10 @@
         # The Mach-O header and load commands should have been read from
         # the 'headerbytes' DataCacheFile, and the SymbolTable aka LINKEDIT
         # should have been read from the 'symtab' DataCacheFile.
         for addrs in memory_read_addrs:
             for addr in addrs:
-
                 # Check that the address isn't in the range of the
                 # mach-o header and load commands.
                 if addr >= exe_header_start and addr < exe_header_end:
                     print(
                         "Address 0x%x was read from a.out's Mach-O header and load commands.  It should have been retrieved from the 'headerbytes' DataFileCache file."

``````````

</details>


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


More information about the lldb-commits mailing list