gdb/
* linux-nat.c (linux_handle_extended_wait): When handling a clone
event, in non-stop, if not stopping, make sure the new lwp has
last_resume_kind set to resume_continue. Assert that when we're
resuming the new lwp, its last_resume_kind is resume_continue.
+2011-10-24 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-nat.c (linux_handle_extended_wait): When handling a clone
+ event, in non-stop, if not stopping, make sure the new lwp has
+ last_resume_kind set to resume_continue. Assert that when we're
+ resuming the new lwp, its last_resume_kind is resume_continue.
+
2011-10-24 Pedro Alves <pedro@codesourcery.com>
* infrun.c (handle_inferior_event): Don't assume inferior_ptid is
{
set_running (new_lp->ptid, 1);
set_executing (new_lp->ptid, 1);
+ /* thread_db_attach_lwp -> lin_lwp_attach_lwp forced
+ resume_stop. */
+ new_lp->last_resume_kind = resume_continue;
}
}
if (status == 0)
{
+ gdb_assert (new_lp->last_resume_kind == resume_continue);
if (debug_linux_nat)
fprintf_unfiltered (gdb_stdlog,
"LHEW: resuming new LWP %ld\n",