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:
Pedro Alves
2010-02-24 20:49:50 +00:00
parent fc1cf338c4
commit 24291992da
4 changed files with 98 additions and 1 deletions

View File

@@ -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)