From: Yao Qi Date: Thu, 22 Sep 2011 02:58:31 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b51d87b481e468cbf98a35428d5462cd8fd02dc;p=binutils-gdb.git gdb/ * infrun.c (context_switch): Print debug message when switching to a different thread. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0fb0d3607c8..058fd0f48cc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-09-22 Yao Qi + + * infrun.c (context_switch): Print debug message when switching to + a different thread. + 2011-09-21 Ulrich Weigand * s390-tdep.c (s390_function_arg_pass_by_reference): Handle 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));