[Lldb-commits] [lldb] [lldb][DWARF] Only log address range error to verbose channel (PR #144037)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 13 03:04:34 PDT 2025


Michael137 wrote:

Example CU where we fail to get the address range info:
```
builds-lldb/debug/lib/liblldbPluginSymbolFileDWARF.a(DWARFDebugInfoEntry.cpp.o):        file format Mach-O arm64

.debug_info contents:

0x0000000c: DW_TAG_compile_unit
              DW_AT_producer    ("Apple clang version 17.0.0 (clang-1700.3.10.902) [+internal-os]")
              DW_AT_language    (DW_LANG_C_plus_plus_14)
              DW_AT_name        ("/Users/jonas/Git/llvm-worktrees/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp")
              DW_AT_str_offsets_base    (0x00000008)
              DW_AT_stmt_list   (0x00000000)
              DW_AT_comp_dir    ("/Users/jonas/Git/llvm-worktrees/llvm-project/builds-lldb/debug")
              DW_AT_low_pc      (0x0000000000000000)
              DW_AT_ranges      (indexed (0xd) rangelist = 0x00000105
                 [0x0000000000000000, 0x0000000000011be8)
                 [0x0000000000011c80, 0x0000000000012064)
                 [0x00000000000120fc, 0x0000000000012164)
                 [0x0000000000012178, 0x00000000000121f4)
                 [0x0000000000012208, 0x0000000000013380))
              DW_AT_addr_base   (0x00000008)
              DW_AT_rnglists_base       (0x0000000c)
              DW_AT_loclists_base       (0x0000000c)

0x00000031:   DW_TAG_namespace
                DW_AT_name      ("llvm")

0x0000003f:     DW_TAG_namespace
                  DW_AT_name    ("dwarf")

0x0000092e:       DW_TAG_structure_type
                    DW_AT_calling_convention    (DW_CC_pass_by_value)
                    DW_AT_name  ("FormParams")
                    DW_AT_byte_size     (0x06)
                    DW_AT_decl_file     ("/Users/jonas/Git/llvm-worktrees/llvm-project/llvm/include/llvm/BinaryFormat/Dwarf.h")
                    DW_AT_decl_line     (1093)

0x00000962:         DW_TAG_subprogram
                      DW_AT_linkage_name        ("_ZNK4llvm5dwarf10FormParams18getRefAddrByteSizeEv")
                      DW_AT_name        ("getRefAddrByteSize")
                      DW_AT_decl_file   ("/Users/jonas/Git/llvm-worktrees/llvm-project/llvm/include/llvm/BinaryFormat/Dwarf.h")
                      DW_AT_decl_line   (1104)
                      DW_AT_type        (0x0008192d "uint8_t")
                      DW_AT_declaration (true)
                      DW_AT_external    (true)
```

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


More information about the lldb-commits mailing list