aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2011-09-22 02:58:31 +0000
committerYao Qi <yao@codesourcery.com>2011-09-22 02:58:31 +0000
commit4b51d87b481e468cbf98a35428d5462cd8fd02dc (patch)
tree2f68d94c44c65207770e294ba5d79502deb40710 /gdb/infrun.c
parent4bafe00ecf3e7b63d3b2b23f5406637261c6b391 (diff)
downloadgdb-4b51d87b481e468cbf98a35428d5462cd8fd02dc.zip
gdb-4b51d87b481e468cbf98a35428d5462cd8fd02dc.tar.gz
gdb-4b51d87b481e468cbf98a35428d5462cd8fd02dc.tar.bz2
gdb/
* infrun.c (context_switch): Print debug message when switching to a different thread.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 9a2de5c..225034c 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));