fix issues with gdb 8.0
commit111f01d432d542a153c1cad83def3a6ab57df7af
authorWaldemar Brodkorb <wbx@uclibc-ng.org>
Sat, 5 Aug 2017 09:28:07 +0000 (5 11:28 +0200)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Sat, 5 Aug 2017 09:28:07 +0000 (5 11:28 +0200)
tree4a399dbbf5b6a612cb21d659e3db0fcba590afc7
parentae3eeb273fb8c1f069bebe173ce2def1af3d8485
fix issues with gdb 8.0

GDB 8.0 is compiled and linked with g++, but the
linking of static targets (f.e. coldfire) fails,
without declaring the functions in thread_db.h
extern C.

The compilation of gdb errors out with:
thread-db.o: In function `thread_db_init()':
thread-db.c:(.text+0x5b6): undefined reference to `td_ta_new(ps_prochandle*, td_thragent**)'
thread-db.c:(.text+0x61e): undefined reference to `td_thr_get_info(td_thrhandle const*, td_thrinfo*)'
thread-db.c:(.text+0x632): undefined reference to `td_symbol_list()'
..
libpthread/linuxthreads_db/thread_db.h
libpthread/nptl_db/thread_db.h