From 79020198175d40429e84f502a92afc779d9a9d5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexandra=20H=C3=A1jkov=C3=A1?= Date: Wed, 15 Oct 2025 07:32:06 -0400 Subject: [PATCH] vgdb.c: Update --vargs documentation --- coregrind/vgdb.c | 6 +++++- docs/xml/manual-core-adv.xml | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/coregrind/vgdb.c b/coregrind/vgdb.c index c635f94b5..8cf524a4f 100644 --- a/coregrind/vgdb.c +++ b/coregrind/vgdb.c @@ -2077,7 +2077,11 @@ void usage(void) " gdbserver has not processed a command after number seconds\n" " --multi start in extended-remote mode, wait for gdb to tell us what to run\n" " --valgrind, pass the path to valgrind to use. If not specified, the system valgrind will be launched.\n" -" --vargs everything that follows is an argument for valgrind.\n" +" --vargs Additional valgrind tool options (must be used with --multi).\n" +" Everything following --vargs is passed to valgrind as tool options\n" +" (like -q, --leak-check=full, --tool=helgrind, etc.). The program\n" +" executable and its arguments are specified separately by GDB and\n" +" should NOT be included here.\n" " -l arg tells to show the list of running Valgrind gdbserver and then exit.\n" " -T arg tells to add timestamps to vgdb information messages.\n" " -D arg tells to show shared mem status and then exit.\n" diff --git a/docs/xml/manual-core-adv.xml b/docs/xml/manual-core-adv.xml index d7944b8a1..3591cf731 100644 --- a/docs/xml/manual-core-adv.xml +++ b/docs/xml/manual-core-adv.xml @@ -1424,7 +1424,9 @@ gdb prog Options to run valgrind with, in extended-remote mode. For example . Everything following will be provided as arguments - to valgrind as is. + to valgrind as is. This is only for supplying valgrind options. + The program executable and its arguments are specified separately + by GDB and should NOT be included here. -- 2.47.3