From: Mark Kettenis Date: Sun, 7 Sep 2003 16:38:00 +0000 (+0000) Subject: * gdb.arch/i386-prologue.exp: Add checks for saved registers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=161afb2472251a3a8c9bd2c23fed3d3a1d250704;p=binutils-gdb.git * gdb.arch/i386-prologue.exp: Add checks for saved registers. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d372521cd34..5919e73b68d 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-09-07 Mark Kettenis + + * gdb.arch/i386-prologue.exp: Add checks for saved registers. + 2003-08-30 Michael Chastain * 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 68a3125632c..f1c1e72425a 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"