|
From: Nicholas N. <nj...@ca...> - 2003-12-02 10:41:47
|
CVS commit by nethercote:
Grouped options in the usage message so they're a bit easier to understand.
M +23 -26 vg_main.c 1.127
--- valgrind/coregrind/vg_main.c #1.126:1.127
@@ -637,7 +637,6 @@ static void usage ( void )
"usage: valgrind [options] prog-and-args\n"
"\n"
-" core user options, with defaults in [ ], are:\n"
+" common user options for all Valgrind tools, with defaults in [ ]:\n"
" --tool=<name> Use the Valgrind tool named <name> [memcheck]\n"
-
" --help show this message\n"
" --version show version\n"
@@ -645,7 +643,20 @@ static void usage ( void )
" -q --quiet run silently; only print error msgs\n"
" -v --verbose be more verbose, incl counts of errors\n"
-
" --trace-children=no|yes Valgrind-ise child processes? [no]\n"
-
+" --track-fds=no|yes Track open file descriptors? [no]\n"
+"\n"
+" uncommon user options for all Valgrind tools:\n"
+" --run-libc-freeres=no|yes Free up glibc memory at exit? [yes]\n"
+" --weird-hacks=hack1,hack2,... [none]\n"
+" recognised hacks are: ioctl-VTIME truncate-writes lax-ioctls\n"
+" --signal-polltime=<time> time, in mS, we should poll for signals.\n"
+" Only applies for older kernels which need\n"
+" signal routing [50]\n"
+" --lowlat-signals=no|yes improve wake-up latency when a thread receives\n"
+" a signal [no]\n"
+" --lowlat-syscalls=no|yes improve wake-up latency when a thread's\n"
+" syscall completes [no]\n"
+"\n"
+" user options for Valgrind tools that report errors:\n"
" --logfile-fd=<number> file descriptor for messages [2=stderr]\n"
" --logfile=<file> log messages to <file>.pid<pid>\n"
@@ -659,27 +669,13 @@ static void usage ( void )
" --gen-suppressions=no|yes print suppressions for errors detected [no]\n"
-" --track-fds=no|yes Track open file descriptors? [no]\n"
-
" --gdb-attach=no|yes start GDB when errors detected? [no]\n"
" --gdb-path=/path/to/gdb path to the GDB to use [/usr/bin/gdb]\n"
" --input-fd=<number> file descriptor for (gdb) input [0=stdin]\n"
-
-" --run-libc-freeres=no|yes Free up glibc memory at exit? [yes]\n"
-" --weird-hacks=hack1,hack2,... [none]\n"
-" recognised hacks are: ioctl-VTIME truncate-writes lax-ioctls\n"
-" --signal-polltime=<time> time, in mS, we should poll for signals.\n"
-" Only applies for older kernels which need\n"
-" signal routing [50]\n"
-" --lowlat-signals=no|yes improve wake-up latency when a thread receives\n"
-" a signal [no]\n"
-" --lowlat-syscalls=no|yes improve wake-up latency when a thread's\n"
-" syscall completes [no]\n"
"\n"
-" %s tool user options:\n";
-
+" user options for %s:\n";
Char* usage2 =
"\n"
-" core options for debugging Valgrind itself are:\n"
+" debugging options for all Valgrind tools:\n"
" --sanity-level=<number> level of sanity checking to do [1]\n"
" --single-step=no|yes translate each instr separately? [no]\n"
@@ -695,10 +691,11 @@ static void usage ( void )
" --stop-after=<number> switch to real CPU after executing\n"
" <number> basic blocks [infinity]\n"
-" --dump-error=<number> show translation for basic block\n"
-" associated with <number>'th\n"
-" error context [0=don't show any]\n"
" --wait-for-gdb=yes|no pause on startup to wait for gdb attach\n"
"\n"
-" %s tool debugging options:\n";
+" debugging options for Valgrind tools that report errors\n"
+" --dump-error=<number> show translation for basic block associated\n"
+" with <number>'th error context [0=show none]\n"
+"\n"
+" debugging options for %s:\n";
Char* usage3 =
|