Updated again: Make demangler table driven
Ken Block USG
block@zk3.dec.com
Mon Apr 17 09:10:00 GMT 2000
Resubmitted yet again, I missed adding the spaces in two spots. Also add
space after function, before "==".
============
Resubmitted previous patch with spaces between function names and after
commas in parameter lists.
============
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