* linux-fork.c (delete_fork_command, detach_fork_command): Use
authorDaniel Jacobowitz <drow@false.org>
Sun, 15 Jan 2006 19:07:17 +0000 (19:07 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 15 Jan 2006 19:07:17 +0000 (19:07 +0000)
PIDGET.

gdb/ChangeLog
gdb/linux-fork.c

index 62efdc0b5a06c98d6bb4de40e382fa8cf2b5e4e2..18dc4fb02dbed21309aac3531e712aba7e27976f 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-15  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * linux-fork.c (delete_fork_command, detach_fork_command): Use
+       PIDGET.
+
 2006-01-15  Mark Kettenis  <kettenis@gnu.org>
 
        * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
index 46b0d904c092230d11e8858c8f115dc81e8a6c11..768c7da59574aa2ba90bb54be176a3c40dee00d6 100644 (file)
@@ -1,6 +1,6 @@
 /* GNU/Linux native-dependent code for debugging multiple forks.
 
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -379,7 +379,7 @@ delete_fork_command (char *args, int from_tty)
   if (ptid_equal (ptid, inferior_ptid))
     error (_("Please switch to another fork/checkpoint before deleting the current one"));
 
-  if (ptrace (PTRACE_KILL, ptid, 0, 0))
+  if (ptrace (PTRACE_KILL, PIDGET (ptid), 0, 0))
     error (_("Unable to kill pid %s"), target_tid_to_str (ptid));
 
   if (from_tty)
@@ -403,7 +403,7 @@ detach_fork_command (char *args, int from_tty)
   if (ptid_equal (ptid, inferior_ptid))
     error (_("Please switch to another fork before detaching the current one"));
 
-  if (ptrace (PTRACE_DETACH, ptid, 0, 0))
+  if (ptrace (PTRACE_DETACH, PIDGET (ptid), 0, 0))
     error (_("Unable to detach %s"), target_pid_to_str (ptid));
 
   if (from_tty)
This page took 0.028642 seconds and 4 git commands to generate.