aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-10-10 10:48:01 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-11-27 12:01:47 +0000
commit470c0b1c9a1d69e3c4f9281600399b1dadd40614 (patch)
treef4921dd9501d85702a5d164d042e874a25f49c73 /gdb/mdebugread.c
parent7f3bf38453acbabf7286dd7f8ce2688282e7b9cd (diff)
downloadbinutils-470c0b1c9a1d69e3c4f9281600399b1dadd40614.zip
binutils-470c0b1c9a1d69e3c4f9281600399b1dadd40614.tar.gz
binutils-470c0b1c9a1d69e3c4f9281600399b1dadd40614.tar.bz2
gdb: Introduce global_symbol_searcher
Introduce a new class to wrap up the parameters needed for the function search_symbols, which has now become a member function of this new class. The motivation is that search_symbols already takes a lot of parameters, and a future commit is going to add even more. This commit hopefully makes collecting the state required for a search easier. As part of this conversion the list of filenames in which to search has been converted to a std::vector. There should be no user visible changes after this commit. gdb/ChangeLog: * python/python.c (gdbpy_rbreak): Convert to using global_symbol_searcher. * symtab.c (file_matches): Convert return type to bool, change file list to std::vector, update header comment. (search_symbols): Rename to... (global_symbol_searcher::search): ...this and update now its a member function of global_symbol_searcher. Take account of the changes to file_matches. (symtab_symbol_info): Convert to using global_symbol_searcher. (rbreak_command): Likewise. (search_module_symbols): Likewise. * symtab.h (enum symbol_search): Update comment. (search_symbols): Remove declaration. (class global_symbol_searcher): New class. Change-Id: I488ab292a892d9e9e84775c632c5f198b6ad3710
Diffstat (limited to 'gdb/mdebugread.c')
0 files changed, 0 insertions, 0 deletions