From 7e41c8db84bc6f74843dda40ae443d41977c0d20 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Wed, 29 Aug 2018 15:12:23 -0700 Subject: Use block_symbol in linespec APIs This patch changes the linespec.c APIs to use block_symbol instead of just a symbol. lookup_symbol et al already return block_symbol's. gdb/ChangeLog: * linespec.c (struct linespec) : Change to vector of block_symbol. Update all users. (struct collect_info) : Likewise. (collect_info::add_symbol): Take block_symbol as argument. Update all callers. (decode_compound_collector) : Change type to vector of block_symbol. Update all users. (decode_compound_collector::operator ()): Change parameter type to block_symbol. (find_method, find_function_symbols, find_linespec_symbols) (find_label_symbols_in_block, find_label_symbols): Change symbol vectors to block_symbol vectors. * symtab.h (symbol_found_callback_ftype): Change parameter type to block_symbol. --- gdb/ada-lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/ada-lang.c') diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index d9d3087..ef87164 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -5836,7 +5836,7 @@ ada_iterate_over_symbols for (i = 0; i < ndefs; ++i) { - if (!callback (results[i].symbol)) + if (!callback (&results[i])) break; } } -- cgit v1.1