aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-09-07 16:38:00 +0000
committerMark Kettenis <kettenis@gnu.org>2003-09-07 16:38:00 +0000
commit161afb2472251a3a8c9bd2c23fed3d3a1d250704 (patch)
treea6b1074884c408cb5396f917c104186671a52575 /gdb
parent9407de8ede3b794226c2601468bb0c967e392245 (diff)
downloadgdb-161afb2472251a3a8c9bd2c23fed3d3a1d250704.zip
gdb-161afb2472251a3a8c9bd2c23fed3d3a1d250704.tar.gz
gdb-161afb2472251a3a8c9bd2c23fed3d3a1d250704.tar.bz2
* gdb.arch/i386-prologue.exp: Add checks for saved registers.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.arch/i386-prologue.exp8
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index d372521..5919e73 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-07 Mark Kettenis <m.kettenis@osp.nl>
+
+ * gdb.arch/i386-prologue.exp: Add checks for saved registers.
+
2003-08-30 Michael Chastain <mec@shout.net>
* gdb.base/selftest.exp: Remove support for m68k*-*-hpux.
diff --git a/gdb/testsuite/gdb.arch/i386-prologue.exp b/gdb/testsuite/gdb.arch/i386-prologue.exp
index 68a3125..f1c1e72 100644
--- a/gdb/testsuite/gdb.arch/i386-prologue.exp
+++ b/gdb/testsuite/gdb.arch/i386-prologue.exp
@@ -61,6 +61,10 @@ gdb_test "backtrace 10" \
"#0\[ \t\]*$hex in gdb1253.*\r\n#1\[ \t\]*$hex in main.*" \
"backtrace in gdb1253"
+gdb_test "info frame" \
+ ".*Saved registers:.*ebp at.*edi at.*eip at.*" \
+ "saved registers in gdb1253"
+
# Testcase from backtrace/1338.
gdb_test "continue" "Program received signal SIGTRAP.*" "continue to gdb1338"
@@ -68,3 +72,7 @@ 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"
+
+gdb_test "info frame" \
+ ".*Saved registers:.*ebx at.*esi at.*edi at.*eip at.*" \
+ "saved registers in gdb1338"