aboutsummaryrefslogtreecommitdiff
path: root/ar-lib
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-10-10 10:48:01 +0100
committerSimon Marchi <simon.marchi@polymtl.ca>2019-11-20 23:11:40 -0500
commit2c05882ed4ac31c21cd07b8ce28cdbcb423764bf (patch)
tree749a00a8a1727577cbf517cf12946eb08c3cd1db /ar-lib
parentb13e475ed21ee0b57c5ce0f3cf8489a4164734e7 (diff)
downloadgdb-2c05882ed4ac31c21cd07b8ce28cdbcb423764bf.zip
gdb-2c05882ed4ac31c21cd07b8ce28cdbcb423764bf.tar.gz
gdb-2c05882ed4ac31c21cd07b8ce28cdbcb423764bf.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. (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 'ar-lib')
0 files changed, 0 insertions, 0 deletions