Mobile/Fennec/Android/GDB: Difference between revisions

no edit summary
No edit summary
Line 139: Line 139:
  git clone git://github.com/darchons/android-gdbutils.git moz-gdb/utils
  git clone git://github.com/darchons/android-gdbutils.git moz-gdb/utils


== Running ==
Now edit this file:
=== Setup gdbinit file ===
 
moz-gdb/utils/gdbinit
 
and uncomment (remove the #'s) and set the following variables:
  python feninit.default.objdir      # set it to your fennec object directory
  python feninit.default.srcroot    # set it to your source directory
 
==== Linux ====
==== Linux ====
Make sure your paths are absolute! The gdbinit file, even though it specifies relative paths by default, will not correctly load debug symbols unless you specify absolute paths.
Make sure your paths are absolute! The gdbinit file, even though it specifies relative paths by default, will not correctly load debug symbols unless you specify absolute paths.
Line 164: Line 170:
</table>
</table>


Running GDB with this requires that you enter into the bin directory, and run ./gdb, once your gdbinit file is setup.
=== Running JimDB ===
 
Once JimDB is properly set up, with a moz-gdb directory as described above, running Fennec in GDB is very easy:
 
  ./moz-gdb/bin/gdb
 
This will automatically start gdbserver and fennec on the device, and start gdb on your computer.
Confirmed users
753

edits