diff options
author | Pedro Alves <pedro@codesourcery.com> | 2011-10-24 14:25:51 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2011-10-24 14:25:51 +0000 |
commit | e1d181dedcda94c0480355cc455a7598b9503894 (patch) | |
tree | 47c8d5efc7e6cd8016c4d8c94b750eed38dc3294 /gdb/linux-nat.c | |
parent | ba97e772473d76c9058f56b0b33cebe914c07ea8 (diff) | |
download | gdb-e1d181dedcda94c0480355cc455a7598b9503894.tar.gz |
2011-10-24 Pedro Alves <pedro@codesourcery.com>
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.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index f8a15c91213..4595c06c1f1 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -2289,6 +2289,9 @@ linux_handle_extended_wait (struct lwp_info *lp, int status, { 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; } } @@ -2316,6 +2319,7 @@ linux_handle_extended_wait (struct lwp_info *lp, int status, 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", |