JuicyKitty
JuicyKitty

Reputation: 438

Create unstripped executable for android with .bp

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

Answers (2)

Simpl
Simpl

Reputation: 2036

You can find the unstripped binaries in $ANDROID_PRODUCT_OUT/symbols.

Upvotes: 2

In the module declaration, add:

            strip: {
                keep_symbols: true,
            },

Reference: link.

Upvotes: 5

Related Questions