projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5e38e5
)
* thread.c (thread_apply_command): Move making the cleanup out of
author
Pedro Alves
<palves@redhat.com>
Fri, 11 Jul 2008 11:26:39 +0000
(11:26 +0000)
committer
Pedro Alves
<palves@redhat.com>
Fri, 11 Jul 2008 11:26:39 +0000
(11:26 +0000)
the loop.
gdb/ChangeLog
patch
|
blob
|
history
gdb/thread.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 4c5de4987fdf6279658b31cff57cdf3869f491af..7c9c3edec1c1ffb0f5aef25ee089dd2f4481c8f8 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,8
@@
+2008-07-11 Pedro Alves <pedro@codesourcery.com>
+
+ * thread.c (thread_apply_command): Move making the cleanup out of
+ the loop.
+
2008-07-11 Pedro Alves <pedro@codesourcery.com>
Exited threads.
diff --git
a/gdb/thread.c
b/gdb/thread.c
index c3a63fccd2dba05906031c3246609e058e65f6e6..8a17147626ff7b16a88df0618d4a42ada4de0921 100644
(file)
--- a/
gdb/thread.c
+++ b/
gdb/thread.c
@@
-1102,6
+1102,8
@@
thread_apply_command (char *tidlist, int from_tty)
else
end = start;
+ make_cleanup_restore_current_thread ();
+
for (; start <= end; start++)
{
tp = find_thread_id (start);
@@
-1112,8
+1114,6
@@
thread_apply_command (char *tidlist, int from_tty)
warning (_("Thread %d has terminated."), start);
else
{
- make_cleanup_restore_current_thread ();
-
if (non_stop)
context_switch_to (tp->ptid);
else