This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: C++/Java regressions
Daniel Jacobowitz <drow@mvista.com> writes:
> > If it helps, that's more or less what my libiberty C++ demangler does.
> > It first translate the name into a simple tree structure, and then
> > walks the tree translating it into a string. I could expose the tree,
> > although it would have to be documented a bit better.
>
> Oh, so it's already two-pass? If we could work out an API for the
> tree, then GDB could build and supply trees to get a canonical form
> back from the demangler. That has the added bonus of not needing to
> post-process the demangler output (if we know that we've got a GNU v3
> name and thus this demangler was used, of course - v2 would still need
> to be parsed). That sounds like an ideal solution.
I've been wanting something like this for a long time, too.