1 /* Unwinder test program.
3 Copyright (C) 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
23 #define SYMBOL(str) SYMBOL_PREFIX #str
25 #define SYMBOL(str) #str
31 void jump_at_beginning (void);
47 /* A normal prologue. */
51 SYMBOL (standard) ":\n"
59 /* Relevant part of the prologue from symtab/1253. */
63 SYMBOL (gdb1253) ":\n"
72 /* Relevant part of the prologue from backtrace/1718. */
76 SYMBOL (gdb1718) ":\n"
78 " movl $0x11111111, %eax\n"
81 " movl $0x22222222, %esi\n"
87 /* Relevant part of the prologue from backtrace/1338. */
91 SYMBOL (gdb1338) ":\n"
101 /* The purpose of this function is to verify that, during prologue
102 skip, GDB does not follow a jump at the beginnning of the "real"
107 SYMBOL (jump_at_beginning) ":\n"
119 SYMBOL (stack_align_ecx) ":\n"
120 " leal 4(%esp), %ecx\n"
131 " leal -4(%ecx), %esp\n"
136 SYMBOL (stack_align_edx) ":\n"
137 " leal 4(%esp), %edx\n"
148 " leal -4(%edx), %esp\n"
153 SYMBOL (stack_align_eax) ":\n"
154 " leal 4(%esp), %eax\n"
165 " leal -4(%eax), %esp\n"