summaryrefslogtreecommitdiffstats
path: root/lib/libthread_db
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2006-03-29 14:08:45 +0000
committerdeischen <deischen@FreeBSD.org>2006-03-29 14:08:45 +0000
commitb19d325a18dac138ac1d6210abf09f4f6665b2a4 (patch)
treec018160a7df426bdb2006192982d8795505fe923 /lib/libthread_db
parentc3c1cc1abc42ab7ba68db730bd68705b2e481f22 (diff)
downloadFreeBSD-src-b19d325a18dac138ac1d6210abf09f4f6665b2a4.zip
FreeBSD-src-b19d325a18dac138ac1d6210abf09f4f6665b2a4.tar.gz
Add symbol versioning.
Reviewed by: davidxu
Diffstat (limited to 'lib/libthread_db')
-rw-r--r--lib/libthread_db/Makefile6
-rw-r--r--lib/libthread_db/Symbol.map31
2 files changed, 37 insertions, 0 deletions
diff --git a/lib/libthread_db/Makefile b/lib/libthread_db/Makefile
index 53f5500..f74e49d 100644
--- a/lib/libthread_db/Makefile
+++ b/lib/libthread_db/Makefile
@@ -12,5 +12,11 @@ INCS= thread_db.h
WARNS?= 1
CFLAGS+=-I. -I${.CURDIR}
+SYM_MAPS+=${.CURDIR}/Symbol.map
+
+.if defined(SYMVER_ENABLED)
+SYMBOL_MAPS=${SYM_MAPS}
+VERSION_DEF=${.CURDIR}/../libc/Versions.def
+.endif
.include <bsd.lib.mk>
diff --git a/lib/libthread_db/Symbol.map b/lib/libthread_db/Symbol.map
new file mode 100644
index 0000000..9a3af90
--- /dev/null
+++ b/lib/libthread_db/Symbol.map
@@ -0,0 +1,31 @@
+# $FreeBSD$
+
+FBSD_1.0 {
+ td_init;
+ td_ta_clear_event;
+ td_ta_delete;
+ td_ta_event_addr;
+ td_ta_event_getmsg;
+ td_ta_map_id2thr;
+ td_ta_map_lwp2thr;
+ td_ta_new;
+ td_ta_set_event;
+ td_ta_thr_iter;
+ td_ta_tsd_iter;
+ td_thr_clear_event;
+ td_thr_dbresume;
+ td_thr_dbsuspend;
+ td_thr_event_enable;
+ td_thr_event_getmsg;
+ td_thr_get_info;
+ td_thr_getfpregs;
+ td_thr_getgregs;
+ td_thr_getxmmregs; # x86 only
+ td_thr_set_event;
+ td_thr_setfpregs;
+ td_thr_setgregs;
+ td_thr_setxmmregs; # x86 only
+ td_thr_sstep; # FreeBSD extension to GDB<->thread interface
+ td_thr_tls_get_addr;
+ td_thr_validate;
+};
OpenPOWER on IntegriCloud