Mercurial > hg > CbC > CbC_llvm
comparison lld/test/ELF/gdb-index-noranges.s @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 # REQUIRES: x86 | |
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o | |
3 | |
4 ## Input is reduced from following code and invocation: | |
5 ## clang++ -gsplit-dwarf -c test.ii -o test.s -S | |
6 ## clang version: 6.0.0 (trunk 318293) | |
7 ## | |
8 ## test.ii: | |
9 ## int a; | |
10 ## | |
11 ## Debug information does not contain any address ranges. | |
12 ## We crashed in that case. Check we don't. | |
13 # RUN: ld.lld --gdb-index %t1.o -o /dev/null | |
14 | |
15 .section .debug_str,"MS",@progbits,1 | |
16 .Lskel_string0: | |
17 .asciz "t.dwo" | |
18 .Lskel_string1: | |
19 .asciz "path" | |
20 | |
21 .section .debug_abbrev,"",@progbits | |
22 .byte 1 # Abbreviation Code | |
23 .byte 17 # DW_TAG_compile_unit | |
24 .byte 0 # DW_CHILDREN_no | |
25 .byte 16 # DW_AT_stmt_list | |
26 .byte 23 # DW_FORM_sec_offset | |
27 .ascii "\260B" # DW_AT_GNU_dwo_name | |
28 .byte 14 # DW_FORM_strp | |
29 .byte 27 # DW_AT_comp_dir | |
30 .byte 14 # DW_FORM_strp | |
31 .ascii "\261B" # DW_AT_GNU_dwo_id | |
32 .byte 7 # DW_FORM_data8 | |
33 .ascii "\263B" # DW_AT_GNU_addr_base | |
34 .byte 23 # DW_FORM_sec_offset | |
35 .byte 0 # EOM(1) | |
36 .byte 0 # EOM(2) | |
37 .byte 0 # EOM(3) | |
38 | |
39 .section .debug_info,"",@progbits | |
40 .long 32 # Length of Unit | |
41 .short 4 # DWARF version number | |
42 .long .debug_abbrev # Offset Into Abbrev. Section | |
43 .byte 8 # Address Size (in bytes) | |
44 .byte 1 # Abbrev [1] 0xb:0x19 DW_TAG_compile_unit | |
45 .long 0 # DW_AT_stmt_list | |
46 .long .Lskel_string0 # DW_AT_GNU_dwo_name | |
47 .long .Lskel_string1 # DW_AT_comp_dir | |
48 .quad -3824446529333676116 # DW_AT_GNU_dwo_id | |
49 .long 0 # DW_AT_GNU_addr_base |