[Patch 1/2] Add demangling for java resource files to libiberty

Ian Lance Taylor iant@google.com
Tue Jan 29 02:25:00 GMT 2008


David Daney <ddaney@avtrex.com> writes:

> include/
> 2008-01-14  David Daney  <ddaney@avtrex.com>
> 
>     * demangle.h (demangle_component_type):  Add
>     DEMANGLE_COMPONENT_JAVA_RESOURCE,
>     DEMANGLE_COMPONENT_COMPOUND_NAME, and
>     DEMANGLE_COMPONENT_CHARACTER as new enum values.
>     (demangle_component): Add struct s_character to union u.
> 
> libiberty/
> 2008-01-25  David Daney  <ddaney@avtrex.com>
> 
>     * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
>     DEMANGLE_COMPONENT_COMPOUND_NAME, and
>     DEMANGLE_COMPONENT_CHARACTER cases.
>     (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
>     DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
>     (d_make_character): New function.
>     (d_java_resource): Same.
>     (d_special_name): Handle "Gr" case.
>     (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
>     DEMANGLE_COMPONENT_COMPOUND_NAME, and
>     DEMANGLE_COMPONENT_CHARACTER cases.
>     * testsuite/demangle-expected: Add test for java resource name
>     mangling.

This is OK for 4.3 if 4.3 will include the java patches which can
generate these mangled names.

Thanks.

Ian



More information about the Binutils mailing list