]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S
Update year range in copyright notice of all files owned by the GDB project.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-compdir-oldgcc.S
1 /* This testcase is part of GDB, the GNU debugger.
2
3 Copyright 2012-2015 Free Software Foundation, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17
18 .text
19 main: .globl main
20
21 gcc42: .globl gcc42
22 .Lgcc42_procstart:
23 .int 0
24 .type gcc42, %function
25 .size gcc42, . - gcc42
26 .Lgcc42_procend:
27
28 gcc43: .globl gcc43
29 .Lgcc43_procstart:
30 .int 0
31 .type gcc43, %function
32 .size gcc43, . - gcc43
33 .Lgcc43_procend:
34
35 /* Debug information */
36
37 .section .debug_info
38 .Lcu1_begin:
39 /* CU header */
40 .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */
41 .Lcu1_start:
42 .2byte 2 /* DWARF Version */
43 .4byte .Labbrev1_begin /* Offset into abbrev section */
44 .byte 4 /* Pointer size */
45
46 .uleb128 1 /* Abbrev: DW_TAG_compile_unit */
47 .4byte .Lgcc42_begin /* DW_AT_stmt_list */
48 .4byte .Lgcc42_procstart /* DW_AT_low_pc */
49 .4byte .Lgcc42_procend /* DW_AT_high_pc */
50 .ascii "/dir/d/dw2-compdir-oldgcc42.S\0" /* DW_AT_name */
51 .ascii "GNU C 4.2.0\0" /* DW_AT_producer */
52 .byte 1 /* DW_AT_language (C) */
53
54 .uleb128 2 /* Abbrev: DW_TAG_subprogram */
55 .byte 1 /* DW_AT_external */
56 .byte 1 /* DW_AT_decl_file */
57 .byte 1 /* DW_AT_decl_line */
58 .ascii "gcc42\0" /* DW_AT_name */
59 .4byte .Lgcc42_procstart /* DW_AT_low_pc */
60 .4byte .Lgcc42_procend /* DW_AT_high_pc */
61
62 .byte 0 /* End of children of CU */
63 .Lcu1_end:
64
65 .Lcu2_begin:
66 /* CU header */
67 .4byte .Lcu2_end - .Lcu2_start /* Length of Compilation Unit */
68 .Lcu2_start:
69 .2byte 2 /* DWARF Version */
70 .4byte .Labbrev1_begin /* Offset into abbrev section */
71 .byte 4 /* Pointer size */
72
73 .uleb128 1 /* Abbrev: DW_TAG_compile_unit */
74 .4byte .Lgcc43_begin /* DW_AT_stmt_list */
75 .4byte .Lgcc43_procstart /* DW_AT_low_pc */
76 .4byte .Lgcc43_procend /* DW_AT_high_pc */
77 .ascii "/dir/d/dw2-compdir-oldgcc43.S\0" /* DW_AT_name */
78 .ascii "GNU C 4.3.0\0" /* DW_AT_producer */
79 .byte 1 /* DW_AT_language (C) */
80
81 .uleb128 2 /* Abbrev: DW_TAG_subprogram */
82 .byte 1 /* DW_AT_external */
83 .byte 1 /* DW_AT_decl_file */
84 .byte 1 /* DW_AT_decl_line */
85 .ascii "gcc43\0" /* DW_AT_name */
86 .4byte .Lgcc43_procstart /* DW_AT_low_pc */
87 .4byte .Lgcc43_procend /* DW_AT_high_pc */
88
89 .byte 0 /* End of children of CU */
90 .Lcu2_end:
91
92 /* Abbrev table */
93 .section .debug_abbrev
94 .Labbrev1_begin:
95 .uleb128 1 /* Abbrev code */
96 .uleb128 0x11 /* DW_TAG_compile_unit */
97 .byte 1 /* has_children */
98 .uleb128 0x10 /* DW_AT_stmt_list */
99 .uleb128 0x6 /* DW_FORM_data4 */
100 .uleb128 0x11 /* DW_AT_low_pc */
101 .uleb128 0x1 /* DW_FORM_addr */
102 .uleb128 0x12 /* DW_AT_high_pc */
103 .uleb128 0x1 /* DW_FORM_addr */
104 .uleb128 0x3 /* DW_AT_name */
105 .uleb128 0x8 /* DW_FORM_string */
106 .uleb128 0x25 /* DW_AT_producer */
107 .uleb128 0x8 /* DW_FORM_string */
108 .uleb128 0x13 /* DW_AT_language */
109 .uleb128 0xb /* DW_FORM_data1 */
110 .byte 0x0 /* Terminator */
111 .byte 0x0 /* Terminator */
112
113 .uleb128 2 /* Abbrev code */
114 .uleb128 0x2e /* DW_TAG_subprogram */
115 .byte 0 /* has_children */
116 .uleb128 0x3f /* DW_AT_external */
117 .uleb128 0xc /* DW_FORM_flag */
118 .uleb128 0x3a /* DW_AT_decl_file */
119 .uleb128 0xb /* DW_FORM_data1 */
120 .uleb128 0x3b /* DW_AT_decl_line */
121 .uleb128 0xb /* DW_FORM_data1 */
122 .uleb128 0x3 /* DW_AT_name */
123 .uleb128 0x8 /* DW_FORM_string */
124 .uleb128 0x11 /* DW_AT_low_pc */
125 .uleb128 0x1 /* DW_FORM_addr */
126 .uleb128 0x12 /* DW_AT_high_pc */
127 .uleb128 0x1 /* DW_FORM_addr */
128 .byte 0x0 /* Terminator */
129 .byte 0x0 /* Terminator */
130
131 .byte 0x0 /* Terminator */
132 .byte 0x0 /* Terminator */
133
134 /* Line table */
135 .section .debug_line
136 .Lgcc42_begin:
137 .4byte .Lgcc42_end - .Lgcc42_start /* Initial length */
138 .Lgcc42_start:
139 .2byte 2 /* Version */
140 .4byte .Lgcc42_lines - .Lgcc42_hdr /* header_length */
141 .Lgcc42_hdr:
142 .byte 1 /* Minimum insn length */
143 .byte 1 /* default_is_stmt */
144 .byte 1 /* line_base */
145 .byte 1 /* line_range */
146 .byte 4 /* opcode_base */
147
148 /* Standard lengths */
149 .byte 0
150 .byte 1
151 .byte 1
152
153 /* Include directories */
154 .byte 0
155
156 /* File names */
157 .ascii "dw2-compdir-oldgcc42.S\0"
158 .uleb128 0 /* directory */
159 .uleb128 0
160 .uleb128 0
161
162 .byte 0
163
164 .Lgcc42_lines:
165 .byte 0 /* DW_LNE_set_address */
166 .uleb128 5
167 .byte 2
168 .4byte gcc42
169
170 .byte 3 /* DW_LNS_advance_line */
171 .sleb128 41 /* ... to 42 */
172
173 .byte 1 /* DW_LNS_copy */
174
175 .byte 0 /* DW_LNE_set_address */
176 .uleb128 5
177 .byte 2
178 .4byte .Lgcc42_procend
179
180 .byte 0 /* DW_LNE_end_of_sequence */
181 .uleb128 1
182 .byte 1
183 .Lgcc42_end:
184
185 .Lgcc43_begin:
186 .4byte .Lgcc43_end - .Lgcc43_start /* Initial length */
187 .Lgcc43_start:
188 .2byte 2 /* Version */
189 .4byte .Lgcc43_lines - .Lgcc43_hdr /* header_length */
190 .Lgcc43_hdr:
191 .byte 1 /* Minimum insn length */
192 .byte 1 /* default_is_stmt */
193 .byte 1 /* line_base */
194 .byte 1 /* line_range */
195 .byte 4 /* opcode_base */
196
197 /* Standard lengths */
198 .byte 0
199 .byte 1
200 .byte 1
201
202 /* Include directories */
203 .byte 0
204
205 /* File names */
206 .ascii "dw2-compdir-oldgcc43.S\0"
207 .uleb128 0 /* directory */
208 .uleb128 0
209 .uleb128 0
210
211 .byte 0
212
213 .Lgcc43_lines:
214 .byte 0 /* DW_LNE_set_address */
215 .uleb128 5
216 .byte 2
217 .4byte gcc43
218
219 .byte 3 /* DW_LNS_advance_line */
220 .sleb128 42 /* ... to 43 */
221
222 .byte 1 /* DW_LNS_copy */
223
224 .byte 0 /* DW_LNE_set_address */
225 .uleb128 5
226 .byte 2
227 .4byte .Lgcc43_procend
228
229 .byte 0 /* DW_LNE_end_of_sequence */
230 .uleb128 1
231 .byte 1
232 .Lgcc43_end: