Mobile/Fennec/Android/GDB: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 119: Line 119:
  adb push gdbserver /data/local
  adb push gdbserver /data/local


=== Set up the moz-gdb directory ===
=== Create the moz-gdb directory ===


Once you've built JimDB, you need to create and populate a moz-gdb directory as explained below.
Once you've built JimDB, you need to create and populate a moz-gdb directory as explained below.
Line 138: Line 138:
  cp android-gdbserver-objdir/gdbserver moz-gdb/bin
  cp android-gdbserver-objdir/gdbserver moz-gdb/bin
  git clone git://github.com/darchons/android-gdbutils.git moz-gdb/utils
  git clone git://github.com/darchons/android-gdbutils.git moz-gdb/utils
== Set up the gdbinit file ==


Now edit this file:
Now edit this file:
Line 147: Line 149:
   python feninit.default.srcroot    # set it to your source 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.
<table style="border: 1px solid black;">
<table style="border: 1px solid black;">
Confirmed users
753

edits