Changes

Jump to: navigation, search

Mobile/Fennec/Android/GDB

1,005 bytes added, 17:42, 14 December 2011
no edit summary
= Using JimDB (Or, Android GDB with Niceness) =
== Prebuilt binaries ==
cp android-gdbserver-objdir/gdbserver moz-gdb/bin
git clone git://github.com/darchons/android-gdbutils.git moz-gdb/utils
 
== Running ==
=== Setup gdbinit file ===
==== 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.
<table style="border: 1px solid black;">
<tr>
<th style="background: rgb(250,35,35); color: black; font-weight: bold;">INCORRECT</th>
<th style="background: rgb(35,250,35); color: black; font-weight: bold;">CORRECT</th>
</tr>
<tr>
<td>
<code>
python feninit.default.objdir = '~/Source/mozilla-android/obj-android'
python feninit.default.srcroot = '~/Source/mozilla-central/mozilla'
</code>
</td>
<td>
<code>
python feninit.default.objdir = '/home/USERNAME/Source/mozilla-android/obj-android'
python feninit.default.srcroot = '/home/USERNAME/Source/mozilla-central/mozilla'
</code>
</td>
</tr>
</table>
 
Running GDB with this requires that you enter into the bin directory, and run ./gdb, once your gdbinit file is setup.
Confirm
206
edits

Navigation menu