diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2009-01-17 20:39:52 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2009-01-17 20:39:52 +0000 |
commit | db5a74845bd19e1ce54a746afac4f2a136fbfaef (patch) | |
tree | 6dea5a0ed5be118a250c73650cbc671cc65a0084 | |
parent | 8405c36e89506379e4218a6e7928599415f75c0f (diff) | |
download | gdb-db5a74845bd19e1ce54a746afac4f2a136fbfaef.zip gdb-db5a74845bd19e1ce54a746afac4f2a136fbfaef.tar.gz gdb-db5a74845bd19e1ce54a746afac4f2a136fbfaef.tar.bz2 |
(thread_command): Move call to annotate_thread_changed
to...
(do_captured_thread_select): ... here, to avoid printing an
annotation if the thread change generates an exception.
-rw-r--r-- | gdb/thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 19aa27f..44e4ba2 100644 --- 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, " ("); |