diff options
author | Ali Anwar <alianwar@sourceware.org> | 2013-07-15 11:14:32 +0000 |
---|---|---|
committer | Ali Anwar <alianwar@sourceware.org> | 2013-07-15 11:14:32 +0000 |
commit | 054e8d9e20cf24e4b4fea6f46f289cf0475746ea (patch) | |
tree | 1e1a9d8446bce951917614273abcc56293b9e726 /gdb/testsuite/gdb.threads/threadapply.exp | |
parent | 2f1bafe9f6c9bee1bbf3f822f703a75a11eda74e (diff) | |
download | gdb-054e8d9e20cf24e4b4fea6f46f289cf0475746ea.zip gdb-054e8d9e20cf24e4b4fea6f46f289cf0475746ea.tar.gz gdb-054e8d9e20cf24e4b4fea6f46f289cf0475746ea.tar.bz2 |
2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
PR threads/13217
* thread.c (thread_apply_all_command): Check for valid threads
and thread count.
(thread_array_cleanup): New struct.
(set_thread_refcount): New function.
Diffstat (limited to 'gdb/testsuite/gdb.threads/threadapply.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/threadapply.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.threads/threadapply.exp b/gdb/testsuite/gdb.threads/threadapply.exp index 4242904..5e05898 100644 --- a/gdb/testsuite/gdb.threads/threadapply.exp +++ b/gdb/testsuite/gdb.threads/threadapply.exp @@ -63,3 +63,4 @@ gdb_test "step" "thread_function.*" "step to the thread_function" gdb_test "up" ".*in main.*" "go up in the stack frame" gdb_test "thread apply all print 1" "Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1" "run a simple print command on all threads" gdb_test "down" "#0.*thread_function.*" "go down and check selected frame" +gdb_test "thread apply all detach" "Thread .*" |