User:MarkFinkle/MaemoDebugging: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
I had no previous development experience on Linux before working on Fennec. However, we use the tools we have, so I started playing with <code>gdb</code> and <code>gdbserver</code>.
I had no previous development experience on Linux before working on Fennec. However, we use the tools we have, so I started playing with <code>gdb</code> and <code>gdbserver</code>.


'''Debug Symbols'''
==Debug Symbols==
To debug Fennec/XULRunner, you'll need a build with at least debug symbols. Creating full debug builds in scratchbox has failed many times. Using debug symbols is a little more lightweight.
To debug Fennec/XULRunner, you'll need a build with at least debug symbols. Creating full debug builds in scratchbox has failed many times. Using debug symbols is a little more lightweight.


Line 10: Line 10:
</pre>
</pre>


'''Packaging'''
==Packaging==
Now the Fennec/XULRunner binaries have debug symbols. However, the packaging phase will strip the symbols. You need to disable the strip.
Now the Fennec/XULRunner binaries have debug symbols. However, the packaging phase will strip the symbols. You need to disable the strip.


Line 28: Line 28:
</pre>
</pre>


'''GDB'''
==GDB==
In order to use <code>gdb</code> or <code>gdbserver</code> on the device, you'll need to install it:
In order to use <code>gdb</code> or <code>gdbserver</code> on the device, you'll need to install it:
<pre>
<pre>
canmove, Confirmed users, Bureaucrats and Sysops emeriti
2,798

edits