Source level debugging of Android emulator

61 views
Skip to first unread message

Ye Roger

unread,
Mar 22, 2016, 5:29:16 AM3/22/16
to Android emulator development
I can build a debug version and do source level debugging of Android emulator now. The problem that I met is emulator launch qemu using the below call:
safe_execv(emulatorPath, argv). How can I continue the debugging after this? Can anybody help on this? I am using a Linux environment with gdb.

Regards,
Roger

David Turner

unread,
Mar 22, 2016, 5:40:17 AM3/22/16
to Ye Roger, Android emulator development
Just put a breakpoint by function name, and gdb will actually stop at it in the next process that is run after the execv() call.

The drawback is that you must be exact, because you won't have command-line completion for symbols.

Hope this helps,

- Digit

--
You received this message because you are subscribed to the Google Groups "Android emulator development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-emulator...@googlegroups.com.
To post to this group, send email to android-em...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-emulator-dev.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages