aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-08-14 14:28:15 +0000
committerPedro Alves <palves@redhat.com>2009-08-14 14:28:15 +0000
commitb8fa0bfa752bb672c66a1d6fdefcdf4cb308a712 (patch)
treee0bb75b8b5543a6b672126496ccc8b85b483a18f /gdb/testsuite/gdb.threads
parentcc70f101e24176980f0cb5d88d25ee9128b6d0cd (diff)
downloadgdb-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/gdb.threads')
-rw-r--r--gdb/testsuite/gdb.threads/killed.exp2
-rw-r--r--gdb/testsuite/gdb.threads/manythreads.exp2
-rw-r--r--gdb/testsuite/gdb.threads/staticthreads.exp2
3 files changed, 3 insertions, 3 deletions
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
}