ping: [gcc patch] libcc1: '@' GDB array operator

Tom Tromey tom@tromey.com
Wed Jun 3 18:55:00 GMT 2015


Manuel> It should be possible to arrange the inferior code in
Manuel> such a way that GCC parses each side of @ independently and gives the
Manuel> info necessary to GDB such that it can interpret what @ means or give
Manuel> a reasonable error.

Only if this can be done without requiring gdb to lex the expression.

Manuel> Parsing correctly arbitrary programs that may contain @ at arbitrary
Manuel> places seems a can full of gigantic were-worms.

I think you are overstating the case.

This would be an extension only visible via the special gdb plugin, not
a general use extension.

And, if at some future date C and/or C++ add a use of "@", gdb is going
to have to change anyway.  So I don't think it is so bad.

The real problems are likely the other gdb extensions that are
syntactically even more questionable; plus the protection-bypassing hack
for C++.  That's right -- look over there!

Tom



More information about the Gcc-patches mailing list