Editing Documentation/devtools/maemo5/strace

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
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 1: Line 1:
-
{{Devtools}}
 
-
 
-
 
== Description ==
== Description ==
Line 29: Line 26:
=== Installing Strace ===
=== Installing Strace ===
-
The <code>strace</code> tool can be installed to the [[Nokia N900|N900]]. In Scratchbox it is possible to use the Scratchbox-provided <code>strace</code>. Using <code>strace</code> in an X86 target rather than in an ARMEL target is preferable for the reason that in an ARMEL target <code>strace</code> will actually trace the system calls of the <code>QEMU</code> process (which is used to run the arm binary).
+
The <code>strace</code> tool can be installed to the N900. In Scratchbox it is possible to use the Scratchbox-provided <code>strace</code>. Using <code>strace</code> in an X86 target rather than in an ARMEL target is preferable for the reason that in an ARMEL target <code>strace</code> will actually trace the system calls of the <code>QEMU</code> process (which is used to run the arm binary).
=== Using Strace ===
=== Using Strace ===
Line 37: Line 34:
==== Getting a System Call Trace from an Application ====
==== Getting a System Call Trace from an Application ====
-
To get a simple list of the system calls the application is calling, strace is run with the path to the program as a parameter. Below strace is run with the small <code>gdb_example</code> program that is introduced in the debugging guide <ref name="dbg-guide">[[Documentation/Maemo_5_Developer_Guide/Kernel_and_Debugging_Guide/Maemo_Debugging_Guide|Maemo debugging guide]]</ref>.
+
To get a simple list of the system calls the application is calling, strace is run with the path to the program as a parameter. Below strace is run with the small <code>gdb_example</code> program that is introduced in the [maemo debugging guide][].
<pre>
<pre>
Line 297: Line 294:
== Links ==
== Links ==
-
[http://linux.die.net/man/1/strace strace man page](/development/documentation/man_pages/strace.html)
+
[strace man page](/development/documentation/man_pages/strace.html)
-
<references/>
+
[maemo debugging guide][]
 +
 
 +
[maemo debugging guide]: /development/documentation/how-tos/4-x/maemo_debugging_guide.html
== See Also ==
== See Also ==
Line 305: Line 304:
[[Documentation/devtools/maemo5/ltrace|ltrace]],
[[Documentation/devtools/maemo5/ltrace|ltrace]],
[[Documentation/devtools/maemo5/latrace|latrace]]
[[Documentation/devtools/maemo5/latrace|latrace]]
-
 
-
[[Category:Fremantle]]
 

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: