diff options
author | Tom Tromey <tom@tromey.com> | 2020-05-15 16:24:07 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-05-15 16:24:07 -0600 |
commit | d6bc0792edf0ef423ee4604bfd4bee49654314bb (patch) | |
tree | 0aa725d9640096dbcde26bc0535ff0d15c7595a1 /gdb/symtab.h | |
parent | 8c14c3a3735d7de43e63710b2cd3a2e89cc4e243 (diff) | |
download | gdb-d6bc0792edf0ef423ee4604bfd4bee49654314bb.zip gdb-d6bc0792edf0ef423ee4604bfd4bee49654314bb.tar.gz gdb-d6bc0792edf0ef423ee4604bfd4bee49654314bb.tar.bz2 |
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.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index aaf42a5..05e6a31 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -2238,10 +2238,6 @@ bool producer_is_realview (const char *producer); void fixup_section (struct general_symbol_info *ginfo, CORE_ADDR addr, struct objfile *objfile); -/* Look up objfile containing BLOCK. */ - -struct objfile *lookup_objfile_from_block (const struct block *block); - extern unsigned int symtab_create_debug; extern unsigned int symbol_lookup_debug; |