From 82bfbe7eff6859cd393e8c79f14e9ff1540b082e Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 14 Dec 2011 17:33:24 +0000 Subject: [PATCH] 2011-12-14 Pedro Alves * linux-low.c (linux_detach_one_lwp): Call the_low_target.prepare_to_resume before detaching. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-low.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index d2951605da6..c7ceba3839b 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2011-12-14 Pedro Alves + + * linux-low.c (linux_detach_one_lwp): Call + the_low_target.prepare_to_resume before detaching. + 2011-12-14 Yao Qi * 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 8afbc8b9cfa..43d88fa01e2 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); -- 2.30.2