This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++/Java regressions


On Sat, Nov 29, 2003 at 09:56:28PM -0500, Jim Blandy wrote:
> 
> 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.

FYI, I'm in the middle (this evening) of writing the appropriate
parser.

It's reminding me how much I hate the grammar of C++, too.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]