1 /* Unwinder test program.
3 Copyright (C) 2003, 2004, 2006 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);
45 /* A normal prologue. */
49 SYMBOL (standard
) ":\n"
57 /* Relevant part of the prologue from symtab/1253. */
61 SYMBOL (gdb1253
) ":\n"
70 /* Relevant part of the prologue from backtrace/1718. */
74 SYMBOL (gdb1718
) ":\n"
76 " movl $0x11111111, %eax\n"
79 " movl $0x22222222, %esi\n"
85 /* Relevant part of the prologue from backtrace/1338. */
89 SYMBOL (gdb1338
) ":\n"
99 /* The purpose of this function is to verify that, during prologue
100 skip, GDB does not follow a jump at the beginnning of the "real"
105 SYMBOL (jump_at_beginning
) ":\n"
117 SYMBOL (stack_align
) ":\n"
118 " leal 4(%esp), %ecx\n"
129 " leal -4(%ecx), %esp\n"