From: Paul F. <pa...@so...> - 2024-12-21 20:32:05
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=476f2558457e2c02c202709d699d5ef73987c432 commit 476f2558457e2c02c202709d699d5ef73987c432 Author: Paul Floyd <pj...@wa...> Date: Sat Dec 21 21:30:45 2024 +0100 Command line help - demangling isn't just for C++ Make the first line generic and add a list of languages that are suppoted. Diff: --- coregrind/m_main.c | 3 ++- none/tests/cmdline1.stdout.exp | 3 ++- none/tests/cmdline1.stdout.exp-non-linux | 3 ++- none/tests/cmdline2.stdout.exp | 3 ++- none/tests/cmdline2.stdout.exp-non-linux | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 85e744d157..3eba026cc5 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -130,7 +130,8 @@ static void usage_NORETURN ( int need_help ) " --xml-file=<file> XML output to <file>\n" " --xml-socket=ipaddr:port XML output to socket ipaddr:port\n" " --xml-user-comment=STR copy STR verbatim into XML output\n" -" --demangle=no|yes automatically demangle C++ names? [yes]\n" +" --demangle=no|yes automatically demangle decorated names? [yes]\n" +" supported languages: C++, D, Rust, Java, Ada\n" " --num-callers=<number> show <number> callers in stack traces [12]\n" " --error-limit=no|yes stop showing new errors if too many? [yes]\n" " --exit-on-first-error=no|yes exit code on the first error found? [no]\n" diff --git a/none/tests/cmdline1.stdout.exp b/none/tests/cmdline1.stdout.exp index f88e63d24d..c7b7536856 100644 --- a/none/tests/cmdline1.stdout.exp +++ b/none/tests/cmdline1.stdout.exp @@ -43,7 +43,8 @@ usage: valgrind [options] prog-and-args --xml-file=<file> XML output to <file> --xml-socket=ipaddr:port XML output to socket ipaddr:port --xml-user-comment=STR copy STR verbatim into XML output - --demangle=no|yes automatically demangle C++ names? [yes] + --demangle=no|yes automatically demangle decorated names? [yes] + supported languages: C++, D, Rust, Java, Ada --num-callers=<number> show <number> callers in stack traces [12] --error-limit=no|yes stop showing new errors if too many? [yes] --exit-on-first-error=no|yes exit code on the first error found? [no] diff --git a/none/tests/cmdline1.stdout.exp-non-linux b/none/tests/cmdline1.stdout.exp-non-linux index 6449dc15b6..6650cc5b90 100644 --- a/none/tests/cmdline1.stdout.exp-non-linux +++ b/none/tests/cmdline1.stdout.exp-non-linux @@ -41,7 +41,8 @@ usage: valgrind [options] prog-and-args --xml-file=<file> XML output to <file> --xml-socket=ipaddr:port XML output to socket ipaddr:port --xml-user-comment=STR copy STR verbatim into XML output - --demangle=no|yes automatically demangle C++ names? [yes] + --demangle=no|yes automatically demangle decorated names? [yes] + supported languages: C++, D, Rust, Java, Ada --num-callers=<number> show <number> callers in stack traces [12] --error-limit=no|yes stop showing new errors if too many? [yes] --exit-on-first-error=no|yes exit code on the first error found? [no] diff --git a/none/tests/cmdline2.stdout.exp b/none/tests/cmdline2.stdout.exp index c4dc05f187..24ca407f80 100644 --- a/none/tests/cmdline2.stdout.exp +++ b/none/tests/cmdline2.stdout.exp @@ -43,7 +43,8 @@ usage: valgrind [options] prog-and-args --xml-file=<file> XML output to <file> --xml-socket=ipaddr:port XML output to socket ipaddr:port --xml-user-comment=STR copy STR verbatim into XML output - --demangle=no|yes automatically demangle C++ names? [yes] + --demangle=no|yes automatically demangle decorated names? [yes] + supported languages: C++, D, Rust, Java, Ada --num-callers=<number> show <number> callers in stack traces [12] --error-limit=no|yes stop showing new errors if too many? [yes] --exit-on-first-error=no|yes exit code on the first error found? [no] diff --git a/none/tests/cmdline2.stdout.exp-non-linux b/none/tests/cmdline2.stdout.exp-non-linux index 034f63d580..e13d196954 100644 --- a/none/tests/cmdline2.stdout.exp-non-linux +++ b/none/tests/cmdline2.stdout.exp-non-linux @@ -41,7 +41,8 @@ usage: valgrind [options] prog-and-args --xml-file=<file> XML output to <file> --xml-socket=ipaddr:port XML output to socket ipaddr:port --xml-user-comment=STR copy STR verbatim into XML output - --demangle=no|yes automatically demangle C++ names? [yes] + --demangle=no|yes automatically demangle decorated names? [yes] + supported languages: C++, D, Rust, Java, Ada --num-callers=<number> show <number> callers in stack traces [12] --error-limit=no|yes stop showing new errors if too many? [yes] --exit-on-first-error=no|yes exit code on the first error found? [no] |