brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 94630f7 Raw
43 lines · plain
1## The test checks that we can parse and dump a pre-standard TU index section.2## See https://gcc.gnu.org/wiki/DebugFissionDWP for the proposal.3 4# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o - | \5# RUN:   llvm-dwarfdump -debug-tu-index - | \6# RUN:   FileCheck %s7 8# CHECK:      .debug_tu_index contents:9# CHECK-NEXT: version = 2, units = 1, slots = 210# CHECK-EMPTY:11# CHECK-NEXT: Index Signature          TYPES                                    ABBREV                   LINE                     STR_OFFSETS12# CHECK-NEXT: ----- ------------------ ---------------------------------------- ------------------------ ------------------------ ------------------------13# CHECK-NEXT:     1 0x1100001122222222 [0x0000000000001000, 0x0000000000001010) [0x00002000, 0x00002020) [0x00003000, 0x00003030) [0x00004000, 0x00004040)14 15    .section .debug_tu_index, "", @progbits16## Header:17    .long 2             # Version18    .long 4             # Section count19    .long 1             # Unit count20    .long 2             # Slot count21## Hash Table of Signatures:22    .quad 0x110000112222222223    .quad 024## Parallel Table of Indexes:25    .long 126    .long 027## Table of Section Offsets:28## Row 0:29    .long 2             # DW_SECT_TYPES30    .long 3             # DW_SECT_ABBREV31    .long 4             # DW_SECT_LINE32    .long 6             # DW_SECT_STR_OFFSETS33## Row 1:34    .long 0x1000        # Offset in .debug_types.dwo35    .long 0x2000        # Offset in .debug_abbrev.dwo36    .long 0x3000        # Offset in .debug_line.dwo37    .long 0x4000        # Offset in .debug_str_offsets.dwo38## Table of Section Sizes:39    .long 0x10          # Size in .debug_types.dwo40    .long 0x20          # Size in .debug_abbrev.dwo41    .long 0x30          # Size in .debug_line.dwo42    .long 0x40          # Size in .debug_str_offsets.dwo43