]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.S
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.arch / i386-stap-eval-lang-ada.S
CommitLineData
f7088df3
SDJ
1/* This testcase is part of GDB, the GNU debugger.
2
1d506c26 3 Copyright 2014-2024 Free Software Foundation, Inc.
f7088df3
SDJ
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 has been generated using the following command:
19
20 gcc -m32 -S i386-stap-eval-lang-ada.c -o i386-stap-eval-lang-ada.S
21
22 The important thing about this is that the probe argument (below)
23 should be exactly "-4@-4(%ebp)" in order to trigger the bug. */
24
25 .file "i386-stap-eval-lang-ada.c"
26 .text
27 .globl main
28 .type main, @function
29main:
30.LFB0:
31 .cfi_startproc
32 pushl %ebp
33 .cfi_def_cfa_offset 8
34 .cfi_offset 5, -8
35 movl %esp, %ebp
36 .cfi_def_cfa_register 5
37 subl $16, %esp
38 movl $40, -4(%ebp)
39#APP
40# 27 "i386-stap-eval-lang-ada.c" 1
41 990: nop
42.pushsection .note.stapsdt,"?","note"
43.balign 4
44.4byte 992f-991f,994f-993f,3
45991: .asciz "stapsdt"
46992: .balign 4
47993: .4byte 990b
48.4byte _.stapsdt.base
49.4byte 0
50.asciz "foo"
51.asciz "bar"
52/* The following probe argument should be "-4@-4(%ebp)", or some other
53 register displacement expression that references %ebp, otherwise the
54 bug will not trigger. */
55.asciz "-4@-4(%ebp)"
56994: .balign 4
57.popsection
58
59# 0 "" 2
60# 27 "i386-stap-eval-lang-ada.c" 1
61 .ifndef _.stapsdt.base
62.pushsection .stapsdt.base,"aG","progbits",.stapsdt.base,comdat
63.weak _.stapsdt.base
64.hidden _.stapsdt.base
65_.stapsdt.base: .space 1
66.size _.stapsdt.base,1
67.popsection
68.endif
69
70# 0 "" 2
71#NO_APP
72 movl $0, %eax
73 leave
74 .cfi_restore 5
75 .cfi_def_cfa 4, 4
76 ret
77 .cfi_endproc
78.LFE0:
79 .size main, .-main
80 .ident "GCC: (GNU) 4.8.3 20140911 (Red Hat 4.8.3-7)"
81 .section .note.GNU-stack,"",@progbits