]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/testsuite/gas/elf/dwarf2-6.d
Add support to readelf and objdump for following links to separate debug information...
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / elf / dwarf2-6.d
CommitLineData
ba8826a8
AO
1#as:
2#readelf: -wlL
3#name: DWARF2 6
75800d2c
NC
4# These targets either do not support or do not evaluate the subtraction of symbols at assembly time.
5#not-target: am3*-* avr-* cr16-* crx-* mn10*-* msp430-* nds32*-* pru-* riscv*-* rl78-* xtensa-*
ba8826a8
AO
6
7Raw dump of debug contents of section .debug_line:
8
9 Offset: 0x0
10 Length: 84
11 DWARF Version: 2
12 Prologue Length: 36
13 Minimum Instruction Length: 1
14 Initial value of 'is_stmt': 1
15 Line Base: 1
16 Line Range: 1
17 Opcode Base: 16
18
19 Opcodes:
20 Opcode 1 has 0 args
d3a49aa8
AM
21 Opcode 2 has 1 arg
22 Opcode 3 has 1 arg
23 Opcode 4 has 1 arg
24 Opcode 5 has 1 arg
ba8826a8
AO
25 Opcode 6 has 0 args
26 Opcode 7 has 0 args
27 Opcode 8 has 0 args
d3a49aa8 28 Opcode 9 has 1 arg
ba8826a8
AO
29 Opcode 10 has 0 args
30 Opcode 11 has 0 args
d3a49aa8 31 Opcode 12 has 1 arg
ba8826a8
AO
32 Opcode 13 has 0 args
33 Opcode 14 has 0 args
34 Opcode 15 has 0 args
35
36 The Directory Table is empty.
37
38 The File Name Table \(offset 0x1f\):
39 Entry Dir Time Size Name
40 1 0 0 0 dwarf2-6\.c
41
42
43 Line Number Statements:
44 \[0x.*\] Extended opcode 2: set Address to 0x0
45 \[0x.*\] Copy
46 \[0x.*\] Copy \(view 1\)
47 \[0x.*\] Extended opcode 2: set Address to 0x1
48 \[0x.*\] Copy
49 \[0x.*\] Advance PC by 0 to 0x1
50 \[0x.*\] Copy \(view 1\)
51 \[0x.*\] Advance PC by 1 to 0x2
52 \[0x.*\] Copy
53 \[0x.*\] Advance PC by fixed size amount 1 to 0x3
54 \[0x.*\] Copy \(view 1\)
55 \[0x.*\] Special opcode 0: advance Address by 0 to 0x3 and Line by 1 to 2 \(view 2\)
56 \[0x.*\] Special opcode 1: advance Address by 1 to 0x4 and Line by 1 to 3
57 \[0x.*\] Copy \(view 1\)
58 \[0x.*\] Advance PC by constant 239 to 0xf3
59 \[0x.*\] Copy
60 \[0x.*\] Extended opcode 2: set Address to 0x100
61 \[0x.*\] Extended opcode 1: End of Sequence
62
63
dda8d76d 64Contents of the \.debug_line section:
ba8826a8
AO
65
66CU: dwarf2-6\.c:
67File name *Line number *Starting address *View
68dwarf2-6\.c *1 *0
69dwarf2-6\.c *1 *0 *1
70dwarf2-6\.c *1 *0x1
71dwarf2-6\.c *1 *0x1 *1
72dwarf2-6\.c *1 *0x2
73dwarf2-6\.c *1 *0x3 *1
74dwarf2-6\.c *2 *0x3 *2
75dwarf2-6\.c *3 *0x4
76dwarf2-6\.c *3 *0x4 *1
77dwarf2-6\.c *3 *0xf3
78dwarf2-6\.c *3 *0x100