C++-ify Ada component interval handling
authorTom Tromey <tom@tromey.com>
Wed, 16 Dec 2020 00:39:57 +0000 (17:39 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 16 Dec 2020 00:41:29 +0000 (17:41 -0700)
commitcf608cc40c523537046efde52e9d68303e8bde00
tree5600f5a6b055109909977be83388f37be460b5a1
parente1b2362cbf5a03b273e3b69630484710c598ac3f
C++-ify Ada component interval handling

The Ada component interval handling code, used for aggregate
assignments, does a pre-pass over the sub-expressions so that it can
size an array.  For my expression rewrite, it was handy to C++-ify
this.

gdb/ChangeLog
2020-12-15  Tom Tromey  <tom@tromey.com>

* ada-lang.c (num_component_specs): Remove.
(assign_aggregate): Update.
(aggregate_assign_positional, aggregate_assign_from_choices)
(aggregate_assign_others, add_component_interval): Change
arguments.
gdb/ChangeLog
gdb/ada-lang.c