diff options
author | Michael Snyder <msnyder@vmware.com> | 2006-03-10 20:15:42 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2006-03-10 20:15:42 +0000 |
commit | 56aac7e845ae80033d534869791f105cc62ba77d (patch) | |
tree | 59fb6905fc455ffea0258d4f9c376bcebe0a5b70 /gdb/linux-nat.c | |
parent | 3a4a14e9ea1af8d2e5f0d54452be81ccc19c9a1a (diff) | |
download | fsf-binutils-gdb-56aac7e845ae80033d534869791f105cc62ba77d.zip fsf-binutils-gdb-56aac7e845ae80033d534869791f105cc62ba77d.tar.gz fsf-binutils-gdb-56aac7e845ae80033d534869791f105cc62ba77d.tar.bz2 |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 |