Add support for Java demangling under the v3 ABI:
authorBryce McKinlay <bryce@albatross.co.nz>
Fri, 2 Feb 2001 00:27:39 +0000 (00:27 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Fri, 2 Feb 2001 00:27:39 +0000 (00:27 +0000)
commit3b60dd8e1086b8d477a6fe09c7fe9a07bf410c51
tree820789e9640a2091af40cb492ec11fc7d9cd143f
parent4bae4eb55f43063018e5299274f7da5a0c057247
Add support for Java demangling under the v3 ABI:

* cp-demangle.c (NAMESPACE_SEPARATOR): New define.
(struct demangling_def): Add `style' field.
(demangling_new): New parameter `style'. Set it in demangling_t.
(demangle_prefix): Use NAMESPACE_SEPARATOR.
(demangle_type_ptr): Don't emit pointer symbol if doing Java output.
(cp_demangle): New parameter `style'. Pass it to demangling_new().
(main): Call cp_demangle with extra parameter.
(java_demangle_v3): New function.
(java_builtin_type_names): New. Table of primitive type names used
for Java demangling.
(demangle_builtin_type): Look up in java_builtin_type_names if doing
Java output.
* cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
demangling.
(long_options): Remove obsolete `java' option.
(main): Remove explicit handling of `java' option. Instead, pass style
parameter in cplus_demangle flags as gdb does.
* testsuite/demangle.expected: Add some Java test cases.

From-SVN: r39399
ChangeLog
include/demangle.h
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/cplus-dem.c
libiberty/testsuite/demangle-expected