diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-09-18 15:34:10 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-09-18 15:34:10 +0000 |
commit | 11350d2a6f73a4a510fa335553e1363857f8b84f (patch) | |
tree | a74216547c66fb4d2a3e1c81c2102d26655211c6 /gdb/testsuite/lib | |
parent | 05a487dc8c398898e46d2ba52cc3e05f3f25b965 (diff) | |
download | gdb-11350d2a6f73a4a510fa335553e1363857f8b84f.zip gdb-11350d2a6f73a4a510fa335553e1363857f8b84f.tar.gz gdb-11350d2a6f73a4a510fa335553e1363857f8b84f.tar.bz2 |
* lib/gdb.exp (rerun_to_main): Allow restarting application.
* gdb.base/ena-dis-br.exp (rerun_to_main): Eliminate.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 7e4a5b1..aae7365 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1685,6 +1685,10 @@ proc rerun_to_main {} { } else { send_gdb "run\n" gdb_expect { + -re "The program .* has been started already.*y or n. $" { + send_gdb "y\n" + exp_continue + } -re "Starting program.*$gdb_prompt $"\ {pass "rerun to main" ; return 0} -re "$gdb_prompt $"\ |