+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
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
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