How can I keep Android from killing processes during GDB debugging?

144 views
Skip to first unread message

Sean Hicks

unread,
Jan 28, 2016, 5:25:00 PM1/28/16
to android-platform
Hi all,

I'm trying to learn more about ART and system processes. I'd like to be able to use gdbserver / gdbclient to watch the program flow. Currently, I am building a debug build of Lollipop and running it in the emulator. While I can attach using gdbclient and see the code, eventually the process that I am attached to is killed. If this is the ART runtime, this is especially problematic as it can bring down the system.

Is there any way that I can prevent this from happening? I'm happy to modify code, etc, as needed, since I have full-control over the AOSP build.

Thanks for your time!

Nikola Veljkovic

unread,
Jan 29, 2016, 3:48:48 PM1/29/16
to android-platform
Until you get a more complete answer, this should help:

$ adb shell setprop debug.db.uid 32767

After that, re-execute the app, and logcat should tell you how to connect with gdbclient.
Reply all
Reply to author
Forward
0 new messages