Usage: vgdb [OPTION]... [[-c] COMMAND]... vgdb (valgrind gdb) has two usages 1. standalone to send monitor commands to a Valgrind gdbserver. The OPTION(s) must be followed by the command to send To send more than one command, separate the commands with -c 2. relay application between gdb and a Valgrind gdbserver. Only OPTION(s) can be given. OPTIONS are [--pid=] [--vgdb-prefix=] [--wait=] [--max-invoke-ms=] [--port= [--cmd-time-out=] [-l] [-T] [-D] [-d] [--multi] [--valgrind=] [--vargs ...] --pid arg must be given if multiple Valgrind gdbservers are found. --vgdb-prefix arg must be given to both Valgrind and vgdb utility if you want to change the prefix (default /tmp/vgdb-pipe) for the FIFOs communication between the Valgrind gdbserver and vgdb. --wait (default 0) tells vgdb to check during the specified number of seconds if a Valgrind gdbserver can be found. --max-invoke-ms (default 100) gives the nr of milli-seconds after which vgdb will force the invocation of the Valgrind gdbserver (if the Valgrind process is blocked in a system call). --port instructs vgdb to listen for gdb on the specified port nr. --cmd-time-out (default 99999999) tells vgdb to exit if the found Valgrind gdbserver has not processed a command after number seconds --multi start in extended-remote mode, wait for gdb to tell us what to run --valgrind, pass the path to valgrind to use. If not specified, the system valgrind will be launched. --vargs Additional valgrind tool options (must be used with --multi). Everything following --vargs is passed to valgrind as tool options (like -q, --leak-check=full, --tool=helgrind, etc.). The program executable and its arguments are specified separately by GDB and should NOT be included here. -l arg tells to show the list of running Valgrind gdbserver and then exit. -T arg tells to add timestamps to vgdb information messages. -D arg tells to show shared mem status and then exit. -d arg tells to show debug info. Multiple -d args for more debug info -h --help shows this message The GDB python code defining GDB front end valgrind commands is: /usr/libexec/valgrind/valgrind-monitor.py To get help from the Valgrind gdbserver, use vgdb help