2011-12-14 Pedro Alves <pedro@codesourcery.com>

* linux-low.c (linux_detach_one_lwp): Call
	the_low_target.prepare_to_resume before detaching.
This commit is contained in:
Pedro Alves 2011-12-14 17:33:24 +00:00
parent 7b50312ad6
commit 82bfbe7eff
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-12-14 Pedro Alves <pedro@codesourcery.com>
* linux-low.c (linux_detach_one_lwp): Call
the_low_target.prepare_to_resume before detaching.
2011-12-14 Yao Qi <yao@codesourcery.com>
* tracepoint.c (gdb_ust_thread): Don't ignore return value

View File

@ -918,6 +918,8 @@ linux_detach_one_lwp (struct inferior_list_entry *entry, void *args)
get_lwp_thread (lwp));
/* Finally, let it resume. */
if (the_low_target.prepare_to_resume != NULL)
the_low_target.prepare_to_resume (lwp);
ptrace (PTRACE_DETACH, lwpid_of (lwp), 0, 0);
delete_lwp (lwp);