Minor Ada-related cleanups
authorTom Tromey <tromey@adacore.com>
Wed, 3 Mar 2021 19:02:16 +0000 (12:02 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 3 Mar 2021 19:02:16 +0000 (12:02 -0700)
commit1bfa81acbf33cd1157f3b34727136d963505a3d2
treef7a81b9977826a16eb5a4b8d0a7e0b440c99ce8b
parent75363b6d60eed4bb3eb4688fca75edc1f72ded9f
Minor Ada-related cleanups

This patch addresses some review comments that I forgot to deal with
in an earlier patch.  See the comments here:

https://sourceware.org/pipermail/gdb-patches/2021-February/176278.html

For the most part this is fixing up comments, but it also includes
adding a constructor and initializers to "match_data".

Regression tested on x86-64 Fedora 32.

gdb/ChangeLog
2021-03-03  Tom Tromey  <tromey@adacore.com>

* ada-lang.c (ada_resolve_function): Update comment.
(is_nonfunction, add_symbols_from_enclosing_procs)
(remove_extra_symbols): Likewise.
(struct match_data): Add constructor, initializers.
(add_nonlocal_symbols): Remove memset.
(aux_add_nonlocal_symbols): Update comment.
(ada_add_block_renamings, add_nonlocal_symbols)
(ada_add_all_symbols): Likewise.
* ada-exp.y (write_var_or_type): Clean up trailing whitespace.
gdb/ChangeLog
gdb/ada-exp.y
gdb/ada-lang.c