summaryrefslogtreecommitdiffstats
path: root/lib/libthread_db/thread_db.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2004-08-08 22:37:53 +0000
committerdavidxu <davidxu@FreeBSD.org>2004-08-08 22:37:53 +0000
commitd29ded002bcddf2cd1977bb8d7ccb65487590ee8 (patch)
treeef2fbec2f4813f6b13a05ff5f301e393a7edfaf1 /lib/libthread_db/thread_db.c
parent634d20a05ea861318018f78b9103d3f57baf97f4 (diff)
downloadFreeBSD-src-d29ded002bcddf2cd1977bb8d7ccb65487590ee8.zip
FreeBSD-src-d29ded002bcddf2cd1977bb8d7ccb65487590ee8.tar.gz
1.Use new way to check if a thread is in critical region, defer suspending
if it is true. 2.Add thread_db api td_thr_tls_get_addr to get tls address, the real code is commented out util tls patch is committed. Reviewed by: deischen
Diffstat (limited to 'lib/libthread_db/thread_db.c')
-rw-r--r--lib/libthread_db/thread_db.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libthread_db/thread_db.c b/lib/libthread_db/thread_db.c
index e92d4ff..b1b1bcc 100644
--- a/lib/libthread_db/thread_db.c
+++ b/lib/libthread_db/thread_db.c
@@ -226,6 +226,14 @@ td_thr_validate(const td_thrhandle_t *th)
return (ta->ta_ops->to_thr_validate(th));
}
+td_err_e
+td_thr_tls_get_addr(const td_thrhandle_t *th, void *linkmap, size_t offset,
+ void **address)
+{
+ const td_thragent_t *ta = th->th_ta;
+ return (ta->ta_ops->to_thr_tls_get_addr(th, linkmap, offset, address));
+}
+
/* FreeBSD specific extensions. */
td_err_e
OpenPOWER on IntegriCloud