Editing Documentation/Maemo 5 Developer Guide/Kernel and Debugging Guide/Maemo Debugging Guide

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.

Warning: This page is 60 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 128: Line 128:
-
Gdb needs to be installed to the Internet Tablet device. Install [[SSH|SSH server]] on the device before continuing. OpenSSH server can be installed from maemo [[extras]] repository or from the SDK repository like the gdb below:
+
Gdb needs to be installed to the Internet Tablet device. Install SSH server in the device before continuing. OpenSSH server can be installed from maemo extras-devel repository (http://repository.maemo.org/extras-devel/ fremantle free non-free) or from the SDK repository like the gdb below:
# [[Terminal#Open the terminal|Open a console]].
# [[Terminal#Open the terminal|Open a console]].
Line 138: Line 138:
-
Important: Performing device software updates from the Maemo SDK repositories (for example, 'apt-get upgrade') is not recommended. The reason for this is that there can be some software packages in the SDK repositories that are so-called ''sdk variants''. They can create problems if installed directly to the actual device. In this example, only gdb software is used from the repository.
+
The /etc/apt/sources.list file can be edited with a text editor (such as vi), but the following commands given from the xterm are also valid:
 +
 +
# echo "deb http://repository.maemo.org/ fremantle/sdk free non-free" \
 +
>> /etc/apt/sources.list
 +
# echo "deb http://repository.maemo.org/ fremantle/tools free non-free" \
 +
>> /etc/apt/sources.list
 +
 +
 
 +
Important: Performing device software updates from the Maemo sdk repositories (for example, 'apt-get upgrade') is not recommended. The reason for this is that there can be some software packages in the SDK repositories that are so-called ''sdk variants'' . They can create problems if installed directly in the actual device. In this example, only gdb software is used from the repository.
# Perform an <code>apt-get update</code> on the device. The update command refreshes the package list database on the device.
# Perform an <code>apt-get update</code> on the device. The update command refreshes the package list database on the device.
# Perform an <code>apt-get install gdb</code>
# Perform an <code>apt-get install gdb</code>
-
# Disable the SDK repository by removing or commenting out the lines from your  <code>/etc/apt/sources.list</code> file
 
You should now have gdb and gdbserver (included in the gdb package) installed to the device.
You should now have gdb and gdbserver (included in the gdb package) installed to the device.
 +
 +
 +
{{ambox|text=After using the Maemo sdk repositories in the device /etc/apt/sources.list file, remove or comment the line out. This way, you do not accidentally get programs from the wrong repository to the device.}}
=== Debugging Use Cases with Gdb ===
=== Debugging Use Cases with Gdb ===

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: