Allow passing a block to lookup_global_symbol_from_objfile
authorChristian Biesinger <cbiesinger@google.com>
Tue, 25 Jun 2019 20:45:41 +0000 (15:45 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Thu, 25 Jul 2019 00:02:50 +0000 (19:02 -0500)
commit442853af244e0352956a5d91ad5e169a85b58710
tree96e61428ae50146e38826671e4c25becf679c298
parent75b493d0f95c6037753e0d250e1ecc6fe8d46c38
Allow passing a block to lookup_global_symbol_from_objfile

This has no behavior change in itself, but allows a future patch
to add a function to the Python API to look up symbols in the
static block.

gdb/ChangeLog:

2019-07-24  Christian Biesinger  <cbiesinger@google.com>

* compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
* solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
* solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
* symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
* symtab.h (lookup_global_symbol_from_objfile): Likewise.
gdb/ChangeLog
gdb/compile/compile-object-load.c
gdb/solib-spu.c
gdb/solib-svr4.c
gdb/symtab.c
gdb/symtab.h