* infrun.c (context_switch): Print debug message when switching to
	a different thread.
This commit is contained in:
Yao Qi 2011-09-22 02:58:31 +00:00
parent 4bafe00ecf
commit 4b51d87b48
2 changed files with 6 additions and 1 deletions

View 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));