Reputation: 438
I want to build aosp native test and debug it on emulator. Is it possible to build executable with debugging symbols? I have tried to add -g and -ggdb to Android .bp:
cflags: [
"-Werror",
"-Wall",
"-g",
],
but it didn't help, I still getting stripped executable.
Upvotes: 3
Views: 2092
Reputation: 2036
You can find the unstripped binaries in $ANDROID_PRODUCT_OUT/symbols
.
Upvotes: 2
Reputation: 4620
In the module declaration, add:
strip: {
keep_symbols: true,
},
Reference: link.
Upvotes: 5