* gdb.arch/i386-prologue.c (gdb1338): Add function.
+2003-08-18 Mark Kettenis <kettenis@gnu.org>
+
+ * gdb.arch/i386-prologue.exp: Add testcase for PR backtrace/1338.
+ * gdb.arch/i386-prologue.c (gdb1338): Add function.
+
2003-08-17 Daniel Jacobowitz <drow@mvista.com>
* mi-var-display.exp (-var-list-children weird): Accept function
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"
" 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");
gdb_suppress_tests
}
-# Testcase from gdb/1253.
+# Testcase from symtab/1253.
gdb_test "continue" "Program received signal SIGTRAP.*" "continue to gdb1253"
gdb_test "backtrace 10" \
"#0\[ \t\]*$hex in gdb1253.*\r\n#1\[ \t\]*$hex in main.*" \
"backtrace in gdb1253"
+
+# Testcase from backtrace/1338.
+
+gdb_test "continue" "Program received signal SIGTRAP.*" "continue to gdb1338"
+
+gdb_test "backtrace 10" \
+ "#0\[ \t\]*$hex in gdb1338.*\r\n#1\[ \t\]*$hex in main.*" \
+ "backtrace in gdb1338"