• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc %s -filetype obj -triple x86_64 -o %t
2# RUN: llvm-dwarfdump -debug-info -debug-types %t | FileCheck %s
3
4# CHECK:      .debug_info contents:
5# CHECK-NEXT: Compile Unit: {{.+}}, abbr_offset = 0x00a5 (invalid),
6# CHECK-NEXT: <compile unit can't be parsed!>
7
8# CHECK:      .debug_types contents:
9# CHECK-NEXT: Type Unit: {{.+}}, abbr_offset = 0x00a5 (invalid), addr_size = 0x08, name = '',
10# CHECK-NEXT: <type unit can't be parsed!>
11
12    .section .debug_info,"",@progbits
13    .long .LCUEnd-.LCUVersion   # Length of Unit
14.LCUVersion:
15    .short 4                    # DWARF version number
16    .long 0xa5                  # Offset Into Abbrev. Section (invalid)
17    .byte 8                     # Address Size
18    .byte 1                     # Abbreviation code
19.LCUEnd:
20
21    .section .debug_types,"",@progbits
22.LTUBegin:
23    .long .LTUEnd-.LTUVersion   # Length of Unit
24.LTUVersion:
25    .short 4                    # DWARF version number
26    .long 0xa5                  # Offset Into Abbrev. Section (invalid)
27    .byte 8                     # Address Size
28    .quad 0x0011223344556677    # Type Signature
29    .long .LTUType-.LTUBegin    # Type offset
30.LTUType:
31    .byte 1                     # Abbreviation code
32.LTUEnd:
33