Android NDK r20 (build 5594570)
Make libthread-db.h file only be compiled with C

GDB 8.2 will use C++ to compile in Android, and it will cause the
problem that extern variables from libthread_db will be compiled into
C++ symbols and cause a linker error.

Fixed this by adding a macro to check whether we are using C++.

Bug: 123031421
Test: GDB 8.2 linked correctly.
Change-Id: I660147a4199e88f394ad0fbe365960f4691678d8
1 file changed
tree: ebf7088fe7dfd3a59c1eaf1998714fa3cad47d1d
  1. gdb-7.11/
  2. gdb-8.0.1/
  3. gdb-8.2/
  4. build-gdb.sh
  5. build.py