aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/i386-prologue.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-prologue.c')
-rw-r--r--gdb/testsuite/gdb.arch/i386-prologue.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-prologue.c b/gdb/testsuite/gdb.arch/i386-prologue.c
new file mode 100644
index 0000000..2bc3627
--- /dev/null
+++ b/gdb/testsuite/gdb.arch/i386-prologue.c
@@ -0,0 +1,21 @@
+void gdb1253 (void);
+
+int
+main (void)
+{
+ gdb1253 ();
+ return 0;
+}
+
+/* Relevant part of the prologue from gdb/1253. */
+
+asm(".text\n"
+ " .align 8\n"
+ "gdb1253:\n"
+ " pushl %ebp\n"
+ " xorl %ecx, %ecx\n"
+ " movl %esp, %ebp\n"
+ " pushl %edi\n"
+ " int $0x03\n"
+ " leave\n"
+ " ret\n");