diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-11-23 21:14:45 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-11-23 21:14:45 +0000 |
commit | 7027acc71260d05e8ba9983bceb92bf162af1241 (patch) | |
tree | 39549ae90005586e013fa671552216a09cfba8a3 | |
parent | cb137aa50156c9b105cf393b867c7dbe206ef9c9 (diff) | |
download | gdb-7027acc71260d05e8ba9983bceb92bf162af1241.zip gdb-7027acc71260d05e8ba9983bceb92bf162af1241.tar.gz gdb-7027acc71260d05e8ba9983bceb92bf162af1241.tar.bz2 |
* gdb.arch/i386-unwind.exp: Use gdb_run_cmd and gdb_expect instead
of gdb_test "run".
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-unwind.exp | 17 |
2 files changed, 20 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 27f40de..954a1c1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2003-11-23 Mark Kettenis <kettenis@gnu.org> + * gdb.arch/i386-unwind.exp: Use gdb_run_cmd and gdb_expect instead + of gdb_test "run". + +2003-11-23 Mark Kettenis <kettenis@gnu.org> + * gdb.arch/i386-unwind.exp: Don't use runto_main. Change "continue" into "run". diff --git a/gdb/testsuite/gdb.arch/i386-unwind.exp b/gdb/testsuite/gdb.arch/i386-unwind.exp index fa01a8d..9c3130f 100644 --- a/gdb/testsuite/gdb.arch/i386-unwind.exp +++ b/gdb/testsuite/gdb.arch/i386-unwind.exp @@ -47,8 +47,21 @@ gdb_load ${binfile} # Testcase for backtrace/1435. -gdb_test "run" "Program received signal SIGTRAP.*" \ - "run past gdb1435" +# We use gdb_run_cmd so this stands a chance to work for remote +# targets too. +gdb_run_cmd + +gdb_expect { + -re "Program received signal SIGTRAP.*$gdb_prompt $" { + pass "run past gdb1435" + } + -re ".*$gdb_prompt $" { + fail "run past gdb1435" + } + timeout { + fail "run past gdb1435 (timeout)" + } +} gdb_test "backtrace 10" \ "#1\[ \t]*$hex in gdb1435.*\r\n#2\[ \t\]*$hex in main.*" \ |