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 59 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 1,064: Line 1,064:
Valgrind also tells the lines in the code where these allocations that are not freed are performed. In this example, the lines in question are 48 and 26.
Valgrind also tells the lines in the code where these allocations that are not freed are performed. In this example, the lines in question are 48 and 26.
-
 
-
==== Alternative method for starting Valgrind ====
 
-
 
-
[[#Alternative method for starting gdb|As with gdb]], Valgrind can be started together with the application framework, which is especially useful for graphical applications that must normally be run with <code>run-standalone.sh</code>. For example, to start the application framework an an application <code>my_app</code> underValgrind:
 
-
af-sb-init.sh start --valgrind=my_app
 
-
If other Valgrind frontends are required, they can be set with the environment variables:
 
-
* <code>VALGRINDCMD</code>: the command you want to run inside valgrind
 
-
* <code>VALGRIND</code>: the valgrind command and parameters, including the frontend to use
 
-
For example, to run <code>massif</code> on <code>maemo-af-desktop</code>:
 
-
VALGRINDCMD="maemo-af-desktop" VALGRIND="valgrind --tool=massif --num-callers=50 \
 
-
        --trace-children=yes --depth=5 --format=html -log-file=/tmp/massif \
 
-
        --alloc-fn=g_malloc --alloc-fn=g_malloc0 --alloc-fn=g_realloc \
 
-
        --alloc-fn=g_slice_alloc --alloc-fn=g_try_malloc \
 
-
        --alloc-fn=g_slice_alloc0" af-sb-init.sh start
 
-
...
 
-
af-sb-init.sh stop
 
=== Official Valgrind Manual ===
=== Official Valgrind Manual ===

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: