Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: gdb/testsuite/gdb.dwarf2/fission-base.S

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp ('k') | gdb/testsuite/gdb.dwarf2/fission-base.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* This testcase is part of GDB, the GNU debugger.
2
3 Copyright 2012 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 This file was created by doing:
19 gcc -gdwarf-4 -gsplit-debug -S -dA fission-base.c
20 and then massaging the output.
21 */
22
23 .file "fission-base.c"
24
25 .text
26 .Ltext0:
27
28 .globl func
29 .type func, @function
30 func:
31 .LFB0:
32 .file 1 "fission-base.c"
33 # fission-base.c:20
34 .loc 1 20 0
35 .cfi_startproc
36 pushq %rbp #
37 .cfi_def_cfa_offset 16
38 .cfi_offset 6, -16
39 movq %rsp, %rbp #,
40 .cfi_def_cfa_register 6
41 movl %edi, -4(%rbp) # arg, arg
42 # fission-base.c:21
43 .loc 1 21 0
44 movl -4(%rbp), %eax # arg, tmp61
45 addl $1, %eax #, D.1617
46 # fission-base.c:22
47 .loc 1 22 0
48 popq %rbp #
49 .cfi_def_cfa 7, 8
50 ret
51 .cfi_endproc
52 .LFE0:
53 .size func, .-func
54 .globl main
55 .type main, @function
56 main:
57 .LFB1:
58 # fission-base.c:26
59 .loc 1 26 0
60 .cfi_startproc
61 pushq %rbp #
62 .cfi_def_cfa_offset 16
63 .cfi_offset 6, -16
64 movq %rsp, %rbp #,
65 .cfi_def_cfa_register 6
66 # fission-base.c:27
67 .loc 1 27 0
68 movl $-1, %edi #,
69 call func #
70 # fission-base.c:28
71 .loc 1 28 0
72 popq %rbp #
73 .cfi_def_cfa 7, 8
74 ret
75 .cfi_endproc
76 .LFE1:
77 .size main, .-main
78 .Letext0:
79 .section .debug_info.dwo,"",@progbits
80 .Ldebug_info0:
81 .4byte .Ldebug_info0_end - .Ldebug_info0 - 4 # Length of Compilation Un it Info
82 .2byte 0x4 # DWARF version number
83 .4byte .Ldebug_abbrev0 # Offset Into Abbrev. Section
84 .byte 0x8 # Pointer Size (in bytes)
85 .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit)
86 .ascii "GNU C 4.6.x-fission\0" # DW_AT_producer
87 .byte 0x1 # DW_AT_language
88 .ascii "fission-base.c\0" # DW_AT_name
89 .ascii "/tmp/src/gdb/testsuite/gdb.dwarf2\0" # DW_AT_comp_dir
90 .byte 0 # DW_AT_GNU_dwo_id
91 .byte 0
92 .byte 0
93 .byte 0
94 .byte 0
95 .byte 0
96 .byte 0
97 .byte 0
98 .uleb128 0x2 # (DIE (0x89) DW_TAG_subprogram)
99 # DW_AT_external
100 .ascii "func\0" # DW_AT_name
101 .byte 0x1 # DW_AT_decl_file (fission-base.c)
102 .byte 0x13 # DW_AT_decl_line
103 # DW_AT_prototyped
104 .4byte .Ldebug_info0_int # DW_AT_type
105 .4byte 0x0 # DW_AT_ranges
106 .uleb128 0x1 # DW_AT_frame_base
107 .byte 0x9c # DW_OP_call_frame_cfa
108 .4byte .Ldebug_info0_int # DW_AT_sibling
109 .uleb128 0x3 # (DIE (0xa4) DW_TAG_formal_parameter)
110 .ascii "arg\0" # DW_AT_name
111 .byte 0x1 # DW_AT_decl_file (fission-base.c)
112 .byte 0x13 # DW_AT_decl_line
113 .4byte .Ldebug_info0_int # DW_AT_type
114 .uleb128 0x2 # DW_AT_location
115 .byte 0x91 # DW_OP_fbreg
116 .sleb128 -20
117 .byte 0 # end of children of DIE 0x89
118 .Ldebug_info0_int:
119 .uleb128 0x4 # (DIE (0xb3) DW_TAG_base_type)
120 .byte 0x4 # DW_AT_byte_size
121 .byte 0x5 # DW_AT_encoding
122 .ascii "int\0" # DW_AT_name
123 .uleb128 0x5 # (DIE (0xba) DW_TAG_subprogram)
124 # DW_AT_external
125 .ascii "main\0" # DW_AT_name
126 .byte 0x1 # DW_AT_decl_file (fission-base.c)
127 .byte 0x19 # DW_AT_decl_line
128 .4byte .Ldebug_info0_int # DW_AT_type
129 .uleb128 0x1 # DW_AT_low_pc
130 .8byte .LFE1-.LFB1 # DW_AT_high_pc
131 .uleb128 0x1 # DW_AT_frame_base
132 .byte 0x9c # DW_OP_call_frame_cfa
133 .byte 0 # end of children of DIE 0xb
134 .Ldebug_info0_end:
135 .section .debug_info,"",@progbits
136 .Lskeleton_debug_info0:
137 .4byte .Lskeleton_debug_info0_end - .Lskeleton_debug_info0 - 4 # Length of Compilation Unit Info
138 .2byte 0x4 # DWARF version number
139 .4byte .Lskeleton_debug_abbrev0 # Offset Into Abbrev. Section
140 .byte 0x8 # Pointer Size (in bytes)
141 .uleb128 0x1 # (DIE (0) DW_TAG_compile_unit)
142 .8byte .Ltext0 # DW_AT_low_pc
143 .8byte .Letext0-.Ltext0 # DW_AT_high_pc
144 .4byte .Ldebug_line0 # DW_AT_stmt_list
145 .ascii "/tmp/src/gdb/testsuite/gdb.dwarf2\0" # DW_AT_comp_dir
146 # Normally dwo_name would be "fission-base.dwo".
147 # Simplification: Leave the DWO contents in the executable.
148 .ascii "fission-base\0" # DW_AT_GNU_dwo_name
149 .4byte .Ldebug_pubnames0 # DW_AT_GNU_pubnames
150 .4byte .Ldebug_pubtypes0 # DW_AT_GNU_pubtypes
151 .4byte .Ldebug_addr0_begin # DW_AT_GNU_addr_base
152 .4byte .Ldebug_ranges0_begin # DW_AT_GNU_ranges_base
153 .byte 0 # DW_AT_GNU_dwo_id
154 .byte 0
155 .byte 0
156 .byte 0
157 .byte 0
158 .byte 0
159 .byte 0
160 .byte 0
161 .Lskeleton_debug_info0_end:
162 .section .debug_abbrev,"",@progbits
163 .Lskeleton_debug_abbrev0:
164 .uleb128 0x1 # (abbrev code)
165 .uleb128 0x11 # (TAG: DW_TAG_compile_unit)
166 .byte 0 # DW_children_no
167 .uleb128 0x11 # (DW_AT_low_pc)
168 .uleb128 0x1 # (DW_FORM_addr)
169 .uleb128 0x12 # (DW_AT_high_pc)
170 .uleb128 0x7 # (DW_FORM_data8)
171 .uleb128 0x10 # (DW_AT_stmt_list)
172 .uleb128 0x17 # (DW_FORM_sec_offset)
173 .uleb128 0x1b # (DW_AT_comp_dir)
174 .uleb128 0x8 # (DW_FORM_string)
175 .uleb128 0x2130 # (DW_AT_GNU_dwo_name)
176 .uleb128 0x8 # (DW_FORM_string)
177 .uleb128 0x2134 # (DW_AT_GNU_pubnames)
178 .uleb128 0x17 # (DW_FORM_sec_offset)
179 .uleb128 0x2135 # (DW_AT_GNU_pubtypes)
180 .uleb128 0x17 # (DW_FORM_sec_offset)
181 .uleb128 0x2133 # (DW_AT_GNU_addr_base)
182 .uleb128 0x17 # (DW_FORM_sec_offset)
183 .uleb128 0x2132 # (DW_AT_GNU_ranges_base)
184 .uleb128 0x17 # (DW_FORM_sec_offset)
185 .uleb128 0x2131 # (DW_AT_GNU_dwo_id)
186 .uleb128 0x7 # (DW_FORM_data8)
187 .byte 0
188 .byte 0
189 .byte 0 # end of skeleton .debug_abbrev
190 .section .debug_abbrev.dwo,"",@progbits
191 .Ldebug_abbrev0:
192 .uleb128 0x1 # (abbrev code)
193 .uleb128 0x11 # (TAG: DW_TAG_compile_unit)
194 .byte 0x1 # DW_children_yes
195 .uleb128 0x25 # (DW_AT_producer)
196 .uleb128 0x8 # (DW_FORM_string)
197 .uleb128 0x13 # (DW_AT_language)
198 .uleb128 0xb # (DW_FORM_data1)
199 .uleb128 0x3 # (DW_AT_name)
200 .uleb128 0x8 # (DW_FORM_string)
201 .uleb128 0x1b # (DW_AT_comp_dir)
202 .uleb128 0x8 # (DW_FORM_string)
203 .uleb128 0x2131 # (DW_AT_GNU_dwo_id)
204 .uleb128 0x7 # (DW_FORM_data8)
205 .byte 0
206 .byte 0
207 .uleb128 0x2 # (abbrev code)
208 .uleb128 0x2e # (TAG: DW_TAG_subprogram)
209 .byte 0x1 # DW_children_yes
210 .uleb128 0x3f # (DW_AT_external)
211 .uleb128 0x19 # (DW_FORM_flag_present)
212 .uleb128 0x3 # (DW_AT_name)
213 .uleb128 0x8 # (DW_FORM_string)
214 .uleb128 0x3a # (DW_AT_decl_file)
215 .uleb128 0xb # (DW_FORM_data1)
216 .uleb128 0x3b # (DW_AT_decl_line)
217 .uleb128 0xb # (DW_FORM_data1)
218 .uleb128 0x27 # (DW_AT_prototyped)
219 .uleb128 0x19 # (DW_FORM_flag_present)
220 .uleb128 0x49 # (DW_AT_type)
221 .uleb128 0x13 # (DW_FORM_ref4)
222 .uleb128 0x55 # (DW_AT_ranges)
223 .uleb128 0x17 # (DW_FORM_sec_offset)
224 .uleb128 0x40 # (DW_AT_frame_base)
225 .uleb128 0x18 # (DW_FORM_exprloc)
226 .uleb128 0x1 # (DW_AT_sibling)
227 .uleb128 0x13 # (DW_FORM_ref4)
228 .byte 0
229 .byte 0
230 .uleb128 0x3 # (abbrev code)
231 .uleb128 0x5 # (TAG: DW_TAG_formal_parameter)
232 .byte 0 # DW_children_no
233 .uleb128 0x3 # (DW_AT_name)
234 .uleb128 0x8 # (DW_FORM_string)
235 .uleb128 0x3a # (DW_AT_decl_file)
236 .uleb128 0xb # (DW_FORM_data1)
237 .uleb128 0x3b # (DW_AT_decl_line)
238 .uleb128 0xb # (DW_FORM_data1)
239 .uleb128 0x49 # (DW_AT_type)
240 .uleb128 0x13 # (DW_FORM_ref4)
241 .uleb128 0x2 # (DW_AT_location)
242 .uleb128 0x18 # (DW_FORM_exprloc)
243 .byte 0
244 .byte 0
245 .uleb128 0x4 # (abbrev code)
246 .uleb128 0x24 # (TAG: DW_TAG_base_type)
247 .byte 0 # DW_children_no
248 .uleb128 0xb # (DW_AT_byte_size)
249 .uleb128 0xb # (DW_FORM_data1)
250 .uleb128 0x3e # (DW_AT_encoding)
251 .uleb128 0xb # (DW_FORM_data1)
252 .uleb128 0x3 # (DW_AT_name)
253 .uleb128 0x8 # (DW_FORM_string)
254 .byte 0
255 .byte 0
256 .uleb128 0x5 # (abbrev code)
257 .uleb128 0x2e # (TAG: DW_TAG_subprogram)
258 .byte 0 # DW_children_no
259 .uleb128 0x3f # (DW_AT_external)
260 .uleb128 0x19 # (DW_FORM_flag_present)
261 .uleb128 0x3 # (DW_AT_name)
262 .uleb128 0x8 # (DW_FORM_string)
263 .uleb128 0x3a # (DW_AT_decl_file)
264 .uleb128 0xb # (DW_FORM_data1)
265 .uleb128 0x3b # (DW_AT_decl_line)
266 .uleb128 0xb # (DW_FORM_data1)
267 .uleb128 0x49 # (DW_AT_type)
268 .uleb128 0x13 # (DW_FORM_ref4)
269 .uleb128 0x11 # (DW_AT_low_pc)
270 .uleb128 0x1f01 # (DW_FORM_GNU_addr_index)
271 .uleb128 0x12 # (DW_AT_high_pc)
272 .uleb128 0x7 # (DW_FORM_data8)
273 .uleb128 0x40 # (DW_AT_frame_base)
274 .uleb128 0x18 # (DW_FORM_exprloc)
275 .byte 0
276 .byte 0
277 .byte 0
278 .section .debug_pubnames,"",@progbits
279 .Ldebug_pubnames0:
280 .4byte 0x20 # Length of Public Names Info
281 .2byte 0x2 # DWARF Version
282 .4byte .Lskeleton_debug_info0 # Offset of Compilation Unit Info
283 .4byte 0xd2 # Compilation Unit Length
284 .4byte 0x89 # DIE offset
285 .ascii "func\0" # external name
286 .4byte 0xba # DIE offset
287 .ascii "main\0" # external name
288 .4byte 0
289 .section .debug_pubtypes,"",@progbits
290 .Ldebug_pubtypes0:
291 .4byte 0x16 # Length of Public Type Names Info
292 .2byte 0x2 # DWARF Version
293 .4byte .Lskeleton_debug_info0 # Offset of Compilation Unit Info
294 .4byte 0xd2 # Compilation Unit Length
295 .4byte .Ldebug_info0_int # DIE offset
296 .ascii "int\0" # external name
297 .4byte 0
298 .section .debug_aranges,"",@progbits
299 .4byte 0x2c # Length of Address Ranges Info
300 .2byte 0x2 # DWARF Version
301 .4byte .Lskeleton_debug_info0 # Offset of Compilation Unit Info
302 .byte 0x8 # Size of Address
303 .byte 0 # Size of Segment Descriptor
304 .2byte 0 # Pad to 16 byte boundary
305 .2byte 0
306 .8byte .Ltext0 # Address
307 .8byte .Letext0-.Ltext0 # Length
308 .8byte 0
309 .8byte 0
310 .section .debug_line,"",@progbits
311 .Ldebug_line0:
312 .section .debug_line.dwo,"",@progbits
313 .Lskeleton_debug_line0:
314 .4byte .LELT0-.LSLT0 # Length of Source Line Info
315 .LSLT0:
316 .2byte 0x4 # DWARF Version
317 .4byte .LELTP0-.LASLTP0 # Prolog Length
318 .LASLTP0:
319 .byte 0x1 # Minimum Instruction Length
320 .byte 0x1 # Maximum Operations Per Instruction
321 .byte 0x1 # Default is_stmt_start flag
322 .byte 0xf6 # Line Base Value (Special Opcodes)
323 .byte 0xf5 # Line Range Value (Special Opcodes)
324 .byte 0xa # Special Opcode Base
325 .byte 0 # opcode: 0x1 has 0 args
326 .byte 0x1 # opcode: 0x2 has 1 args
327 .byte 0x1 # opcode: 0x3 has 1 args
328 .byte 0x1 # opcode: 0x4 has 1 args
329 .byte 0x1 # opcode: 0x5 has 1 args
330 .byte 0 # opcode: 0x6 has 0 args
331 .byte 0 # opcode: 0x7 has 0 args
332 .byte 0 # opcode: 0x8 has 0 args
333 .byte 0x1 # opcode: 0x9 has 1 args
334 .byte 0 # End directory table
335 .ascii "fission-base.c\0" # File Entry: 0x1
336 .uleb128 0
337 .uleb128 0
338 .uleb128 0
339 .byte 0 # End file name table
340 .LELTP0:
341 .LELT0:
342 .section .debug_addr,"",@progbits
343 .Ldebug_addr0:
344 # Shift the real entries down by a non-zero amount to test
345 # DW_AT_GNU_addr_base.
346 .8byte 0,0
347 .Ldebug_addr0_begin:
348 .8byte .LFB0 # DW_AT_low_pc
349 .8byte .LFB1 # DW_AT_low_pc
350
351 .section .debug_ranges,"",@progbits
352 .Ldebug_ranges0:
353 # Shift the real entries down by a non-zero amount to test
354 # DW_AT_GNU_ranges_base.
355 .8byte 0,0
356 .Ldebug_ranges0_begin:
357 # Note: Since the DW_TAG_compile_unit specifies low_pc, that sets
358 # the base address, and thus we have to subtract it here.
359 .8byte .LFB0 - .Ltext0 # Offset 0
360 .8byte .LFE0 - .Ltext0
361 .8byte 0
362 .8byte 0
363
364 .section .note.GNU-stack,"",@progbits
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp ('k') | gdb/testsuite/gdb.dwarf2/fission-base.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698