diff options
author | Mark Kettenis <kettenis@gnu.org> | 2001-10-14 11:50:39 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2001-10-14 11:50:39 +0000 |
commit | f821df057dc0833ed49b1b5a0f5a521e92057f60 (patch) | |
tree | ffc6108f4ab7782dc378708ea17a0a9721a3d80f /gdb | |
parent | fd69e0928c183d29584a45d94a6d3b4fe1e994b5 (diff) | |
download | gdb-f821df057dc0833ed49b1b5a0f5a521e92057f60.tar.gz |
* proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/proc-service.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 <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 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. */ |