From 4b51d87b481e468cbf98a35428d5462cd8fd02dc Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Thu, 22 Sep 2011 02:58:31 +0000 Subject: gdb/ * infrun.c (context_switch): Print debug message when switching to a different thread. --- gdb/infrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 9a2de5ca6a7..225034c8978 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2852,7 +2852,7 @@ nullify_last_target_wait_ptid (void) static void context_switch (ptid_t ptid) { - if (debug_infrun) + if (debug_infrun && !ptid_equal (ptid, inferior_ptid)) { fprintf_unfiltered (gdb_stdlog, "infrun: Switching context from %s ", target_pid_to_str (inferior_ptid)); -- cgit v1.2.1