OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.dwarf2/] [callframecfa.S] - Blame information for rev 318

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/*
2
   Copyright 2009, 2010 Free Software Foundation, Inc.
3
 
4
   This program is free software; you can redistribute it and/or modify
5
   it under the terms of the GNU General Public License as published by
6
   the Free Software Foundation; either version 3 of the License, or
7
   (at your option) any later version.
8
 
9
   This program is distributed in the hope that it will be useful,
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
   GNU General Public License for more details.
13
 
14
   You should have received a copy of the GNU General Public License
15
   along with this program.  If not, see .
16
 */
17
 
18
/* This was compiled from a trivial program just to test the
19
   DW_OP_call_frame_cfa operator:
20
 
21
    int func (int arg) {
22
      return arg + 23;
23
    }
24
 
25
    int main(int argc, char *argv[]) {
26
      func (77);
27
    }
28
*/
29
 
30
        .file   "q.c"
31
        .section        .debug_abbrev,"",@progbits
32
.Ldebug_abbrev0:
33
        .section        .debug_info,"",@progbits
34
.Ldebug_info0:
35
        .section        .debug_line,"",@progbits
36
.Ldebug_line0:
37
        .text
38
.Ltext0:
39
.globl func
40
        .type   func, @function
41
func:
42
.LFB0:
43
        .file 1 "q.c"
44
        .loc 1 2 0
45
        .cfi_startproc
46
        pushl   %ebp
47
        .cfi_def_cfa_offset 8
48
        movl    %esp, %ebp
49
        .cfi_offset 5, -8
50
        .cfi_def_cfa_register 5
51
        .loc 1 3 0
52
        movl    8(%ebp), %eax
53
        addl    $23, %eax
54
        .loc 1 4 0
55
        popl    %ebp
56
        .cfi_restore 5
57
        .cfi_def_cfa 4, 4
58
        ret
59
        .cfi_endproc
60
.LFE0:
61
        .size   func, .-func
62
.globl _start
63
        .type   _start, @function
64
_start:
65
.LFB1:
66
        .loc 1 6 0
67
        .cfi_startproc
68
        pushl   %ebp
69
        .cfi_def_cfa_offset 8
70
        movl    %esp, %ebp
71
        .cfi_offset 5, -8
72
        .cfi_def_cfa_register 5
73
        subl    $4, %esp
74
        .loc 1 7 0
75
        movl    $77, (%esp)
76
        call    func
77
        .loc 1 8 0
78
        leave
79
        .cfi_restore 5
80
        .cfi_def_cfa 4, 4
81
        ret
82
        .cfi_endproc
83
.LFE1:
84
        .size   _start, .-_start
85
.Letext0:
86
        .section        .debug_info
87
        .long   0x9e
88
        .value  0x3
89
        .long   .Ldebug_abbrev0
90
        .byte   0x4
91
        .uleb128 0x1
92
        .long   .LASF5
93
        .byte   0x1
94
        .string "q.c"
95
        .long   .LASF6
96
        .long   .Ltext0
97
        .long   .Letext0
98
        .long   .Ldebug_line0
99
        .uleb128 0x2
100
        .byte   0x1
101
        .long   .LASF0
102
        .byte   0x1
103
        .byte   0x1
104
        .byte   0x1
105
        .long   0x4f
106
        .long   .LFB0
107
        .long   .LFE0
108
        .byte   0x1
109
        .byte   0x9c
110
        .long   0x4f
111
        .uleb128 0x3
112
        .string "arg"
113
        .byte   0x1
114
        .byte   0x1
115
        .long   0x4f
116
        .byte   0x2
117
        .byte   0x91
118
        .sleb128 0
119
        .byte   0x0
120
        .uleb128 0x4
121
        .byte   0x4
122
        .byte   0x5
123
        .string "int"
124
        .uleb128 0x2
125
        .byte   0x1
126
        .long   .LASF1
127
        .byte   0x1
128
        .byte   0x6
129
        .byte   0x1
130
        .long   0x4f
131
        .long   .LFB1
132
        .long   .LFE1
133
        .byte   0x1
134
        .byte   0x9c
135
        .long   0x8e
136
        .uleb128 0x5
137
        .long   .LASF2
138
        .byte   0x1
139
        .byte   0x6
140
        .long   0x4f
141
        .byte   0x2
142
        .byte   0x91
143
        .sleb128 0
144
        .uleb128 0x5
145
        .long   .LASF3
146
        .byte   0x1
147
        .byte   0x6
148
        .long   0x8e
149
        .byte   0x2
150
        .byte   0x91
151
        .sleb128 4
152
        .byte   0x0
153
        .uleb128 0x6
154
        .byte   0x4
155
        .long   0x94
156
        .uleb128 0x6
157
        .byte   0x4
158
        .long   0x9a
159
        .uleb128 0x7
160
        .byte   0x1
161
        .byte   0x6
162
        .long   .LASF4
163
        .byte   0x0
164
        .section        .debug_abbrev
165
        .uleb128 0x1
166
        .uleb128 0x11
167
        .byte   0x1
168
        .uleb128 0x25
169
        .uleb128 0xe
170
        .uleb128 0x13
171
        .uleb128 0xb
172
        .uleb128 0x3
173
        .uleb128 0x8
174
        .uleb128 0x1b
175
        .uleb128 0xe
176
        .uleb128 0x11
177
        .uleb128 0x1
178
        .uleb128 0x12
179
        .uleb128 0x1
180
        .uleb128 0x10
181
        .uleb128 0x6
182
        .byte   0x0
183
        .byte   0x0
184
        .uleb128 0x2
185
        .uleb128 0x2e
186
        .byte   0x1
187
        .uleb128 0x3f
188
        .uleb128 0xc
189
        .uleb128 0x3
190
        .uleb128 0xe
191
        .uleb128 0x3a
192
        .uleb128 0xb
193
        .uleb128 0x3b
194
        .uleb128 0xb
195
        .uleb128 0x27
196
        .uleb128 0xc
197
        .uleb128 0x49
198
        .uleb128 0x13
199
        .uleb128 0x11
200
        .uleb128 0x1
201
        .uleb128 0x12
202
        .uleb128 0x1
203
        .uleb128 0x40
204
        .uleb128 0xa
205
        .uleb128 0x1
206
        .uleb128 0x13
207
        .byte   0x0
208
        .byte   0x0
209
        .uleb128 0x3
210
        .uleb128 0x5
211
        .byte   0x0
212
        .uleb128 0x3
213
        .uleb128 0x8
214
        .uleb128 0x3a
215
        .uleb128 0xb
216
        .uleb128 0x3b
217
        .uleb128 0xb
218
        .uleb128 0x49
219
        .uleb128 0x13
220
        .uleb128 0x2
221
        .uleb128 0xa
222
        .byte   0x0
223
        .byte   0x0
224
        .uleb128 0x4
225
        .uleb128 0x24
226
        .byte   0x0
227
        .uleb128 0xb
228
        .uleb128 0xb
229
        .uleb128 0x3e
230
        .uleb128 0xb
231
        .uleb128 0x3
232
        .uleb128 0x8
233
        .byte   0x0
234
        .byte   0x0
235
        .uleb128 0x5
236
        .uleb128 0x5
237
        .byte   0x0
238
        .uleb128 0x3
239
        .uleb128 0xe
240
        .uleb128 0x3a
241
        .uleb128 0xb
242
        .uleb128 0x3b
243
        .uleb128 0xb
244
        .uleb128 0x49
245
        .uleb128 0x13
246
        .uleb128 0x2
247
        .uleb128 0xa
248
        .byte   0x0
249
        .byte   0x0
250
        .uleb128 0x6
251
        .uleb128 0xf
252
        .byte   0x0
253
        .uleb128 0xb
254
        .uleb128 0xb
255
        .uleb128 0x49
256
        .uleb128 0x13
257
        .byte   0x0
258
        .byte   0x0
259
        .uleb128 0x7
260
        .uleb128 0x24
261
        .byte   0x0
262
        .uleb128 0xb
263
        .uleb128 0xb
264
        .uleb128 0x3e
265
        .uleb128 0xb
266
        .uleb128 0x3
267
        .uleb128 0xe
268
        .byte   0x0
269
        .byte   0x0
270
        .byte   0x0
271
        .section        .debug_pubnames,"",@progbits
272
        .long   0x20
273
        .value  0x2
274
        .long   .Ldebug_info0
275
        .long   0xa2
276
        .long   0x25
277
        .string "func"
278
        .long   0x56
279
        .string "main"
280
        .long   0x0
281
        .section        .debug_aranges,"",@progbits
282
        .long   0x1c
283
        .value  0x2
284
        .long   .Ldebug_info0
285
        .byte   0x4
286
        .byte   0x0
287
        .value  0x0
288
        .value  0x0
289
        .long   .Ltext0
290
        .long   .Letext0-.Ltext0
291
        .long   0x0
292
        .long   0x0
293
        .section        .debug_str,"MS",@progbits,1
294
.LASF5:
295
        .string "GNU C 4.5.0 20090810 (experimental) [trunk revision 150633]"
296
.LASF2:
297
        .string "argc"
298
.LASF6:
299
        .string "/tmp"
300
.LASF0:
301
        .string "func"
302
.LASF3:
303
        .string "argv"
304
.LASF1:
305
        .string "main"
306
.LASF4:
307
        .string "char"
308
        .ident  "GCC: (GNU) 4.5.0 20090810 (experimental) [trunk revision 150633]"
309
        .section        .note.GNU-stack,"",@progbits

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.