aboutsummaryrefslogtreecommitdiff
path: root/lib/libthread_db/libpthread_db.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2005-04-05 11:38:30 +0000
committerDavid Xu <davidxu@FreeBSD.org>2005-04-05 11:38:30 +0000
commit2ec2da86029c7c7d970dca17087e5cc4eef742a9 (patch)
treed98f4695681bd6c0f607df0fc7532b22f64d7a29 /lib/libthread_db/libpthread_db.c
parentc339c21b289c858ce8fac869f1ed4b935ed04d65 (diff)
Notes
Diffstat (limited to 'lib/libthread_db/libpthread_db.c')
-rw-r--r--lib/libthread_db/libpthread_db.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libthread_db/libpthread_db.c b/lib/libthread_db/libpthread_db.c
index 603f30ed1696..f3c6be54b966 100644
--- a/lib/libthread_db/libpthread_db.c
+++ b/lib/libthread_db/libpthread_db.c
@@ -293,6 +293,7 @@ pt_ta_map_id2thr(const td_thragent_t *ta, thread_t id, td_thrhandle_t *th)
}
th->th_ta = ta;
th->th_tid = id;
+ th->th_thread = pt;
return (TD_OK);
}
@@ -327,6 +328,7 @@ pt_ta_map_lwp2thr(const td_thragent_t *ta, lwpid_t lwp, td_thrhandle_t *th)
if (th->th_tid == -1)
return (TD_MALLOC);
pt_unmap_lwp(ta, lwp);
+ th->th_thread = pt;
return (TD_OK);
}
@@ -371,6 +373,7 @@ pt_ta_thr_iter(const td_thragent_t *ta,
while (pt != 0) {
th.th_ta = ta;
th.th_tid = pt_map_thread(ta, pt, PT_USER);
+ th.th_thread = pt;
/* should we unmap lwp here ? */
if (th.th_tid == -1)
return (TD_MALLOC);