From 4e48c9dd27470559a7c5ff96444b2dfd0df4a1ea Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 23 Nov 2003 01:10:45 +0000 Subject: * cxxfilt.c (long_options): Add --no-params. (main): Handle -p/--no-params. * doc/binutils.texi (c++filt): Document -p/--no-params. --- binutils/cxxfilt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'binutils/cxxfilt.c') diff --git a/binutils/cxxfilt.c b/binutils/cxxfilt.c index f41493b..b909510 100644 --- a/binutils/cxxfilt.c +++ b/binutils/cxxfilt.c @@ -100,6 +100,7 @@ static const struct option long_options[] = { {"strip-underscores", no_argument, 0, '_'}, {"format", required_argument, 0, 's'}, {"help", no_argument, 0, 'h'}, + {"no-params", no_argument, 0, 'p'}, {"no-strip-underscores", no_argument, 0, 'n'}, {"version", no_argument, 0, 'v'}, {0, no_argument, 0, 0} @@ -171,7 +172,7 @@ main (int argc, char **argv) strip_underscore = TARGET_PREPENDS_UNDERSCORE; - while ((c = getopt_long (argc, argv, "_ns:", long_options, (int *) 0)) != EOF) + while ((c = getopt_long (argc, argv, "_nps:", long_options, (int *) 0)) != EOF) { switch (c) { @@ -183,6 +184,9 @@ main (int argc, char **argv) case 'n': strip_underscore = 0; break; + case 'p': + flags &= ~ DMGL_PARAMS; + break; case 'v': print_version ("c++filt"); return (0); -- cgit v1.1