* linux-low.c (linux_detach): Change return type to int. Return 0.
authorPedro Alves <palves@redhat.com>
Thu, 10 May 2007 21:33:31 +0000 (21:33 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 10 May 2007 21:33:31 +0000 (21:33 +0000)
* spu-low.c (spu_detach): Likewise.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c
gdb/gdbserver/spu-low.c

index 8cf4496..43bf8e9 100644 (file)
@@ -1,5 +1,10 @@
 2007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
 
+       * linux-low.c (linux_detach): Change return type to int.  Return 0.
+       * spu-low.c (spu_detach): Likewise.
+
+2007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
+
        * target.h (target_ops): Change return type of detach to int.
        Add join.
        (join_inferior): New.
index 2ea54c3..f144f90 100644 (file)
@@ -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
index 5dbc811..22ff74a 100644 (file)
@@ -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