diff options
author | Keith Seitz <keiths@redhat.com> | 2018-08-29 15:12:23 -0700 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2018-08-29 15:12:23 -0700 |
commit | 7e41c8db84bc6f74843dda40ae443d41977c0d20 (patch) | |
tree | 3916af010af66518d584d7512fbb25e5c4e82880 /gdb/symtab.h | |
parent | 63e8c3daad1eae11cef5b6d1833507d9d4d6b0c0 (diff) | |
download | fsf-binutils-gdb-7e41c8db84bc6f74843dda40ae443d41977c0d20.zip fsf-binutils-gdb-7e41c8db84bc6f74843dda40ae443d41977c0d20.tar.gz fsf-binutils-gdb-7e41c8db84bc6f74843dda40ae443d41977c0d20.tar.bz2 |
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) <function_symbols, label_symbols>:
Change to vector of block_symbol. Update all users.
(struct collect_info) <symbols>: Likewise.
(collect_info::add_symbol): Take block_symbol as argument.
Update all callers.
(decode_compound_collector) <m_symbols>: 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.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index eb14f34..1dc9a09 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -2124,7 +2124,7 @@ std::vector<CORE_ADDR> find_pcs_for_symtab_line true to indicate that LA_ITERATE_OVER_SYMBOLS should continue iterating, or false to indicate that the iteration should end. */ -typedef bool (symbol_found_callback_ftype) (symbol *sym); +typedef bool (symbol_found_callback_ftype) (struct block_symbol *bsym); void iterate_over_symbols (const struct block *block, const lookup_name_info &name, |