* proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
authorMark Kettenis <kettenis@gnu.org>
Sun, 14 Oct 2001 11:50:39 +0000 (11:50 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 14 Oct 2001 11:50:39 +0000 (11:50 +0000)
gdb/ChangeLog
gdb/proc-service.c

index 6cefdb22e791157fbc8de2a4a22334df4cd0102f..14703f51be35a13964f7ebd2ab6bd4bd44726af7 100644 (file)
@@ -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.
index c13929cc4231d92cacc51901d1d475a90d63e355..8d63e98219606ea77d7dfb843a3219dbe2850f8e 100644 (file)
@@ -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)
 \f
 
 /* Helper functions.  */