diff options
author | Pedro Alves <palves@redhat.com> | 2010-03-18 13:21:40 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-03-18 13:21:40 +0000 |
commit | 4247603be536b5ff74624da45e486c369e995f82 (patch) | |
tree | 00b749dbe1d4cac5443dc93f811512393d30f869 /gdb/testsuite | |
parent | 54801c2d1a35d0176b6ee079d34cc8ae9ab89060 (diff) | |
download | gdb-4247603be536b5ff74624da45e486c369e995f82.zip gdb-4247603be536b5ff74624da45e486c369e995f82.tar.gz gdb-4247603be536b5ff74624da45e486c369e995f82.tar.bz2 |
gdb/
* infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
a valid selected thread, and that it is not running.
(advance_command): Ditto.
(finish_command): Ditto.
gdb/testsuite/
* gdb.base/default.exp: Adjust.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/default.exp | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d79a15c..ad46ecf 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-03-18 Pedro Alves <pedro@codesourcery.com> + + * gdb.base/default.exp: Adjust the expected output of the finish + and until commands when the inferior is not being run. + 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/shadow.exp: Removed kfail; test has been fix. diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp index 9603fd4..808435d 100644 --- a/gdb/testsuite/gdb.base/default.exp +++ b/gdb/testsuite/gdb.base/default.exp @@ -250,7 +250,7 @@ gdb_expect { } #test finish -gdb_test "finish" "The program is not running." "finish" +gdb_test "finish" "The program is not being run." "finish" #test forward-search # The message here comes from the regexp library, not gdb, and so can # vary on different systems. @@ -753,9 +753,9 @@ gdb_test "tbreak" "No default breakpoint address now." "tbreak" #test tty gdb_test "tty" "Argument required .filename to set it to\..*" "tty" #test until "u" abbreviation -gdb_test "u" "The program is not running." "until \"u\" abbreviation" +gdb_test "u" "The program is not being run." "until \"u\" abbreviation" #test until -gdb_test "until" "The program is not running." "until" +gdb_test "until" "The program is not being run." "until" #test undisplay # FIXME -- need to dump full output to detailed log send_gdb "undisplay\n" |