From 56aac7e845ae80033d534869791f105cc62ba77d Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Fri, 10 Mar 2006 20:15:42 +0000 Subject: 2006-03-09 Michael Snyder * linux-nat.c (kill_inferior): Just call target_mourn_inferior instead of getting tricky for the multi-fork case. * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid for each fork, and then use init_fork_list to delete them. --- gdb/linux-nat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/linux-nat.c') diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 0710ac7..2ba5d7d 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -616,8 +616,6 @@ kill_inferior (void) if (forks_exist_p ()) { linux_fork_killall (); - pop_target (); - generic_mourn_inferior (); } else { @@ -646,8 +644,8 @@ kill_inferior (void) ptrace (PT_KILL, pid, 0, 0); ret = wait (&status); } - target_mourn_inferior (); } + target_mourn_inferior (); } /* On GNU/Linux there are no real LWP's. The closest thing to LWP's -- cgit v1.1