diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-26 13:44:24 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-26 13:44:24 -0600 |
commit | 2315bb2d5764527617aef124cbcd52a13395e245 (patch) | |
tree | 3edccb0a2a94e2f1988b8d5f2b119d71420b0d34 /gdb/utils.h | |
parent | e2cd5ca40c03271aa0bf324cac1f7a66ad3904d8 (diff) | |
download | gdb-2315bb2d5764527617aef124cbcd52a13395e245.zip gdb-2315bb2d5764527617aef124cbcd52a13395e245.tar.gz gdb-2315bb2d5764527617aef124cbcd52a13395e245.tar.bz2 |
Simplify use of map_matching_symbols in ada-lang.c
I noticed that ada-lang.c creates a lambda to call
aux_add_nonlocal_symbols. However, this code can be simplified a bit
by changing match_data to implement operator(), and then simply
passing the object as the callback. That is what this patch
implements.
gdb/ChangeLog
2021-03-26 Tom Tromey <tom@tromey.com>
* ada-lang.c (struct match_data): Add operator().
(match_data::operator()): Rename from aux_add_nonlocal_symbols.
(callback): Remove 'callback'.
Diffstat (limited to 'gdb/utils.h')
0 files changed, 0 insertions, 0 deletions