gdb: Add new parser rule for structure field names
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 17 Dec 2018 13:51:05 +0000 (13:51 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 24 Dec 2018 17:25:25 +0000 (17:25 +0000)
commit0f5d3f636a606e307d8d8634415cc1e313a38273
tree3d13a4422009090a40944a17c878cea5f678e938
parentb6c95c0cc5bd60e2de86d611120bf6191f99860a
gdb: Add new parser rule for structure field names

Introduces a new rule in c-exp.y for matching structure field names.

This is a restructure in preparation for the next commit, this commit
shouldn't result in any user visible changes.

gdb/ChangeLog:

* c-exp.y (field_name): New %token, and new rule.
(exp): Replace uses of 'name' with 'field_name' where appropriate.
gdb/ChangeLog
gdb/c-exp.y