Add new search_symbols_multiple API
authorKeith Seitz <keiths@redhat.com>
Wed, 29 Aug 2018 22:12:23 +0000 (15:12 -0700)
committerKeith Seitz <keiths@redhat.com>
Wed, 29 Aug 2018 22:12:23 +0000 (15:12 -0700)
commitfcaad03cc027ec2cdf7f2cff70d792867d43c57f
tree3e83fdb3af1743ba9b29fac1c0618aef012c3856
parent7e41c8db84bc6f74843dda40ae443d41977c0d20
Add new search_symbols_multiple API

This patch adds a new symbol searching API based on linespec.c's parser
implementation.  This allows users to find "all* matching symbols instead
of the first found match (a la lookup_symbol).

gdb/ChangeLog:

* linespec.c (collect_info::add_symbol): Make virtual.
(struct symbol_searcher_collect_info): New struct.
(symbol_searcher::find_all_symbols): New method.
* symtab.h (class symbol_searcher): New class.
gdb/ChangeLog
gdb/linespec.c
gdb/symtab.h