]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/elf/dwarf-3-func.d
d084518aba1b32a1860ffd46646329c3c63735a3
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / elf / dwarf-3-func.d
1 #as: --gdwarf-3
2 #name: Dwarf3 function debug info
3 #readelf: -W -wai
4 #target: i?86-*-* x86_64-*-*
5
6 Contents of the .debug_info section:
7
8 +Compilation Unit @ offset (0x)?0:
9 +Length: .*
10 +Version: +3
11 +Abbrev Offset: +(0x)?0
12 +Pointer Size: .*
13 <0><[0-9a-f]+>: Abbrev Number: 3 \(DW_TAG_unspecified_type\)
14 #...
15 <0><[0-9a-f]+>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
16 #...
17 <1><[0-9a-f]+>: Abbrev Number: 2 \(DW_TAG_subprogram\)
18 +<[0-9a-f]+> +DW_AT_name +: \(strp\) \(offset: (0x)?[0-9a-f]+\): efunc1
19 +<[0-9a-f]+> +DW_AT_external +: \(flag\) 1
20 +<[0-9a-f]+> +DW_AT_type +: \(ref_udata\) <0x.>
21 +<[0-9a-f]+> +DW_AT_low_pc +: \(addr\) (0x)?0
22 +<[0-9a-f]+> +DW_AT_high_pc +: \(addr\) (0x)?2
23 <1><[0-9a-f]+>: Abbrev Number: 2 \(DW_TAG_subprogram\)
24 +<[0-9a-f]+> +DW_AT_name +: \(strp\) \(offset: (0x)?[0-9a-f]+\): lfunc1
25 +<[0-9a-f]+> +DW_AT_external +: \(flag\) 0
26 +<[0-9a-f]+> +DW_AT_type +: \(ref_udata\) <0x.>
27 +<[0-9a-f]+> +DW_AT_low_pc +: \(addr\) (0x)?2
28 +<[0-9a-f]+> +DW_AT_high_pc +: \(addr\) (0x)?13
29 <1><[0-9a-f]+>: Abbrev Number: 2 \(DW_TAG_subprogram\)
30 +<[0-9a-f]+> +DW_AT_name +: \(strp\) \(offset: (0x)?[0-9a-f]+\): efunc2
31 +<[0-9a-f]+> +DW_AT_external +: \(flag\) 1
32 +<[0-9a-f]+> +DW_AT_type +: \(ref_udata\) <0x.>
33 +<[0-9a-f]+> +DW_AT_low_pc +: \(addr\) (0x)?13
34 +<[0-9a-f]+> +DW_AT_high_pc +: \(addr\) (0x)?35
35 <1><[0-9a-f]+>: Abbrev Number: 2 \(DW_TAG_subprogram\)
36 +<[0-9a-f]+> +DW_AT_name +: \(strp\) \(offset: (0x)?[0-9a-f]+\): lfunc2
37 +<[0-9a-f]+> +DW_AT_external +: \(flag\) 0
38 +<[0-9a-f]+> +DW_AT_type +: \(ref_udata\) <0x.>
39 +<[0-9a-f]+> +DW_AT_low_pc +: \(addr\) (0x)?35
40 +<[0-9a-f]+> +DW_AT_high_pc +: \(addr\) (0x)?38
41 <1><[0-9a-f]+>: Abbrev Number: 0
42
43 Contents of the .debug_abbrev section:
44
45 +Number TAG \((0x)?0\)
46 +1 +DW_TAG_compile_unit +\[has children\]
47 #...
48 +2 +DW_TAG_subprogram +\[no children\]
49 +DW_AT_name +DW_FORM_strp
50 +DW_AT_external +DW_FORM_flag
51 +DW_AT_type +DW_FORM_ref_udata
52 +DW_AT_low_pc +DW_FORM_addr
53 +DW_AT_high_pc +DW_FORM_addr
54 +DW_AT value: 0 +DW_FORM value: 0
55 #pass