]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Remove lookup_objfile_from_block
authorTom Tromey <tom@tromey.com>
Fri, 15 May 2020 22:24:07 +0000 (16:24 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 15 May 2020 22:24:07 +0000 (16:24 -0600)
commitd6bc0792edf0ef423ee4604bfd4bee49654314bb
tree0aa725d9640096dbcde26bc0535ff0d15c7595a1
parent8c14c3a3735d7de43e63710b2cd3a2e89cc4e243
Remove lookup_objfile_from_block

lookup_objfile_from_block mostly duplicates the functionality of
block_objfile, but in a less efficient way.  This patch removes this
function and changes the callers to use block_objfile instead.

Tested by the buildbot.

gdb/ChangeLog
2020-05-15  Tom Tromey  <tom@tromey.com>

* symtab.c (lookup_language_this, lookup_symbol_aux): Use
block_objfile.
(lookup_objfile_from_block): Remove.
(lookup_symbol_in_block, lookup_symbol_in_static_block)
(lookup_global_symbol): Use block_objfile.
* symtab.h (lookup_objfile_from_block): Don't declare.
* printcmd.c (clear_dangling_display_expressions): Use
block_objfile.
* parse.c (operator_check_standard): Use block_objfile.
gdb/ChangeLog
gdb/parse.c
gdb/printcmd.c
gdb/symtab.c
gdb/symtab.h