diff options
author | Pedro Alves <palves@redhat.com> | 2011-12-14 17:33:24 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-12-14 17:33:24 +0000 |
commit | 82bfbe7eff6859cd393e8c79f14e9ff1540b082e (patch) | |
tree | aca60cd63d2ebb4ee244553f51c16884293c28e2 /gdb | |
parent | 7b50312ad68f7c3acac2b318f6ff96956ad381ea (diff) | |
download | gdb-82bfbe7eff6859cd393e8c79f14e9ff1540b082e.zip gdb-82bfbe7eff6859cd393e8c79f14e9ff1540b082e.tar.gz gdb-82bfbe7eff6859cd393e8c79f14e9ff1540b082e.tar.bz2 |
2011-12-14 Pedro Alves <pedro@codesourcery.com>
* linux-low.c (linux_detach_one_lwp): Call
the_low_target.prepare_to_resume before detaching.
Diffstat (limited to 'gdb')
-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); |