Minor ptid_t changes for the upcoming phase 3 ptid patch.
authorKevin Buettner <kevinb@redhat.com>
Thu, 10 May 2001 01:07:39 +0000 (01:07 +0000)
committerKevin Buettner <kevinb@redhat.com>
Thu, 10 May 2001 01:07:39 +0000 (01:07 +0000)
gdb/ChangeLog
gdb/lin-lwp.c

index 2f57191f587e0c10b061d4d80bdc2f111a15b850..393663caeedd670da48cf30c9a72c270dd961818 100644 (file)
@@ -1,3 +1,10 @@
+2001-05-09  Kevin Buettner  <kevinb@redhat.com>
+
+       * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
+       component from inferior_ptid.
+       (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
+       ptid.
+
 2001-05-09  Elena Zannoni  <ezannoni@redhat.com>
 
        * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
index 9525ac651ae16631d695f61a971754c7d488bbb7..df62901a99e2cc81416f8a8ff747bd6141c5a78a 100644 (file)
@@ -348,7 +348,7 @@ lin_lwp_attach (char *args, int from_tty)
   child_ops.to_attach (args, from_tty);
 
   /* Add the initial process as the first LWP to the list.  */
-  lp = add_lwp (BUILD_LWP (inferior_ptid, inferior_ptid));
+  lp = add_lwp (BUILD_LWP (PIDGET (inferior_ptid), PIDGET (inferior_ptid)));
 
   /* Make sure the initial process is stopped.  The user-level threads
      layer might want to poke around in the inferior, and that won't
@@ -414,7 +414,7 @@ lin_lwp_detach (char *args, int from_tty)
   sigprocmask (SIG_SETMASK, &normal_mask, NULL);
   sigemptyset (&blocked_mask);
 
-  inferior_ptid = GET_PID (inferior_ptid);
+  inferior_ptid = pid_to_ptid (GET_PID (inferior_ptid));
   child_ops.to_detach (args, from_tty);
 }
 \f