gas/elf dwarf2 tests
[deliverable/binutils-gdb.git] / gas / testsuite / gas / elf / dwarf2-1.d
CommitLineData
4a114e3e 1#as: --compress-debug-sections
df1c40a7
L
2#readelf: -w
3#name: DWARF2 1
df1c40a7 4
4a114e3e 5Contents of the .[z]?debug_info section:
df1c40a7
L
6
7 Compilation Unit @ offset 0x0:
8 Length: 0x4e \(32-bit\)
9 Version: 2
7282333f 10 Abbrev Offset: 0x0
df1c40a7
L
11 Pointer Size: 4
12 <0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
2e9e81a8 13 <c> DW_AT_stmt_list : 0x0
762172a4
AM
14 <10> DW_AT_high_pc : 0x10
15 <14> DW_AT_low_pc : 0x8
2e9e81a8
NC
16 <18> DW_AT_name : file1.txt
17 <22> DW_AT_producer : GNU C 3.3.3
df1c40a7
L
18 <2e> DW_AT_language : 1 \(ANSI C\)
19 <1><2f>: Abbrev Number: 2 \(DW_TAG_subprogram\)
2e9e81a8
NC
20 <30> DW_AT_external : 1
21 <31> DW_AT_decl_file : 1
22 <32> DW_AT_decl_line : 2
23 <33> DW_AT_name : func_cu1
24 <3c> DW_AT_type : <0x4a>
762172a4
AM
25 <40> DW_AT_low_pc : 0x8
26 <44> DW_AT_high_pc : 0x10
18464d4d 27 <48> DW_AT_frame_base : 1 byte block: 55 \(DW_OP_reg5 \([^()]*\)\)
df1c40a7 28 <1><4a>: Abbrev Number: 3 \(DW_TAG_base_type\)
2e9e81a8
NC
29 <4b> DW_AT_name : int
30 <4f> DW_AT_byte_size : 4
df1c40a7 31 <50> DW_AT_encoding : 5 \(signed\)
399c99f7 32 <1><51>: Abbrev Number: 0
df1c40a7 33
4a114e3e 34Raw dump of debug contents of section .[z]?debug_line:
df1c40a7
L
35
36 Offset: 0x0
37 Length: 62
38 DWARF Version: 2
39 Prologue Length: 35
40 Minimum Instruction Length: 1
41 Initial value of 'is_stmt': 1
42 Line Base: 1
43 Line Range: 1
44 Opcode Base: 16
45
46 Opcodes:
47 Opcode 1 has 0 args
d3a49aa8
AM
48 Opcode 2 has 1 arg
49 Opcode 3 has 1 arg
50 Opcode 4 has 1 arg
51 Opcode 5 has 1 arg
df1c40a7
L
52 Opcode 6 has 0 args
53 Opcode 7 has 0 args
54 Opcode 8 has 0 args
d3a49aa8 55 Opcode 9 has 1 arg
df1c40a7
L
56 Opcode 10 has 0 args
57 Opcode 11 has 0 args
d3a49aa8 58 Opcode 12 has 1 arg
df1c40a7
L
59 Opcode 13 has 0 args
60 Opcode 14 has 0 args
61 Opcode 15 has 0 args
62
63 The Directory Table is empty.
64
fe59e83d 65 The File Name Table \(offset 0x.*\):
df1c40a7
L
66 Entry Dir Time Size Name
67 1 0 0 0 file1.txt
68
69 Line Number Statements:
fe59e83d
CC
70 \[0x.*\] Extended opcode 2: set Address to .*
71 \[0x.*\] Advance Line by 3 to 4
72 \[0x.*\] Copy
ba8826a8 73 \[0x.*\] Copy \(view 1\)
fe59e83d
CC
74 \[0x.*\] Extended opcode 2: set Address to .*
75 \[0x.*\] Extended opcode 1: End of Sequence
df1c40a7
L
76
77
4a114e3e 78Contents of the .[z]?debug_abbrev section:
df1c40a7 79
7282333f 80 Number TAG \(0x0\)
df1c40a7
L
81 1 DW_TAG_compile_unit \[has children\]
82 DW_AT_stmt_list DW_FORM_data4
83 DW_AT_high_pc DW_FORM_addr
84 DW_AT_low_pc DW_FORM_addr
85 DW_AT_name DW_FORM_string
86 DW_AT_producer DW_FORM_string
87 DW_AT_language DW_FORM_data1
399c99f7 88 DW_AT value: 0 DW_FORM value: 0
df1c40a7
L
89 2 DW_TAG_subprogram \[no children\]
90 DW_AT_external DW_FORM_flag
91 DW_AT_decl_file DW_FORM_data1
92 DW_AT_decl_line DW_FORM_data1
93 DW_AT_name DW_FORM_string
94 DW_AT_type DW_FORM_ref4
95 DW_AT_low_pc DW_FORM_addr
96 DW_AT_high_pc DW_FORM_addr
97 DW_AT_frame_base DW_FORM_block1
399c99f7 98 DW_AT value: 0 DW_FORM value: 0
df1c40a7
L
99 3 DW_TAG_base_type \[no children\]
100 DW_AT_name DW_FORM_string
101 DW_AT_byte_size DW_FORM_data1
102 DW_AT_encoding DW_FORM_data1
399c99f7 103 DW_AT value: 0 DW_FORM value: 0
df1c40a7 104
This page took 0.40629 seconds and 4 git commands to generate.