aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-05-10 01:07:39 +0000
committerKevin Buettner <kevinb@redhat.com>2001-05-10 01:07:39 +0000
commit01263b571ca572b96eaf1aa1026466ef6d4163ee (patch)
treec0d9be6dd0390a1ebb946d5cd2d378a6699b11a5 /gdb
parent1f23ade4f486e3af9251979eabc9e571a52650f2 (diff)
downloadgdb-01263b571ca572b96eaf1aa1026466ef6d4163ee.zip
gdb-01263b571ca572b96eaf1aa1026466ef6d4163ee.tar.gz
gdb-01263b571ca572b96eaf1aa1026466ef6d4163ee.tar.bz2
Minor ptid_t changes for the upcoming phase 3 ptid patch.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/lin-lwp.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2f57191..393663c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c
index 9525ac6..df62901 100644
--- a/gdb/lin-lwp.c
+++ b/gdb/lin-lwp.c
@@ -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);
}