Changes

Jump to: navigation, search

Mobile/Fennec/Android/GDB

85 bytes added, 18:17, 26 September 2012
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: /PATH/TO/NDK/build/tools/, then run configure and make-standalone-toolchainfor gdbserver.sh --install-dir=The android-9-toolchain gdbserver--platform=objdir directory can be anywhere, but creating it within the android-9gdb git clone is convenient. The paths below do not necessarily need to be absolute paths, but it will make life easier.
Run configure and make for gdbserver:
mkdir 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
../ABSOLUTE/PATH/TO/GIT/CLONE/android-gdb/gdb/gdbserver/configure --host=arm-linux-androideabi
make -j4
Confirm
3,314
edits

Navigation menu