Reputation: 2420
I would like to perform debug operations on the Android open source platform.
I am trying to run "gdbserver :5039 --attach" in my terminal but I keep receiving "command not found".
I have built the Android OS using the "full_crespo-userdebug" configuration, which according to the android docs, should provide me with root access on my Nexus S phone?
How can I set things up so that I can debug?
Upvotes: 0
Views: 4523
Reputation: 61
You can copy it from "$NDK_HOME/prebuild/$PLATFORM/gdbserver/gdbserver" then use adb to push it to device and make it executable
Upvotes: 2
Reputation: 26
To debug an android device you first need to run gdbserver on the device.
gdbserver :5039 --attach pid
then in your gingerbread source folder you need to run
source build/envsetup.sh
this will allow you to now run
gdbclient
which should connect to the gdbserver on device
Upvotes: 0