xref: /llvm-project/lldb/test/Shell/SymbolFile/DWARF/x86/invalid_abbreviation.s (revision a2824632cba8e7d98a5cbf9acb3ca5d9960c95cb)
1# REQUIRES: x86
2
3# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %s > %t
4# RUN: %lldb %t \
5# RUN:   -o exit 2>&1 | FileCheck %s
6
7# CHECK-DAG: error: {{.*}} [0x0000000000000022]: abbreviation code 65536 too big, please file a bug and attach the file at the start of this error message
8# CHECK-DAG: error: {{.*}} [0x0000000000000048]: invalid abbreviation code 47, please file a bug and attach the file at the start of this error message
9
10
11        .section        .debug_abbrev,"",@progbits
12        .uleb128 65535                  # Largest representable Abbreviation Code
13        .byte   17                      # DW_TAG_compile_unit
14        .byte   1                       # DW_CHILDREN_yes
15        .byte   37                      # DW_AT_producer
16        .byte   8                       # DW_FORM_string
17        .byte   0                       # EOM(1)
18        .byte   0                       # EOM(2)
19        .byte   0                       # EOM(3)
20
21        .section        .debug_info,"",@progbits
22.Lcu_begin0:
23        .long   .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
24.Ldebug_info_start0:
25        .short  5                       # DWARF version number
26        .byte   1                       # DWARF Unit Type
27        .byte   8                       # Address Size (in bytes)
28        .long   .debug_abbrev           # Offset Into Abbrev. Section
29        .uleb128 65535                  # DW_TAG_compile_unit
30        .asciz  "Hand-written DWARF"    # DW_AT_producer
31        .uleb128 65536                  # Unrepresentable abbreviation
32        .byte   0                       # End Of Children Mark
33.Ldebug_info_end0:
34
35        .section        .debug_info,"",@progbits
36.Lcu_begin1:
37        .long   .Ldebug_info_end1-.Ldebug_info_start1 # Length of Unit
38.Ldebug_info_start1:
39        .short  5                       # DWARF version number
40        .byte   1                       # DWARF Unit Type
41        .byte   8                       # Address Size (in bytes)
42        .long   .debug_abbrev           # Offset Into Abbrev. Section
43        .uleb128 65535                  # DW_TAG_compile_unit
44        .asciz  "Hand-written DWARF"    # DW_AT_producer
45        .byte   47                      # Missing abbreviation
46        .byte   0                       # End Of Children Mark
47.Ldebug_info_end1:
48