53 lines · plain
1## The test checks that we can parse and dump a CU index section that is2## compliant to the DWARFv5 standard.3 4# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o - | \5# RUN: llvm-dwarfdump -debug-cu-index - | \6# RUN: FileCheck %s7 8# CHECK: .debug_cu_index contents:9# CHECK-NEXT: version = 5, units = 1, slots = 210# CHECK-EMPTY:11# CHECK-NEXT: Index Signature INFO ABBREV LINE LOCLISTS STR_OFFSETS MACRO RNGLISTS12# CHECK-NEXT: ----- ------------------ ---------------------------------------- ------------------------ ------------------------ ------------------------ ------------------------ ------------------------ ------------------------13# CHECK-NEXT: 1 0x1100001122222222 [0x0000000000001000, 0x0000000000001010) [0x00002000, 0x00002020) [0x00003000, 0x00003030) [0x00004000, 0x00004040) [0x00005000, 0x00005050) [0x00006000, 0x00006060) [0x00007000, 0x00007070)14 15 .section .debug_cu_index, "", @progbits16## Header:17 .short 5 # Version18 .space 2 # Padding19 .long 7 # Section count20 .long 1 # Unit count21 .long 2 # Slot count22## Hash Table of Signatures:23 .quad 0x110000112222222224 .quad 025## Parallel Table of Indexes:26 .long 127 .long 028## Table of Section Offsets:29## Row 0:30 .long 1 # DW_SECT_INFO31 .long 3 # DW_SECT_ABBREV32 .long 4 # DW_SECT_LINE33 .long 5 # DW_SECT_LOCLISTS34 .long 6 # DW_SECT_STR_OFFSETS35 .long 7 # DW_SECT_MACRO36 .long 8 # DW_SECT_RNGLISTS37## Row 1:38 .long 0x1000 # Offset in .debug_info.dwo39 .long 0x2000 # Offset in .debug_abbrev.dwo40 .long 0x3000 # Offset in .debug_line.dwo41 .long 0x4000 # Offset in .debug_loclists.dwo42 .long 0x5000 # Offset in .debug_str_offsets.dwo43 .long 0x6000 # Offset in .debug_macro.dwo44 .long 0x7000 # Offset in .debug_rnglists.dwo45## Table of Section Sizes:46 .long 0x10 # Size in .debug_info.dwo47 .long 0x20 # Size in .debug_abbrev.dwo48 .long 0x30 # Size in .debug_line.dwo49 .long 0x40 # Size in .debug_loclists.dwo50 .long 0x50 # Size in .debug_str_offsets.dwo51 .long 0x60 # Size in .debug_macro.dwo52 .long 0x70 # Size in .debug_rnglists.dwo53