From dd6953e1f3ca7a60bbb1631d7b1821ebeefcccee Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 10 May 2007 21:33:31 +0000 Subject: [PATCH] * linux-low.c (linux_detach): Change return type to int. Return 0. * spu-low.c (spu_detach): Likewise. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-low.c | 3 ++- gdb/gdbserver/spu-low.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 8cf4496924d..43bf8e9b282 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2007-05-10 Pedro Alves + + * linux-low.c (linux_detach): Change return type to int. Return 0. + * spu-low.c (spu_detach): Likewise. + 2007-05-10 Pedro Alves * target.h (target_ops): Change return type of detach to int. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 2ea54c35436..f144f906b43 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -287,10 +287,11 @@ linux_detach_one_process (struct inferior_list_entry *entry) ptrace (PTRACE_DETACH, pid_of (process), 0, 0); } -static void +static int linux_detach (void) { for_each_inferior (&all_threads, linux_detach_one_process); + return 0; } static void diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c index 5dbc8116660..22ff74a50e7 100644 --- a/gdb/gdbserver/spu-low.c +++ b/gdb/gdbserver/spu-low.c @@ -314,10 +314,11 @@ spu_kill (void) } /* Detach from inferior process. */ -static void +static int spu_detach (void) { ptrace (PTRACE_DETACH, current_tid, 0, 0); + return 0; } static void -- 2.30.2