home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
-