Mobile/Fennec/Android/GDB: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "== Building custom gdb == === Building gdb === Get required packages: sudo apt-get install bison flex libncurses5-dev texinfo python2.7-dev Get source: git clone git://githu...")
 
No edit summary
Line 12: Line 12:
  mkdir android-gdb-objdir
  mkdir android-gdb-objdir
  cd android-gdb-objdir
  cd android-gdb-objdir
  ../android-gdb/configure --target=arm-elf-linux --with-python=yes
export prefix=/nonexistent
  ../android-gdb/configure --target=arm-elf-linux \
  --prefix=$prefix --bindir=$prefix/ --with-separate-debug-dir=$prefix/debug \
  --with-gdb-datadir=$prefix/data --with-system-gdbinit=$prefix/utils/gdbinit \
  --with-python=yes
  make -j4
  make -j4


Line 25: Line 29:
  mkdir android-gdbserver-objdir
  mkdir android-gdbserver-objdir
  cd android-gdbserver-objdir
  cd android-gdbserver-objdir
  ../android-gdb/gdb/gdbserver/configure --host=arm-linux-androideabi --with-sysroot=/PATH/TO/NDK/platforms/android-9/arch-arm
  ../android-gdb/gdb/gdbserver/configure --host=arm-linux-androideabi \
  --with-sysroot=/PATH/TO/NDK/platforms/android-9/arch-arm
  make -j4
  make -j4


The gdbserver binary will be located at ''android-gdbserver-objdir/gdbserver''
The gdbserver binary will be located at ''android-gdbserver-objdir/gdbserver''
Confirmed users
507

edits

Navigation menu