forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user