aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-02-24 20:49:50 +0000
committerPedro Alves <palves@redhat.com>2010-02-24 20:49:50 +0000
commit24291992dac3f63bef7ee031d4d5f2f96920e070 (patch)
tree31ecffb25c822e47a6607a984cdcee46ff3b91fa /gdb/target.c
parentfc1cf338c43f4f84624cd0f9026e1be8561b2c42 (diff)
downloadgdb-24291992dac3f63bef7ee031d4d5f2f96920e070.zip
gdb-24291992dac3f63bef7ee031d4d5f2f96920e070.tar.gz
gdb-24291992dac3f63bef7ee031d4d5f2f96920e070.tar.bz2
PR gdb/11321
* inferior.h (prepare_for_detach): Declare. (struct inferior) <detaching>: New field. * infrun.c (prepare_for_detach): New. (handle_inferior_event) <random signal>: Don't stop if detaching. * target.c (target_detach): Call prepare_for_detach.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/target.c b/gdb/target.c
index e6659c9..1f90171 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -2077,6 +2077,8 @@ target_detach (char *args, int from_tty)
them before detaching. */
remove_breakpoints_pid (PIDGET (inferior_ptid));
+ prepare_for_detach ();
+
for (t = current_target.beneath; t != NULL; t = t->beneath)
{
if (t->to_detach != NULL)