User:MarkFinkle/MaemoDebugging: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 20: Line 20:
During a package:
During a package:
<pre>
<pre>
make package PKG_SKIP_STRIP=1  
> make package PKG_SKIP_STRIP=1  
</pre>
</pre>


Now you can copy the binaries to the device. Because the debug binaries are larger than the release versions, you probably want to copy the application to <code>/media/mmc2</code> since it has much more space available:
Now you can copy the binaries to the device. Because the debug binaries are larger than the release versions, you probably want to copy the application to <code>/media/mmc2</code> since it has much more space available:
<pre>
<pre>
scp fennec-archive.tar.bz2 root@192.168.10.100:/media/mmc2
> scp fennec-archive.tar.bz2 root@192.168.10.100:/media/mmc2
</pre>
</pre>


Line 31: Line 31:
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>
apt-get install gdb
> apt-get install gdb
</pre>
</pre>


Since the debug binaries are on the device, you could use <code>gdb</code> on the device too:
Since the debug binaries are on the device, you could use <code>gdb</code> on the device too:
<pre>
<pre>
gdb ./fennec
> gdb ./fennec
</pre>
</pre>


If you have a core dump file, you can load it too:
If you have a core dump file, you can load it too:
<pre>
<pre>
gdb ./fennec [path/to/coredump]
> gdb ./fennec [path/to/coredump]
</pre>
</pre>


Line 50: Line 50:
On the device:
On the device:
<pre>
<pre>
gdbserver host:5555 ./fennec
> gdbserver host:5555 ./fennec
</pre>
</pre>


canmove, Confirmed users, Bureaucrats and Sysops emeriti
2,798

edits

Navigation menu