`statistics dump` command relies on `SymbolFile::GetDebugInfoSize()` to get total debug info size. The current implementation is missing debug info for split dwarf scenarios which requires getting debug info from separate dwo/dwp files. This patch fixes this issue for split dwarf by parsing debug info from dwp/dwo. New yaml tests are added. --------- Co-authored-by: jeffreytan81 <jeffreytan@fb.com>
38 lines
1.8 KiB
YAML
38 lines
1.8 KiB
YAML
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
SectionHeaderStringTable: .strtab
|
|
Sections:
|
|
- Name: .debug_str_offsets.dwo
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_EXCLUDE ]
|
|
AddressAlign: 0x1
|
|
Content: 180000000500000000000000040000000800000097000000F6000000
|
|
- Name: .debug_str.dwo
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_EXCLUDE, SHF_MERGE, SHF_STRINGS ]
|
|
AddressAlign: 0x1
|
|
EntSize: 0x1
|
|
Content: 666F6F00696E740046616365626F6F6B20636C616E672076657273696F6E2031352E302E3020287373683A2F2F6769742E7669702E66616365626F6F6B2E636F6D2F646174612F6769747265706F732F6F736D6574612F65787465726E616C2F6C6C766D2D70726F6A656374203435616538646332373465366362636264343064353734353136643533343337393662653135323729002F686F6D652F6A65666672657974616E2F6C6C766D2D73616E642F65787465726E616C2F6C6C766D2D70726F6A6563742F6C6C64622F746573742F4150492F636F6D6D616E64732F7461726765742F6465627567696E666F2F666F6F2E6300612E6F75742D666F6F2E64776F00
|
|
- Name: .debug_info.dwo
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_EXCLUDE ]
|
|
AddressAlign: 0x1
|
|
Content: 2A0000000500050800000000495EA96AE5C99FC401021D00030402000B0000000156000003290000000301050400
|
|
- Name: .debug_abbrev.dwo
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_EXCLUDE ]
|
|
AddressAlign: 0x1
|
|
Content: 01110125251305032576250000022E00111B1206401803253A0B3B0B49133F19000003240003253E0B0B0B000000
|
|
- Type: SectionHeaderTable
|
|
Sections:
|
|
- Name: .strtab
|
|
- Name: .debug_str_offsets.dwo
|
|
- Name: .debug_str.dwo
|
|
- Name: .debug_info.dwo
|
|
- Name: .debug_abbrev.dwo
|
|
...
|