diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-08-17 23:18:31 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-08-17 23:18:31 +0000 |
commit | c945b932a44c97019e76ca76b5444f3207ee13de (patch) | |
tree | d89cbd65f2f8c67d27bdf550fdcde1d6a7f8e0a5 /gdb/testsuite/gdb.arch/i386-prologue.c | |
parent | 99ab4326f1095f50d2991b6f633337e7d92e1134 (diff) | |
download | gdb-c945b932a44c97019e76ca76b5444f3207ee13de.zip gdb-c945b932a44c97019e76ca76b5444f3207ee13de.tar.gz gdb-c945b932a44c97019e76ca76b5444f3207ee13de.tar.bz2 |
* gdb.arch/i386-prologue.exp: Add testcase for PR backtrace/1338.
* gdb.arch/i386-prologue.c (gdb1338): Add function.
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-prologue.c')
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-prologue.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-prologue.c b/gdb/testsuite/gdb.arch/i386-prologue.c index 2bc3627..4c92a9c 100644 --- a/gdb/testsuite/gdb.arch/i386-prologue.c +++ b/gdb/testsuite/gdb.arch/i386-prologue.c @@ -1,13 +1,15 @@ void gdb1253 (void); +void gdb1338 (void); int main (void) { gdb1253 (); + gdb1338 (); return 0; } -/* Relevant part of the prologue from gdb/1253. */ +/* Relevant part of the prologue from symtab/1253. */ asm(".text\n" " .align 8\n" @@ -19,3 +21,17 @@ asm(".text\n" " int $0x03\n" " leave\n" " ret\n"); + +/* Relevant part of the prologue from backtrace/1338. */ + +asm(".text\n" + " .align 8\n" + "gdb1338:\n" + " pushl %edi\n" + " pushl %esi\n" + " pushl %ebx\n" + " int $0x03\n" + " popl %ebx\n" + " popl %esi\n" + " popl %edi\n" + " ret\n"); |