aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-26 13:44:24 -0600
committerTom Tromey <tom@tromey.com>2021-03-26 13:44:24 -0600
commit2315bb2d5764527617aef124cbcd52a13395e245 (patch)
tree3edccb0a2a94e2f1988b8d5f2b119d71420b0d34 /gdb/ChangeLog
parente2cd5ca40c03271aa0bf324cac1f7a66ad3904d8 (diff)
downloadgdb-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/ChangeLog')
-rw-r--r--gdb/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 168cd5b..89b3cf0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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'.
+
+2021-03-26 Tom Tromey <tom@tromey.com>
+
* psymtab.c (psymbol_functions::expand_symtabs_matching): Only
call make_ignore_params once.