uclibc: allow thread_db to be built with C++
authorWaldemar Brodkorb <wbx@openadk.org>
Sat, 5 Aug 2017 10:49:00 +0000 (12:49 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Wed, 9 Aug 2017 21:07:41 +0000 (23:07 +0200)
commitc21fca53db7885ba05c6aca73350477ff15dcfd2
tree37217ed8845b7ab8fefbbb241ed5ed25d2e70922
parentc9f9b16a2f37caeeced47cb562b642ec0c166652
uclibc: allow thread_db to be built with C++

gdb 7.12+ is compiled and linked with C++, therefore the thread_db
headers need to use extern "C", to be usable for C++ code.

Fixes:
 Issue when building gdbserver for m68k-coldfire:

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()'
...

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Tested-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/uclibc/0001-fix-issues-with-gdb-8.0.patch [new file with mode: 0644]