diff --git a/lib/libthread_db/Makefile b/lib/libthread_db/Makefile index 53f5500adc2b..f74e49d11010 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 diff --git a/lib/libthread_db/Symbol.map b/lib/libthread_db/Symbol.map new file mode 100644 index 000000000000..9a3af90f36d0 --- /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; +};