[RFA] Fix C++ typedefs parsing errors

Keith Seitz keiths@redhat.com
Wed Sep 16 08:03:00 GMT 2009


On 09/15/2009 03:11 PM, Doug Evans wrote:
> [nothing ventured, nothing gained]

Indeed!

> It looks fine to me, with one proviso.
> Do we want the typedef-stripped type passed to write_exp_elt_type?
> It kinda feels like we don't, but I don't honestly know.

Yeah, I also had serious questions about that. Alas, in the absence of 
perfect (or any) information, I've relied on the test suite to point out 
any problems, and there are (sadly?) no regressions.

I'm afraid that I'm one of "those" people who relies on the test suite 
to tell me if I've done something *really* stupid. Or even marginally 
stupid.

I wish I had a better answer than that, but, well, I don't. :-( c-exp.y 
is a bewildering mess of language and gdb constructs. [I actually *have* 
tried to clean it up and reduce the number conflicts, but it would 
require refining some of gdb's syntax, which directly collides with C++ 
syntax. Not that I really tried *that* hard...]

Keith



More information about the Gdb-patches mailing list