Android GDB for Native Code

Document created by Bing Song Employee on Nov 1, 2012Last modified by Jodi Paul on Mar 12, 2013
Version 2Show Document
  • View in full screen mode

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

 

Attachments

    Outcomes