aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2008-06-06 00:33:52 +0000
committerNick Roberts <nickrob@snap.net.nz>2008-06-06 00:33:52 +0000
commitb8fa951a9b0f00619f42a28a044d8e334ff646f8 (patch)
treecd07a26ddd03a0be6e5cdf1ded95a185aa9e46c5
parent3d6d0b9dd543449006474e42213089d88ee671c8 (diff)
downloadgdb-b8fa951a9b0f00619f42a28a044d8e334ff646f8.zip
gdb-b8fa951a9b0f00619f42a28a044d8e334ff646f8.tar.gz
gdb-b8fa951a9b0f00619f42a28a044d8e334ff646f8.tar.bz2
* annotate.c (annotate_thread_changed): New function.
* thread.c (thread_command) : Use it. * infrun.c (normal_stop): Use it.
-rw-r--r--gdb/annotate.c9
-rw-r--r--gdb/infrun.c1
-rw-r--r--gdb/thread.c1
3 files changed, 11 insertions, 0 deletions
diff --git a/gdb/annotate.c b/gdb/annotate.c
index ee9adfa..98a37ae 100644
--- a/gdb/annotate.c
+++ b/gdb/annotate.c
@@ -243,6 +243,15 @@ annotate_new_thread (void)
}
void
+annotate_thread_changed (void)
+{
+ if (annotation_level > 1)
+ {
+ printf_unfiltered (("\n\032\032thread-changed\n"));
+ }
+}
+
+void
annotate_field_begin (struct type *type)
{
if (annotation_level == 2)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index a1bb287..2960acb 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3605,6 +3605,7 @@ normal_stop (void)
target_terminal_ours_for_output ();
printf_filtered (_("[Switching to %s]\n"),
target_pid_to_str (inferior_ptid));
+ annotate_thread_changed ();
previous_inferior_ptid = inferior_ptid;
}
diff --git a/gdb/thread.c b/gdb/thread.c
index 773ba5c..446a55e 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -738,6 +738,7 @@ thread_command (char *tidstr, int from_tty)
return;
}
+ annotate_thread_changed ();
gdb_thread_select (uiout, tidstr, NULL);
}