Android GDB for Native Code

cancel
Showing results for 
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)
Version history
Revision #:
1 of 1
Last update:
‎11-01-2012 06:05 PM
Updated by: