aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infrun.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0fb0d36..058fd0f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
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));