This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch to fix PR9861
TJ Laurenzo <tlaurenzo@gmail.com> writes:
> What files need to be touched to fix the demangler to support this?
libiberty/cp-demangle.c. For my suggestion, you would need to edit
d_bare_function_type like this:
peek = d_peek_char (di);
if (peek == 'J')
{
d_advance (di, 1);
has_return_type = 1;
}
> Would I be right in assuming that if we made a syntactic change like
> this and fixed the demangler to support it, binutils and gdb would be
> unable to decode the new form until the patches made it over to those
> projects?
Yes. The file libiberty/cp-demangle.c is shared by all the projects,
so the source code patch would go over right away, but older
binutils/gdb releases would of course not work with the new mangled
names.
Ian