summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/nto-low.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-04-12 17:39:42 +0000
committerPedro Alves <palves@redhat.com>2010-04-12 17:39:42 +0000
commit505106cdc7c816a44bbfee11daf500f4e5e14072 (patch)
tree3d597594a2631f14b55ffe8e38f0b0125b785dd6 /gdb/gdbserver/nto-low.c
parent58f03a4028987eef6b222b41d49e1f5781510b7c (diff)
downloadbinutils-gdb-505106cdc7c816a44bbfee11daf500f4e5e14072.tar.gz
gdb/gdbserver/
* linux-low.c (linux_mourn): Also remove the process. * server.c (handle_target_event): Don't remove the process here. * nto-low.c (nto_mourn): New. (nto_target_ops): Install it. * spu-low.c (spu_mourn): New. (spu_target_ops): Install it. * win32-low.c (win32_mourn): New. (win32_target_ops): Install it.
Diffstat (limited to 'gdb/gdbserver/nto-low.c')
-rw-r--r--gdb/gdbserver/nto-low.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbserver/nto-low.c b/gdb/gdbserver/nto-low.c
index 854208291e9..17548a42e1f 100644
--- a/gdb/gdbserver/nto-low.c
+++ b/gdb/gdbserver/nto-low.c
@@ -406,6 +406,12 @@ nto_detach (int pid)
return 0;
}
+static void
+nto_mourn (struct process_info *process)
+{
+ remove_process (process);
+}
+
/* Check if the given thread is alive.
Return 1 if alive, 0 otherwise. */
@@ -900,7 +906,7 @@ static struct target_ops nto_target_ops = {
nto_attach,
nto_kill,
nto_detach,
- NULL, /* nto_mourn */
+ nto_mourn,
NULL, /* nto_join */
nto_thread_alive,
nto_resume,