]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Recognize _ in attribute names
authorTom Tromey <tromey@adacore.com>
Fri, 7 Jun 2019 17:29:36 +0000 (11:29 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 14 Jun 2019 14:02:20 +0000 (08:02 -0600)
commit4268ec187d401b9b132afa1a13c73e0026a53c5d
treec897ebf2928eea030e6f1bdddf012e3eb6d95908
parentabdb711e0855f0597a96db0486b598144b788212
Recognize _ in attribute names

Ada attribute names can contain "_", but the lexer currently does not
allow this -- even though the "attributes" array lists some attributes
spelled this way.

This patch fixes the bug and adds test cases for the existing
attributes.

This was reviewed off-list by Joel.  I'm checking it in.

gdb/ChangeLog
2019-06-14  Tom Tromey  <tromey@adacore.com>

* ada-lex.l: Allow "_" in attribute names.

gdb/testsuite/ChangeLog
2019-06-14  Tom Tromey  <tromey@adacore.com>

* gdb.ada/formatted_ref.exp (test_p_x_addr): Check
'unchecked_access and 'unrestricted_access as well.
gdb/ChangeLog
gdb/ada-lex.l
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/formatted_ref.exp