diff options
author | Pedro Alves <palves@redhat.com> | 2009-08-14 14:28:15 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-08-14 14:28:15 +0000 |
commit | b8fa0bfa752bb672c66a1d6fdefcdf4cb308a712 (patch) | |
tree | e0bb75b8b5543a6b672126496ccc8b85b483a18f /gdb/testsuite | |
parent | cc70f101e24176980f0cb5d88d25ee9128b6d0cd (diff) | |
download | gdb-b8fa0bfa752bb672c66a1d6fdefcdf4cb308a712.zip gdb-b8fa0bfa752bb672c66a1d6fdefcdf4cb308a712.tar.gz gdb-b8fa0bfa752bb672c66a1d6fdefcdf4cb308a712.tar.bz2 |
2009-08-14 Pedro Alves <pedro@codesourcery.com>
gdb/
* top.c (any_thread_of): Delete.
(kill_or_detach): Use any_thread_of_process.
* top.c (print_inferior_quit_action): New.
(quit_confirm): Rewrite to print info about all inferiors.
* target.c (dispose_inferior): New.
(target_preopen): Use it.
2009-08-14 Pedro Alves <pedro@codesourcery.com>
gdb/testsuite/
* gdb.threads/killed.exp, gdb.threads/manythreads.exp,
gdb.threads/staticthreads.exp: Adjust to "quit" output changes.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/killed.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/manythreads.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/staticthreads.exp | 2 |
4 files changed, 8 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0807d82..b56dfc4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-08-14 Pedro Alves <pedro@codesourcery.com> + + * gdb.threads/killed.exp, gdb.threads/manythreads.exp, + gdb.threads/staticthreads.exp: Adjust to "quit" output changes. + 2009-08-13 Pedro Alves <pedro@codesourcery.com> * gdb.base/default.exp: Adjust "set language test": it's now an diff --git a/gdb/testsuite/gdb.threads/killed.exp b/gdb/testsuite/gdb.threads/killed.exp index 23f096c..3752a48 100644 --- a/gdb/testsuite/gdb.threads/killed.exp +++ b/gdb/testsuite/gdb.threads/killed.exp @@ -87,7 +87,7 @@ gdb_expect { # Try to quit. send_gdb "quit\n" gdb_expect { - -re "The program is running. Quit anyway \\(and kill it\\)\\? \\(y or n\\) $" { + -re "Quit anyway\\? \\(y or n\\) $" { send_gdb "y\n" exp_continue } diff --git a/gdb/testsuite/gdb.threads/manythreads.exp b/gdb/testsuite/gdb.threads/manythreads.exp index 5ded2c2..27d0996 100644 --- a/gdb/testsuite/gdb.threads/manythreads.exp +++ b/gdb/testsuite/gdb.threads/manythreads.exp @@ -160,7 +160,7 @@ gdb_test_multiple "" "stop threads 2" { } gdb_test_multiple "quit" "GDB exits after stopping multithreaded program" { - -re "The program is running. Quit anyway \\(and kill it\\)\\? \\(y or n\\) $" { + -re "Quit anyway\\? \\(y or n\\) $" { send_gdb "y\n" exp_continue } diff --git a/gdb/testsuite/gdb.threads/staticthreads.exp b/gdb/testsuite/gdb.threads/staticthreads.exp index 08000fd..fccb2e9 100644 --- a/gdb/testsuite/gdb.threads/staticthreads.exp +++ b/gdb/testsuite/gdb.threads/staticthreads.exp @@ -91,7 +91,7 @@ gdb_test_multiple "info threads" "$test" { set test "GDB exits with static thread program" gdb_test_multiple "quit" "$test" { - -re "The program is running. Quit anyway \\(and kill it\\)\\? \\(y or n\\) $" { + -re "Quit anyway\\? \\(y or n\\) $" { send_gdb "y\n" exp_continue } |