From c987d8c09dafb9cb2c1b37c3aface3494c2e1717 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 14 Oct 2001 11:50:39 +0000 Subject: [PATCH] * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build. --- gdb/ChangeLog | 2 ++ gdb/proc-service.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6cefdb22e79..14703f51be3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2001-10-14 Mark Kettenis + * 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 c13929cc423..8d63e982196 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. */ -- 2.30.2