]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/testsuite/gas/elf/dwarf-5-func-global.d
Gas generated incorrect debug info (top-level DW_TAG_unspecified_type DIE)
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / elf / dwarf-5-func-global.d
CommitLineData
591cc9fb
JB
1#as: --gdwarf-5 --defsym GLOBAL=1
2#name: Dwarf5 global function debug info
3#readelf: -W -wai
4#source: dwarf-3-func.s
5#target: i?86-*-* x86_64-*-*
6
7Contents of the .debug_info section:
8
9 +Compilation Unit @ offset (0x)?0:
10 +Length: .*
11 +Version: +5
12 +Unit Type: +DW_UT_compile \(1\)
13 +Abbrev Offset: +(0x)?0
14 +Pointer Size: .*
5578fbf6 15#...
591cc9fb
JB
16 <0><[0-9a-f]+>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
17#...
18 <1><[0-9a-f]+>: Abbrev Number: 2 \(DW_TAG_subprogram\)
19 +<[0-9a-f]+> +DW_AT_name +: \(strp\) \(offset: (0x)?[0-9a-f]+\): efunc1
20 +<[0-9a-f]+> +DW_AT_external +: \(flag_present\) 1
0ee31dff 21 +<[0-9a-f]+> +DW_AT_type +: \(ref_udata\) <0x[0-9a-f]+>
591cc9fb
JB
22 +<[0-9a-f]+> +DW_AT_low_pc +: \(addr\) (0x)?0
23 +<[0-9a-f]+> +DW_AT_high_pc +: \(udata\) 2
24 <1><[0-9a-f]+>: Abbrev Number: 2 \(DW_TAG_subprogram\)
25 +<[0-9a-f]+> +DW_AT_name +: \(strp\) \(offset: (0x)?[0-9a-f]+\): efunc2
26 +<[0-9a-f]+> +DW_AT_external +: \(flag_present\) 1
0ee31dff 27 +<[0-9a-f]+> +DW_AT_type +: \(ref_udata\) <0x[0-9a-f]+>
591cc9fb
JB
28 +<[0-9a-f]+> +DW_AT_low_pc +: \(addr\) (0x)?2
29 +<[0-9a-f]+> +DW_AT_high_pc +: \(udata\) 34
0ee31dff 30 <1><[0-9a-f]+>: Abbrev Number: 3 \(DW_TAG_unspecified_type\)
591cc9fb
JB
31 <1><[0-9a-f]+>: Abbrev Number: 0
32
33Contents of the .debug_abbrev section:
34
cc443420 35 +Number TAG \((0x)?0\)
591cc9fb
JB
36 +1 +DW_TAG_compile_unit +\[has children\]
37#...
38 +2 +DW_TAG_subprogram +\[no children\]
39 +DW_AT_name +DW_FORM_strp
40 +DW_AT_external +DW_FORM_flag_present
5578fbf6 41 +DW_AT_type +DW_FORM_ref_udata
591cc9fb
JB
42 +DW_AT_low_pc +DW_FORM_addr
43 +DW_AT_high_pc +DW_FORM_udata
44 +DW_AT value: 0 +DW_FORM value: 0
45#pass