apportable / gdb

Apportable gdb fork

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apportable gdb

Apportable gdb is a fork of the Android NDK gdb. It also includes patches from the Fennec Android fork of gdb

The primary differentiator of the Apportable gdb fork is the addition of Objective C debugging support.

Building Production Version of gdb

  • git clone git@github.com:apportable/gdb.git
  • mkdir gdb_build
  • cd gdb_build
  • CFLAGS="-g -O2 -Wno-unused-value -Wno-unused-function" ~/gdb/configure --target=arm-elf-linux --enable-targets=all --with-python=yes
  • make
  • ls -l gdb/gdb

Building Debug Version of gdb

  • git clone git@github.com:apportable/gdb.git (if not already done)
  • mkdir gdb_debug
  • cd gdb_debug
  • CFLAGS="-g -Wno-unused-value -Wno-unused-function" ~/gdb/configure --target=arm-elf-linux --enable-targets=all --with-python=yes
  • make
  • ls -l gdb/gdb

Debugging gdb

  • Rebuild/debug your program ...
  • In another shell ps -ef | grep gdb
  • gdb attach {pid of built gdb}
  • set any breakpoints in gdb source
  • continue

About

Apportable gdb fork

License:GNU General Public License v2.0


Languages

Language:C 85.2%Language:Assembly 11.2%Language:C++ 1.2%Language:Shell 0.7%Language:Bison 0.4%Language:TeX 0.3%Language:Logos 0.2%Language:Ada 0.2%Language:Perl 0.2%Language:Objective-C 0.2%Language:Python 0.1%Language:Emacs Lisp 0.0%Language:Fortran 0.0%Language:Makefile 0.0%Language:Awk 0.0%Language:Pascal 0.0%Language:XSLT 0.0%Language:Java 0.0%Language:Erlang 0.0%Language:Go 0.0%Language:R 0.0%