* annotate.c (annotate_thread_changed): New function.
* thread.c (thread_command) : Use it. * infrun.c (normal_stop): Use it.
This commit is contained in:
parent
3d6d0b9dd5
commit
b8fa951a9b
3 changed files with 11 additions and 0 deletions
|
@ -242,6 +242,15 @@ annotate_new_thread (void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
annotate_thread_changed (void)
|
||||||
|
{
|
||||||
|
if (annotation_level > 1)
|
||||||
|
{
|
||||||
|
printf_unfiltered (("\n\032\032thread-changed\n"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
annotate_field_begin (struct type *type)
|
annotate_field_begin (struct type *type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3605,6 +3605,7 @@ normal_stop (void)
|
||||||
target_terminal_ours_for_output ();
|
target_terminal_ours_for_output ();
|
||||||
printf_filtered (_("[Switching to %s]\n"),
|
printf_filtered (_("[Switching to %s]\n"),
|
||||||
target_pid_to_str (inferior_ptid));
|
target_pid_to_str (inferior_ptid));
|
||||||
|
annotate_thread_changed ();
|
||||||
previous_inferior_ptid = inferior_ptid;
|
previous_inferior_ptid = inferior_ptid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -738,6 +738,7 @@ thread_command (char *tidstr, int from_tty)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
annotate_thread_changed ();
|
||||||
gdb_thread_select (uiout, tidstr, NULL);
|
gdb_thread_select (uiout, tidstr, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue