Add handling for unqualified Ada operators in linespecs
authorJoel Brobecker <brobecker@gnat.com>
Wed, 21 Dec 2011 07:24:40 +0000 (07:24 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 21 Dec 2011 07:24:40 +0000 (07:24 +0000)
commit53907c915d3736e1859c3c0af66d713baf6fe6bd
tree9e9ec47c10689ae92733fd2828e51a71f463d3bd
parent50f8ea949d73101ef1dc3d68dfbb7e5e35d4e82a
Add handling for unqualified Ada operators in linespecs

This patch enhances the linespec parser to recognize unqualified
operator names in linespecs. This allows the user to insert a breakpoint
on operator "+" as follow, for instance:

        (gdb) break "+"

Previously, it was possible to insert such a breakpoint, but one
had to fully qualify the function name. For instance:

        (gdb) break ops."+"

gdb/ChangeLog:

        * linespec.c (locate_first_half): Add handling of Ada operators
        when the current language is Ada.
gdb/ChangeLog
gdb/linespec.c