Mobile/Fennec/Android/GDB: Difference between revisions

(Update version to 7_4)
Line 106: Line 106:


==== Mac OS X ====
==== Mac OS X ====
NOTE: needed to have a --with-sysroot=/PATH/TO/NDK/platforms/android-9/arch-arm in the configure line and the PATH needs to be an absolute path to android-9-toolchain (from blassey)


Setup a toolchain environment for your build:
Setup a toolchain environment for your build, then run configure and make for gdbserver. The android-gdbserver-objdir directory can be anywhere, but creating it within the android-gdb git clone is convenient. The paths below do not necessarily need to be absolute paths, but it will make life easier.
/PATH/TO/NDK/build/tools/make-standalone-toolchain.sh --install-dir=android-9-toolchain --platform=android-9


Run configure and make for gdbserver:
  mkdir android-gdbserver-objdir
  mkdir android-gdbserver-objdir
  cd android-gdbserver-objdir
  cd android-gdbserver-objdir
/ABSOLUTE/PATH/TO/NDK/android-ndk-r5c/build/tools/make-standalone-toolchain.sh --install-dir=android-9-toolchain --platform=android-9
  export PATH=android-9-toolchain/bin:$PATH
  export PATH=android-9-toolchain/bin:$PATH
  ../android-gdb/gdb/gdbserver/configure --host=arm-linux-androideabi
  /ABSOLUTE/PATH/TO/GIT/CLONE/android-gdb/gdb/gdbserver/configure --host=arm-linux-androideabi
  make -j4
  make -j4


Confirmed users
3,314

edits