]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Move lookup_block_symbol to block.c, rename to block_lookup_symbol.
authorDoug Evans <xdje42@gmail.com>
Fri, 7 Nov 2014 06:32:25 +0000 (22:32 -0800)
committerDoug Evans <xdje42@gmail.com>
Fri, 7 Nov 2014 06:32:25 +0000 (22:32 -0800)
commit16b2eaa164b48aa0529304eec38102f1c60578be
tree001b7127c5e558db04bf0f2a2ba5a868dd36dec9
parent405724050266e30fcc8cbcee416cde41862e8e8f
Move lookup_block_symbol to block.c, rename to block_lookup_symbol.

There is another function, lookup_symbol_aux_block, and
the names lookup_block_symbol and lookup_symbol_aux_block don't
convey any real difference between them.

The difference is that lookup_block_symbol lives in the lower level
block API, and lookup_symbol_aux_block lives in the higher level symtab API.
This patch makes this distinction clear.

gdb/ChangeLog:

* symtab.c (lookup_block_symbol): Moved to ...
* block.c (block_lookup_symbol):  ... here and renamed.
All callers updated.
* block.h (block_lookup_symbol): Declare.
* symtab.h (lookup_block_symbol): Delete.
gdb/ChangeLog
gdb/block.c
gdb/block.h
gdb/dwarf2read.c
gdb/psymtab.c
gdb/spu-tdep.c
gdb/symtab.c
gdb/symtab.h