From: Pedro Alves Date: Mon, 24 Oct 2011 14:09:20 +0000 (+0000) Subject: 2011-10-24 Pedro Alves X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7aee8dc2c2f77d891361f64347ffb60b6f1ddf59;p=binutils-gdb.git 2011-10-24 Pedro Alves 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3a10983b6c0..6f9974e0300 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2011-10-24 Pedro Alves + + * 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 * infrun.c (handle_inferior_event): Add debug output for diff --git a/gdb/infrun.c b/gdb/infrun.c index da0b82009a3..ac2b5aed761 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) {