diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-02-08 03:56:15 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-02-08 03:56:15 +0000 |
commit | 83f66e8f3b8f3b6b31e243cc6308f2ffada1e4d4 (patch) | |
tree | 7bc495f5a38719162bac8efbe50d58ac9ea32bdf /gdb/testsuite/gdb.objc | |
parent | d02c80cdf4c8426e911e897c4c6a9aa950354b1b (diff) | |
download | binutils-gdb-83f66e8f3b8f3b6b31e243cc6308f2ffada1e4d4.tar.gz |
* config/sim.exp (gdb_load): Handle $arg == "".
* lib/gdb.exp (gdb_run_cmd): Honor gdb,do_reload_on_run.
* gdb.objc/basicclass.exp: Use gdb_run_cmd.
Diffstat (limited to 'gdb/testsuite/gdb.objc')
-rw-r--r-- | gdb/testsuite/gdb.objc/basicclass.exp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.objc/basicclass.exp b/gdb/testsuite/gdb.objc/basicclass.exp index 39cf296042a..41ab2848c98 100644 --- a/gdb/testsuite/gdb.objc/basicclass.exp +++ b/gdb/testsuite/gdb.objc/basicclass.exp @@ -1,4 +1,4 @@ -# Copyright 2003 Free Software Foundation, Inc. +# Copyright 2003, 2004 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -125,13 +125,9 @@ gdb_test continue \ # # Test resetting breakpoints when re-running program # -send_gdb "run\n" +gdb_run_cmd gdb_expect { - -re "The program .* has been started already.*y or n. $" { - send_gdb "y\n" - exp_continue - } - -re "Starting program.*Breakpoint \[0-9\]+,.*main .*argc.*argv.* at .*$srcfile:.*$gdb_prompt $"\ + -re "Breakpoint \[0-9\]+,.*main .*argc.*argv.* at .*$srcfile:.*$gdb_prompt $"\ { pass "resetting breakpoints when rerunning" } -re ".*$gdb_prompt $" { fail "resetting breakpoints when rerunning" } timeout { fail "resetting breakpoints when rerunning" } |