mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #393 from LudwigOrtmann/native_readme
improve valgrind section
This commit is contained in:
commit
e2d7ae5bc0
@ -6,10 +6,12 @@ HAVE_VALGRIND_H or HAVE_VALGRIND_VALGRIND_H depending on the location
|
||||
of the valgrind header (i.e. <valgrind.h> or <valgrind/valgrind.h>)
|
||||
like this:
|
||||
|
||||
CFLAGS="-DHAVE_VALGRIND_VALGRIND_H" make
|
||||
CFLAGS="-DHAVE_VALGRIND_VALGRIND_H -g" make
|
||||
|
||||
That way native can tell valgrind about RIOTs stacks and prevent
|
||||
That way native will tell valgrind about RIOTs stacks and prevent
|
||||
valgrind from reporting lots of false positives.
|
||||
The debug information flag "-g" is not strictly necessary, but passing
|
||||
it allows valgrind to tell you precisely which code triggered the error.
|
||||
|
||||
Usage:
|
||||
Simply pass the ordinary command to valgrind like this:
|
||||
@ -33,6 +35,10 @@ As root call:
|
||||
|
||||
echo 0 > /proc/sys/kernel/yama/ptrace_scope
|
||||
|
||||
Another helpful valgrind parameter is "--track-origins=yes" which
|
||||
will allow valrgind to tell you where references to uninitialized
|
||||
values stem from.
|
||||
|
||||
|
||||
NETWORK SUPPORT
|
||||
===============
|
||||
|
Loading…
Reference in New Issue
Block a user