summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/i386-prologue.exp
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-08-01 14:28:51 +0000
committerMark Kettenis <kettenis@gnu.org>2004-08-01 14:28:51 +0000
commitb6702b23360ddb41470fd527a6e2ef6ad457f6be (patch)
treedd755f3e48064b92547202c8eaa1b0bc97d4943a /gdb/testsuite/gdb.arch/i386-prologue.exp
parentc203e0ca367bb25bb0d3a3bd64aea495bebc3d7a (diff)
downloadbinutils-gdb-b6702b23360ddb41470fd527a6e2ef6ad457f6be.tar.gz
* gdb.arch/i386-prologue.exp: Add testcase for standard prolgue.
* gdb.arch/i386-prologue.c (standard): New prototype and function. (main): Call new function.
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-prologue.exp')
-rw-r--r--gdb/testsuite/gdb.arch/i386-prologue.exp12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-prologue.exp b/gdb/testsuite/gdb.arch/i386-prologue.exp
index 420773c6037..4c5089848d6 100644
--- a/gdb/testsuite/gdb.arch/i386-prologue.exp
+++ b/gdb/testsuite/gdb.arch/i386-prologue.exp
@@ -61,6 +61,18 @@ if ![runto_main] then {
gdb_suppress_tests
}
+# Testcase for standard prologue.
+
+gdb_test "continue" "Program received signal SIGTRAP.*" "continue to standard"
+
+gdb_test "backtrace 10" \
+ "#0\[ \t\]*$hex in standard.*\r\n#1\[ \t\]*$hex in main.*" \
+ "backtrace in standard"
+
+gdb_test "info frame" \
+ ".*Saved registers:.*ebp at.*edi at.*eip at.*" \
+ "saved registers in standard"
+
# Testcase from symtab/1253.
gdb_test "continue" "Program received signal SIGTRAP.*" "continue to gdb1253"