Article View: gnu.g++.help
Article #168Re: Demangler available?
From: Joe Buck
Date: Thu, 03 Sep 1992 00:57
Date: Thu, 03 Sep 1992 00:57
26 lines
1525 bytes
1525 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? Um, Brendan, it's already 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:
<183nukINNctk@agate.berkeley.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!forney.berkeley.edu!jbuckReferences:
<WARSAW.92Sep1145341@anthem.nlm.nih.gov> <34720@hoptoad.uucp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!forney.berkeley.edu!jbuck From: jbuck@forney.berkeley.edu (Joe Buck) Newsgroups: gnu.g++.help Subject: Re: Demangler available? Date: 3 Sep 1992 00:57:56 GMT Organization: U. C. Berkeley Lines: 26 Message-ID: <183nukINNctk@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