Android GDB for Native Code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Android GDB for Native Code

Android GDB for Native Code

To use Android GDB for native code, take mediaserver as an example.

Setup on board.

  • adb push prebuilt/android-arm/gdbserver/gdbserver system/bin/
  • adb shell ps
  • adb shell /system/bin/gdbserver :5039 --attach <PID> &


Setup on host.

  • source build/env.sh
  • adb forward tcp:5039 tcp:5039
  • gdbclient mediaserver
  • b createPlayer
  • c

Labels (1)
Tags (2)
No ratings
Version history
Last update:
‎11-01-2012 06:05 PM
Updated by: