Skip to content

Split DWARF support #156

@SaschaZorn

Description

@SaschaZorn

Is it planed to add Split DWARF support to bloaty?

-d compileunits does not work for my build where debug info is outsourced into external .dwo files.

    VM SIZE                                                          FILE SIZE
 --------------                                                    --------------
   0.0%       0 [section .debug_ranges]                             4.46Mi  26.0%
   0.0%       0 [section .debug_addr]                               4.41Mi  25.7%
   0.0%       0 [section .debug_line]                               2.78Mi  16.2%
   0.0%       0 [section .gdb_index]                                2.78Mi  16.2%
  77.2%  1.52Mi [DWARF is missing filename]                         1.86Mi  10.9%

readelf --debug-dump looks like this:

Contents of the .debug_info section:

  Compilation Unit @ offset 0x0:
   Length:        0x30 (32-bit)
   Version:       4
   Abbrev Offset: 0x0
   Pointer Size:  8
 <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
    <c>   DW_AT_ranges      : 0x106d0
    <10>   DW_AT_low_pc      : 0x0
    <18>   DW_AT_stmt_list   : 0x0
    <1c>   DW_AT_GNU_dwo_name: (indirect string, offset: 0x0): product/CMakeFiles/product_module_objlib.dir/product.cpp.dwo
    <20>   DW_AT_comp_dir    : (indirect string, offset: 0x40): /develop/git1/gen/opt
    <24>   DW_AT_GNU_pubnames: 1
    <24>   DW_AT_GNU_addr_base: 0x0
    <28>   DW_AT_GNU_dwo_id  : 0xdb38d234acb62a94
    <30>   DW_AT_GNU_ranges_base: 0x0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions