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