diff options
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index d295160..c7ceba3 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -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 diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 8afbc8b..43d88fa 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -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); |