aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2003-11-23 01:10:45 +0000
committerIan Lance Taylor <ian@airs.com>2003-11-23 01:10:45 +0000
commit4e48c9dd27470559a7c5ff96444b2dfd0df4a1ea (patch)
treef5522df222b70ce16d5e858e4f0e68cc9c75182d /binutils
parentd422fe19c6d3e626916f52859cd30df6fe2946ea (diff)
downloadgdb-4e48c9dd27470559a7c5ff96444b2dfd0df4a1ea.zip
gdb-4e48c9dd27470559a7c5ff96444b2dfd0df4a1ea.tar.gz
gdb-4e48c9dd27470559a7c5ff96444b2dfd0df4a1ea.tar.bz2
* cxxfilt.c (long_options): Add --no-params.
(main): Handle -p/--no-params. * doc/binutils.texi (c++filt): Document -p/--no-params.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/cxxfilt.c6
-rw-r--r--binutils/doc/binutils.texi6
3 files changed, 17 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 5224847..d3461a6 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
+
+ * cxxfilt.c (long_options): Add --no-params.
+ (main): Handle -p/--no-params.
+ * doc/binutils.texi (c++filt): Document -p/--no-params.
+
2003-11-19 Alan Modra <amodra@bigpond.net.au>
* objdump.c: Wrap long lines, init vars separately from decl.
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);
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 22b74fc..858e893 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -2314,6 +2314,7 @@ the Info entries for @file{binutils}.
c++filt [@option{-_}|@option{--strip-underscores}]
[@option{-j}|@option{--java}]
[@option{-n}|@option{--no-strip-underscores}]
+ [@option{-p}|@option{--no-params}]
[@option{-s} @var{format}|@option{--format=}@var{format}]
[@option{--help}] [@option{--version}] [@var{symbol}@dots{}]
@c man end
@@ -2369,6 +2370,11 @@ syntax.
@itemx --no-strip-underscores
Do not remove the initial underscore.
+@item -p
+@itemx --no-params
+When demangling the name of a function, do not display the types of
+the function's parameters.
+
@item -s @var{format}
@itemx --format=@var{format}
@command{c++filt} can decode various methods of mangling, used by