🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #169

Re: Demangler available?

#169
From: Joe Buck
Date: Thu, 03 Sep 1992 01:01
26 lines
1480 bytes
In article <34720@hoptoad.uucp> brendan@cygnus.com writes:
>In article <WARSAW.92Sep1145341@anthem.nlm.nih.gov> warsaw@nlm.nih.gov (Barry A. Warsaw) writes:
>
>   Is there a name demangler available for g++, a la the `dem' tool for
>   SunC++?
>
>Not yet, want to write it?

It's already been done.

>Check out the file cp-dem.c in the gcc 2.2.2 distribution; you could
>easily write a program which just passes strings down into cplus_demangle().

There's one included with gdb-4.6. All you have to do is "make demangle"
in the gdb subdirectory and it makes it.  This program can either demangle
command line arguments or demangle function names on the standard input,
given one per line.  It would be a bit more useful to have it work the
way the old g++filt that used to be in the etc directory of libg++ worked
(it could be used as a filter, for example to process nm output or gprof
listings); perhaps I'll post a patch to restore this behavior.  It's not
hard.



--
Joe Buck	jbuck@ohm.berkeley.edu
Technical Details
Message-ID: <183o5qINNd04@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!forney.berkeley.edu!jbuck
References: <WARSAW.92Sep1145341@anthem.nlm.nih.gov> <34720@hoptoad.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!forney.berkeley.edu!jbuck
From: jbuck@forney.berkeley.edu (Joe Buck)
Newsgroups: gnu.g++.help
Subject: Re: Demangler available?
Date: 3 Sep 1992 01:01:46 GMT
Organization: U. C. Berkeley
Lines: 26
Message-ID: <183o5qINNd04@agate.berkeley.edu>
References: <WARSAW.92Sep1145341@anthem.nlm.nih.gov> <34720@hoptoad.uucp>
NNTP-Posting-Host: forney.berkeley.edu
Summary: yes, with gdb-4.6