This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Minor ptid_t related changes for lin-lwp.c
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] Minor ptid_t related changes for lin-lwp.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Wed, 9 May 2001 18:12:40 -0700
I've just committed the following changes to lin-lwp.c. These changes
are necessary to build with the the upcoming (phase 3) ptid_t patch.
* 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.
Index: lin-lwp.c
===================================================================
RCS file: /cvs/src/src/gdb/lin-lwp.c,v
retrieving revision 1.16
diff -u -p -r1.16 lin-lwp.c
--- lin-lwp.c 2001/05/06 22:22:03 1.16
+++ lin-lwp.c 2001/05/10 01:02:18
@@ -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);
}