diff options
author | Tom Tromey <tromey@adacore.com> | 2021-03-03 12:02:16 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2021-03-03 12:02:16 -0700 |
commit | 1bfa81acbf33cd1157f3b34727136d963505a3d2 (patch) | |
tree | f7a81b9977826a16eb5a4b8d0a7e0b440c99ce8b /gdb/ada-exp.y | |
parent | 75363b6d60eed4bb3eb4688fca75edc1f72ded9f (diff) | |
download | gdb-1bfa81acbf33cd1157f3b34727136d963505a3d2.zip gdb-1bfa81acbf33cd1157f3b34727136d963505a3d2.tar.gz gdb-1bfa81acbf33cd1157f3b34727136d963505a3d2.tar.bz2 |
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.
Diffstat (limited to 'gdb/ada-exp.y')
-rw-r--r-- | gdb/ada-exp.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index a7e0ccb..36375d9 100644 --- a/gdb/ada-exp.y +++ b/gdb/ada-exp.y @@ -1297,7 +1297,7 @@ write_var_or_type (struct parser_state *par_state, write_selectors (par_state, encoded_name + tail_index); return NULL; } - else if (syms.empty ()) + else if (syms.empty ()) { struct bound_minimal_symbol msym = ada_lookup_simple_minsym (encoded_name); |