vgdb -V (return code: 1)
vgdb error: no FIFO found and no pid given
vgdb --help (return code: 0)
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=<number>] [--vgdb-prefix=<prefix>]
[--wait=<number>] [--max-invoke-ms=<number>]
[--port=<portnr>
[--cmd-time-out=<number>] [-l] [-D] [-d]
--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
-l arg tells to show the list of running Valgrind gdbserver and then exit.
-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
To get help from the Valgrind gdbserver, use vgdb help