[RFC/RFA] Add handling for unqualified Ada operators in linespecs
Joel Brobecker
brobecker@adacore.com
Wed Dec 21 07:41:00 GMT 2011
> Joel> This patch enhances the linespec parser to recognize unqualified
> Joel> operator names in linespecs. This allows the user to insert a breakpoint
> Joel> on operator "+" as follow, for instance:
> Joel> (gdb) break "+"
>
> I think it is fine to allow this.
Thanks! I have committed this patch.
> I wonder whether this requires a documentation change.
Given that from an Ada programer's perpective, there is nothing special
about this name, so I do not think so. I checked the Ada part of the
manual, and it didn't say that we were not supporting these breakpoints.
So I think we're good.
As stated earlier, I am open to further adjustments if it makes
it easier to deal with the quotes... This could prepare the ground
before Keith's patch comes in, rather than after. I just don't know
enough of Keith's patch yet to be sure which approach to take.
--
Joel
More information about the Gdb-patches
mailing list