blob: 939c093bffe09291118194fa429d7c906b2afec3 [file] [log] [blame]
nethercotef4928da2004-06-15 10:54:40 +00001usage: valgrind --tool=<toolname> [options] prog-and-args
2
3 common user options for all Valgrind tools, with defaults in [ ]:
sewardjb5f6f512005-03-10 23:59:00 +00004 --tool=<name> use the Valgrind tool named <name> [memcheck]
nethercotea76368b2004-06-16 11:56:29 +00005 -h --help show this message
nethercotef4928da2004-06-15 10:54:40 +00006 --help-debug show this message, plus debugging options
7 --version show version
8 -q --quiet run silently; only print error msgs
9 -v --verbose be more verbose, incl counts of errors
10 --trace-children=no|yes Valgrind-ise child processes? [no]
nethercote0d588502004-06-21 13:27:11 +000011 --track-fds=no|yes track open file descriptors? [no]
thughes6233a382004-08-21 11:10:44 +000012 --time-stamp=no|yes add timestamps to log messages? [no]
njnce545552005-07-25 22:36:52 +000013 --log-fd=<number> log messages to file descriptor [2=stderr]
14 --log-file=<file> log messages to <file>.pid<pid>
15 --log-file-exactly=<file> log messages to <file>
16 --log-file-qualifier=<VAR> incorporate $VAR in logfile name [none]
17 --log-socket=ipaddr:port log messages to socket ipaddr:port
nethercotef4928da2004-06-15 10:54:40 +000018
19 uncommon user options for all Valgrind tools:
nethercote0d588502004-06-21 13:27:11 +000020 --run-libc-freeres=no|yes free up glibc memory at exit? [yes]
sewardja0461a62005-09-28 01:14:32 +000021 --weird-hacks=hack1,hack2,... known hacks: lax-ioctls
njna23e6c92005-09-27 19:46:46 +000022 enable-outer [none]
nethercotef4928da2004-06-15 10:54:40 +000023 --pointercheck=no|yes enforce client address space limits [yes]
sewardj8f01fbe2005-03-20 12:06:57 +000024 --show-emwarns=no|yes show warnings about emulation limits? [no]
sewardj6c3a2192005-07-24 07:00:45 +000025 --smc-check=none|stack|all checks for self-modifying code: none,
26 only for code found in stacks, or all [stack]
nethercotef4928da2004-06-15 10:54:40 +000027
28 user options for Valgrind tools that report errors:
njnce545552005-07-25 22:36:52 +000029 --xml=yes all output is in XML (Memcheck/Nulgrind only)
njn483398e2005-07-20 03:03:44 +000030 --xml-user-comment=STR copy STR verbatim to XML output
nethercotef4928da2004-06-15 10:54:40 +000031 --demangle=no|yes automatically demangle C++ names? [yes]
njncc6cc142005-03-12 20:59:29 +000032 --num-callers=<number> show <num> callers in stack traces [12]
nethercotef4928da2004-06-15 10:54:40 +000033 --error-limit=no|yes stop showing new errors if too many? [yes]
34 --show-below-main=no|yes continue stack traces below main() [no]
35 --suppressions=<filename> suppress errors described in <filename>
sewardj09272c72005-01-11 14:21:02 +000036 --gen-suppressions=no|yes|all print suppressions for errors? [no]
nethercotef4928da2004-06-15 10:54:40 +000037 --db-attach=no|yes start debugger when errors detected? [no]
38 --db-command=<command> command to start debugger [gdb -nw %f %p]
39 --input-fd=<number> file descriptor for input [0=stdin]
sewardj412ad6e2005-04-03 00:16:11 +000040 --max-stackframe=<number> assume stack switch for SP changes larger
41 than <number> bytes [2000000]
nethercotef4928da2004-06-15 10:54:40 +000042
43 user options for Nulgrind:
44 (none)
45
46 Extra options read from ~/.valgrindrc, $VALGRIND_OPTS, ./.valgrindrc
47
njn53612422005-03-12 16:22:54 +000048 Valgrind is Copyright (C) 2000-2005 Julian Seward et al.
nethercotef4928da2004-06-15 10:54:40 +000049 and licensed under the GNU General Public License, version 2.
njn272b2162005-05-17 03:22:38 +000050 Bug reports, feedback, admiration, abuse, etc, to: www.valgrind.org.
nethercotef4928da2004-06-15 10:54:40 +000051
52 Tools are copyright and licensed by their authors. See each
53 tool's start-up message for more information.
54