summaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2006-03-10 20:15:42 +0000
committerMichael Snyder <msnyder@specifix.com>2006-03-10 20:15:42 +0000
commit282aeecb756c9a11ecb053629aa3d0f179f48b3a (patch)
treecf2f07523c54c34f227e25aaefc3e00230aa003a /gdb/linux-nat.c
parent5888ffe3776e8ee0417dd007d40279feb4952021 (diff)
downloadgdb-282aeecb756c9a11ecb053629aa3d0f179f48b3a.tar.gz
2006-03-09 Michael Snyder <msnyder@redhat.com>
* 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.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 0710ac718ac..2ba5d7d1647 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