aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-utils.c
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-08-02 19:59:37 -0500
committerChristian Biesinger <cbiesinger@google.com>2019-08-26 16:24:33 -0500
commit9aa5520697ee3b65bfbb705c21c2dfb2c0dee12e (patch)
treec08437ec87d4c527179d8aba096b6ba5cdbd71eb /gdb/cli/cli-utils.c
parent5c31b35808e467d39d05ffa95428e22bb10fd72d (diff)
downloadgdb-9aa5520697ee3b65bfbb705c21c2dfb2c0dee12e.zip
gdb-9aa5520697ee3b65bfbb705c21c2dfb2c0dee12e.tar.gz
gdb-9aa5520697ee3b65bfbb705c21c2dfb2c0dee12e.tar.bz2
Factor out the common code in lookup_{static,global}_symbol
The two functions are extremely similar; this factors out their code into a shared _internal function. gdb/ChangeLog: 2019-08-26 Christian Biesinger <cbiesinger@google.com> * symtab.c (lookup_static_symbol): Call the new function (and move it down to be next to lookup_global_symbol). (struct global_sym_lookup_data): Add block_enum member and rename to... (struct global_or_static_sym_lookup_data): ...this. (lookup_symbol_global_iterator_cb): Pass block_index instead of GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to... (lookup_symbol_global_or_static_iterator_cb): ...this. (lookup_global_or_static_symbol): New function. (lookup_global_symbol): Call new function.
Diffstat (limited to 'gdb/cli/cli-utils.c')
0 files changed, 0 insertions, 0 deletions