Commit bc08e7b9 authored by Zhizhou Yang's avatar Zhizhou Yang
Browse files

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
parent 2a615abe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment