aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/spu-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/spu-low.c
parent58f03a4028987eef6b222b41d49e1f5781510b7c (diff)
downloadgdb-505106cdc7c816a44bbfee11daf500f4e5e14072.zip
gdb-505106cdc7c816a44bbfee11daf500f4e5e14072.tar.gz
gdb-505106cdc7c816a44bbfee11daf500f4e5e14072.tar.bz2
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/spu-low.c')
-rw-r--r--gdb/gdbserver/spu-low.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c
index d171abc..d9ac815 100644
--- a/gdb/gdbserver/spu-low.c
+++ b/gdb/gdbserver/spu-low.c
@@ -355,6 +355,12 @@ spu_detach (int pid)
}
static void
+spu_mourn (struct process_info *process)
+{
+ remove_process (process);
+}
+
+static void
spu_join (int pid)
{
int status, ret;
@@ -606,7 +612,7 @@ static struct target_ops spu_target_ops = {
spu_attach,
spu_kill,
spu_detach,
- NULL, /* mourn */
+ spu_mourn,
spu_join,
spu_thread_alive,
spu_resume,