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:
8405c36
)
(thread_command): Move call to annotate_thread_changed
author
Nick Roberts
<nickrob@snap.net.nz>
Sat, 17 Jan 2009 20:39:52 +0000
(20:39 +0000)
committer
Nick Roberts
<nickrob@snap.net.nz>
Sat, 17 Jan 2009 20:39:52 +0000
(20:39 +0000)
to...
(do_captured_thread_select): ... here, to avoid printing an
annotation if the thread change generates an exception.
gdb/thread.c
patch
|
blob
|
history
diff --git
a/gdb/thread.c
b/gdb/thread.c
index 19aa27f3d21ba995cd28d0a89df0db120b23cc34..44e4ba2dc496d09cc9cda9ca9c0b28bca8a93b07 100644
(file)
--- a/
gdb/thread.c
+++ b/
gdb/thread.c
@@
-1045,7
+1045,6
@@
thread_command (char *tidstr, int from_tty)
return;
}
- annotate_thread_changed ();
gdb_thread_select (uiout, tidstr, NULL);
}
@@
-1078,6
+1077,8
@@
do_captured_thread_select (struct ui_out *uiout, void *tidstr)
switch_to_thread (tp->ptid);
+ annotate_thread_changed ();
+
ui_out_text (uiout, "[Switching to thread ");
ui_out_field_int (uiout, "new-thread-id", pid_to_thread_id (inferior_ptid));
ui_out_text (uiout, " (");