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.
* thread.c (enum thread_state): New.
else
end = start;
+ make_cleanup_restore_current_thread ();
+
for (; start <= end; start++)
{
tp = find_thread_id (start);
warning (_("Thread %d has terminated."), start);
else
{
- make_cleanup_restore_current_thread ();
-
if (non_stop)
context_switch_to (tp->ptid);
else