gdb/
authorYao Qi <yao@codesourcery.com>
Thu, 22 Sep 2011 02:58:31 +0000 (02:58 +0000)
committerYao Qi <yao@codesourcery.com>
Thu, 22 Sep 2011 02:58:31 +0000 (02:58 +0000)
* infrun.c (context_switch): Print debug message when switching to
a different thread.

gdb/ChangeLog
gdb/infrun.c

index 0fb0d3607c889e48c4950b71f59afa3ad15e0e69..058fd0f48cc1fd8f3647554a9e55d59bb0386b86 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-22  Yao Qi  <yao@codesourcery.com>
+
+       * infrun.c (context_switch): Print debug message when switching to
+       a different thread.
+
 2011-09-21  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
index 9a2de5ca6a732d9595956bb321a7816b20bc040b..225034c89782bfd6bdb1cb2646207487e6094056 100644 (file)
@@ -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));