Make demangler table drive
Ken Block USG
block@zk3.dec.com
Fri Apr 14 14:21:00 GMT 2000
My mailer mangled the patch, so I'm resending it as an attachment.
This patch makes the demangler be table driver so it is easier to add
new demangler styles. Basically the code is lifted from gdb which is
already table driven. Once this is checked in, gdb can remove its
version and simply depend on libiberty to handle picking the style and
not have to worry about when new styles are added. This is done in
preperation to adding support for demangling Ada, Java, and Compaq C++
and the ability to control the style of demangling in all binutil tools
that do demangling: ld, nm, objdump, gprof, etc.
Fri Apr 14 16:51:59 EDT 2000 Kenneth Block <block@zk3.dec.com>
* libiberty/cplus-dem.c
(libiberty_demanglers): new table for demangle styles
(cplus_demangle_set_style): New function for setting style
(cplus_demangle_name_to_style): New function to translate name
* include/demangle.h
(libiberty_demanglers): new table for different styles
(cplus_demangle_set_style): New function for setting style
(cplus_demangle_name_to_style): New function to translate name
More information about the Gcc-patches
mailing list