[all-commits] [llvm/llvm-project] 3475b3: Enable LLDB to load large dSYM files. (#164471)

Greg Clayton via All-commits all-commits at lists.llvm.org
Thu Oct 30 14:09:07 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3475b3f97b3060880c31c8b8a440f47f9d654e49
      https://github.com/llvm/llvm-project/commit/3475b3f97b3060880c31c8b8a440f47f9d654e49
  Author: Greg Clayton <gclayton at fb.com>
  Date:   2025-10-30 (Thu, 30 Oct 2025)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
    A lldb/test/Shell/ObjectFile/MachO/Inputs/section-overflow-binary
    A lldb/test/Shell/ObjectFile/MachO/section-overflow-binary.test

  Log Message:
  -----------
  Enable LLDB to load large dSYM files. (#164471)

llvm-dsymutil can produce mach-o files where some sections in __DWARF
exceed the 4GB barrier and subsequent sections in the dSYM will be
inaccessible because the mach-o section_64 structure only has a 32 bit
file offset. This patch enables LLDB to load a large dSYM file by
figuring out when this happens and properly adjusting the file offset of
the LLDB sections.

I was unable to add a test as obj2yaml and yaml2obj are broken for
mach-o files and they can't convert a yaml file back into a valid mach-o
object file. Any suggestions for adding a test would be appreciated.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list