1## The test checks that we can parse and dump a TU index section that is 2## compliant to the DWARFv5 standard. 3 4# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o - | \ 5# RUN: llvm-dwarfdump -debug-tu-index - | \ 6# RUN: FileCheck %s 7 8# CHECK: .debug_tu_index contents: 9# CHECK-NEXT: version = 5, units = 1, slots = 2 10# CHECK-EMPTY: 11# CHECK-NEXT: Index Signature INFO ABBREV LINE STR_OFFSETS 12# CHECK-NEXT: ----- ------------------ ------------------------ ------------------------ ------------------------ ------------------------ 13# CHECK-NEXT: 1 0x1100001122222222 [0x00001000, 0x00001010) [0x00002000, 0x00002020) [0x00003000, 0x00003030) [0x00004000, 0x00004040) 14 15 .section .debug_tu_index, "", @progbits 16## Header: 17 .short 5 # Version 18 .space 2 # Padding 19 .long 4 # Section count 20 .long 1 # Unit count 21 .long 2 # Slot count 22## Hash Table of Signatures: 23 .quad 0x1100001122222222 24 .quad 0 25## Parallel Table of Indexes: 26 .long 1 27 .long 0 28## Table of Section Offsets: 29## Row 0: 30 .long 1 # DW_SECT_INFO 31 .long 3 # DW_SECT_ABBREV 32 .long 4 # DW_SECT_LINE 33 .long 6 # DW_SECT_STR_OFFSETS 34## Row 1: 35 .long 0x1000 # Offset in .debug_info.dwo 36 .long 0x2000 # Offset in .debug_abbrev.dwo 37 .long 0x3000 # Offset in .debug_line.dwo 38 .long 0x4000 # Offset in .debug_str_offsets.dwo 39## Table of Section Sizes: 40 .long 0x10 # Size in .debug_info.dwo 41 .long 0x20 # Size in .debug_abbrev.dwo 42 .long 0x30 # Size in .debug_line.dwo 43 .long 0x40 # Size in .debug_str_offsets.dwo 44