]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.arch/i386-prologue.c
1 /* Unwinder test program.
3 Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009
4 Free Software Foundation, Inc.
6 This file is part of GDB.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 #define SYMBOL(str) SYMBOL_PREFIX #str
24 #define SYMBOL(str) #str
30 void jump_at_beginning (void);
46 /* A normal prologue. */
50 SYMBOL (standard
) ":\n"
58 /* Relevant part of the prologue from symtab/1253. */
62 SYMBOL (gdb1253
) ":\n"
71 /* Relevant part of the prologue from backtrace/1718. */
75 SYMBOL (gdb1718
) ":\n"
77 " movl $0x11111111, %eax\n"
80 " movl $0x22222222, %esi\n"
86 /* Relevant part of the prologue from backtrace/1338. */
90 SYMBOL (gdb1338
) ":\n"
100 /* The purpose of this function is to verify that, during prologue
101 skip, GDB does not follow a jump at the beginnning of the "real"
106 SYMBOL (jump_at_beginning
) ":\n"
118 SYMBOL (stack_align_ecx
) ":\n"
119 " leal 4(%esp), %ecx\n"
130 " leal -4(%ecx), %esp\n"
135 SYMBOL (stack_align_edx
) ":\n"
136 " leal 4(%esp), %edx\n"
147 " leal -4(%edx), %esp\n"
152 SYMBOL (stack_align_eax
) ":\n"
153 " leal 4(%esp), %eax\n"
164 " leal -4(%eax), %esp\n"