aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-10-14 11:50:39 +0000
committerMark Kettenis <kettenis@gnu.org>2001-10-14 11:50:39 +0000
commitc987d8c09dafb9cb2c1b37c3aface3494c2e1717 (patch)
tree4033ac6929ccd459fd19e6229f2fa7c8d56641c7
parentcacab7c47722fd1c63c95d4c4a5b761ba6823632 (diff)
downloadgdb-c987d8c09dafb9cb2c1b37c3aface3494c2e1717.zip
gdb-c987d8c09dafb9cb2c1b37c3aface3494c2e1717.tar.gz
gdb-c987d8c09dafb9cb2c1b37c3aface3494c2e1717.tar.bz2
* proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/proc-service.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6cefdb2..14703f5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
2001-10-14 Mark Kettenis <kettenis@gnu.org>
+ * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
+
Fix attaching to cloned processes. This fixes PR gdb/61.
* lin-lwp.c (struct lwp_info): Add new member `cloned'.
(is_cloned) Removed.
diff --git a/gdb/proc-service.c b/gdb/proc-service.c
index c13929c..8d63e98 100644
--- a/gdb/proc-service.c
+++ b/gdb/proc-service.c
@@ -51,7 +51,7 @@ typedef size_t gdb_ps_size_t;
/* Building process ids. */
-#define BUILD_LWP(tid, pid) MERGEPID (pid, tid)
+#define BUILD_LWP(lwp, pid) ptid_build (pid, lwp, 0)
/* Helper functions. */