gdb: Split global symbol search into separate functions
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 2 Dec 2019 11:36:45 +0000 (11:36 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 4 Dec 2019 10:25:09 +0000 (10:25 +0000)
commitf97a63c5aa5203994447b3cf8e48f184078f379b
treeb13666c9c194b2609e3f0dd14b76997cbe5cb8c0
parent293b38d60f15422cf7e3d3ba06fdbc5cc90aee67
gdb: Split global symbol search into separate functions

In preparation for the next commit, this commit restructures the code
by splitting global_symbol_searcher::search into separate functions.
There should be no functional changes after this commit.

gdb/ChangeLog:

* symtab.c (symbol_search::compare_search_syms): Update header
comment.
(global_symbol_searcher::is_suitable_msymbol): New function.
(global_symbol_searcher::expand_symtabs): New function.
(global_symbol_searcher::add_matching_symbols): New function.
(global_symbol_searcher::add_matching_msymbols): New function.
(global_symbol_searcher::search): Move most of the content
into the new functions above, and call them as needed.
* symtab.h (global_symbol_searcher) <expand_symtabs>: New member
function.
(global_symbol_searcher) <add_matching_symbols>: New member
function.
(global_symbol_searcher) <add_matching_msymbols>: New member
function.
(global_symbol_searcher) <is_suitable_msymbol>: New member
function.

Change-Id: I06b26920f35c268f7a38d8203dc2c2813aa501c6
gdb/ChangeLog
gdb/symtab.c
gdb/symtab.h
This page took 0.024703 seconds and 4 git commands to generate.