diff options
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-prologue.c')
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-prologue.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-prologue.c b/gdb/testsuite/gdb.arch/i386-prologue.c index 15ed2ca..5b4e5d8 100644 --- a/gdb/testsuite/gdb.arch/i386-prologue.c +++ b/gdb/testsuite/gdb.arch/i386-prologue.c @@ -26,6 +26,7 @@ #endif void gdb1253 (void); +void gdb1718 (void); void gdb1338 (void); void jump_at_beginning (void); @@ -33,6 +34,7 @@ int main (void) { gdb1253 (); + gdb1718 (); gdb1338 (); jump_at_beginning (); return 0; @@ -51,6 +53,21 @@ asm(".text\n" " leave\n" " ret\n"); +/* Relevant part of the prologue from backtrace/1718. */ + +asm(".text\n" + " .align 8\n" + SYMBOL (gdb1718) ":\n" + " pushl %ebp\n" + " movl $0x11111111, %eax\n" + " movl %esp, %ebp\n" + " pushl %esi\n" + " movl $0x22222222, %esi\n" + " pushl %ebx\n" + " int $0x03\n" + " leave\n" + " ret\n"); + /* Relevant part of the prologue from backtrace/1338. */ asm(".text\n" |