aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-10-24 14:09:20 +0000
committerPedro Alves <palves@redhat.com>2011-10-24 14:09:20 +0000
commit7aee8dc2c2f77d891361f64347ffb60b6f1ddf59 (patch)
treeafe4a6002a4fd86379eb8fdf824d8642c954080a
parent8b828383a89ad95640e30190b55ad63a3a7ec9b2 (diff)
downloadgdb-7aee8dc2c2f77d891361f64347ffb60b6f1ddf59.zip
gdb-7aee8dc2c2f77d891361f64347ffb60b6f1ddf59.tar.gz
gdb-7aee8dc2c2f77d891361f64347ffb60b6f1ddf59.tar.bz2
2011-10-24 Pedro Alves <pedro@codesourcery.com>
gdb/ * infrun.c (handle_inferior_event): Don't assume inferior_ptid is already set when marking the event thread as not executing in non-stop mode.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/infrun.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3a10983..6f9974e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2011-10-24 Pedro Alves <pedro@codesourcery.com>
+ * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
+ already set when marking the event thread as not executing in
+ non-stop mode.
+
+2011-10-24 Pedro Alves <pedro@codesourcery.com>
+
* infrun.c (handle_inferior_event): Add debug output for
TARGET_WAITKIND_NO_HISTORY.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index da0b820..ac2b5ae 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3239,7 +3239,7 @@ handle_inferior_event (struct execution_control_state *ecs)
set_executing (minus_one_ptid, 0);
else if (ecs->ws.kind != TARGET_WAITKIND_SIGNALLED
&& ecs->ws.kind != TARGET_WAITKIND_EXITED)
- set_executing (inferior_ptid, 0);
+ set_executing (ecs->ptid, 0);
switch (infwait_state)
{