From: Paul Floyd Date: Sat, 21 Dec 2024 20:30:45 +0000 (+0100) Subject: Command line help - demangling isn't just for C++ X-Git-Tag: VALGRIND_3_25_0~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=476f2558457e2c02c202709d699d5ef73987c432;p=thirdparty%2Fvalgrind.git Command line help - demangling isn't just for C++ Make the first line generic and add a list of languages that are suppoted. --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 85e744d15..3eba026cc 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -130,7 +130,8 @@ static void usage_NORETURN ( int need_help ) " --xml-file= XML output to \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= show 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 f88e63d24..c7b753685 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= XML output to --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= show 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 6449dc15b..6650cc5b9 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= XML output to --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= show 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 c4dc05f18..24ca407f8 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= XML output to --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= show 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 034f63d58..e13d19695 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= XML output to --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= show 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]