summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/i386-prologue.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-02-13 22:33:26 +0000
committerMark Kettenis <kettenis@gnu.org>2006-02-13 22:33:26 +0000
commit31d8bdd239bf74d90a9db06ff9e0690135b845b3 (patch)
treecf28385fb5dd017d49b4cfc70f2f7a36e625e2de /gdb/testsuite/gdb.arch/i386-prologue.c
parent34e41e637a9134fd5d3fa00eefe4b42428e7ddc8 (diff)
downloadbinutils-gdb-31d8bdd239bf74d90a9db06ff9e0690135b845b3.tar.gz
* gdb.arch/i386-prologue.exp: Add testcase for PR breakpoints/2080.
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-prologue.c')
-rw-r--r--gdb/testsuite/gdb.arch/i386-prologue.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-prologue.c b/gdb/testsuite/gdb.arch/i386-prologue.c
index e6846576fde..1ce8b68fd7c 100644
--- a/gdb/testsuite/gdb.arch/i386-prologue.c
+++ b/gdb/testsuite/gdb.arch/i386-prologue.c
@@ -1,6 +1,6 @@
/* Unwinder test program.
- Copyright 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
This file is part of GDB.
@@ -34,6 +34,7 @@ int
main (void)
{
standard ();
+ stack_align ();
gdb1253 ();
gdb1718 ();
gdb1338 ();
@@ -110,3 +111,20 @@ asm(".text\n"
" movl %ebp,%esp\n"
" popl %ebp\n"
" ret\n");
+
+asm(".text\n"
+ " .align 8\n"
+ SYMBOL (stack_align) ":\n"
+ " leal 4(%esp), %ecx\n"
+ " andl $-16, %esp\n"
+ " pushl -4(%ecx)\n"
+ " pushl %ebp\n"
+ " movl %esp, %ebp\n"
+ " pushl %edi\n"
+ " pushl %ecx\n"
+ " int $0x03\n"
+ " popl %ecx\n"
+ " popl %edi\n"
+ " popl %ebp\n"
+ " leal -4(%ecx), %esp\n"
+ " ret\n");