(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.
This commit is contained in:
parent
8405c36e89
commit
db5a74845b
@ -1045,7 +1045,6 @@ thread_command (char *tidstr, int from_tty)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
annotate_thread_changed ();
|
|
||||||
gdb_thread_select (uiout, tidstr, NULL);
|
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);
|
switch_to_thread (tp->ptid);
|
||||||
|
|
||||||
|
annotate_thread_changed ();
|
||||||
|
|
||||||
ui_out_text (uiout, "[Switching to thread ");
|
ui_out_text (uiout, "[Switching to thread ");
|
||||||
ui_out_field_int (uiout, "new-thread-id", pid_to_thread_id (inferior_ptid));
|
ui_out_field_int (uiout, "new-thread-id", pid_to_thread_id (inferior_ptid));
|
||||||
ui_out_text (uiout, " (");
|
ui_out_text (uiout, " (");
|
||||||
|
Loading…
Reference in New Issue
Block a user