home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!kithrup!hoptoad!brendan
- From: brendan@cygnus.com (Brendan Kehoe)
- Newsgroups: gnu.g++.help
- Subject: Re: Demangler available?
- Message-ID: <34720@hoptoad.uucp>
- Date: 2 Sep 92 04:02:07 GMT
- References: <WARSAW.92Sep1145341@anthem.nlm.nih.gov>
- Sender: news@hoptoad.uucp
- Reply-To: brendan@cygnus.com
- Organization: Cygnus Support, Palo Alto, CA
- Lines: 25
- Nntp-Posting-Host: cygnus.com
- In-reply-to: warsaw@nlm.nih.gov's message of 1 Sep 92 19:53:41 GMT
-
- 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?
-
- 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().
-
- I haven't quite gotten g++'s style down yet ;-). Perhaps
- there is a way in gdb?
-
- Yup, in gdb 4.6 you can do `maint demangle blah', where blah is the symbol
- to demangle. For example:
-
- (gdb) maint demangle _$_3foov
- foo::~foo(void)
-
- Brendan
- --
- Brendan Kehoe brendan@cygnus.com
- Cygnus Support, Palo Alto, CA +1 415 322 3811
- Oooh! A handsome stranger! And me, without my shoes on.
- --The Princess, The Emperor's New Clothes
-