diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-06-25 15:45:41 -0500 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-07-24 19:02:50 -0500 |
commit | 442853af244e0352956a5d91ad5e169a85b58710 (patch) | |
tree | 96e61428ae50146e38826671e4c25becf679c298 /gdb/solib-svr4.c | |
parent | 75b493d0f95c6037753e0d250e1ecc6fe8d46c38 (diff) | |
download | gdb-442853af244e0352956a5d91ad5e169a85b58710.zip gdb-442853af244e0352956a5d91ad5e169a85b58710.tar.gz gdb-442853af244e0352956a5d91ad5e169a85b58710.tar.bz2 |
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.
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 8cd5b7d..c0c505a 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -3226,7 +3226,8 @@ elf_lookup_lib_symbol (struct objfile *objfile, if (abfd == NULL || scan_dyntag (DT_SYMBOLIC, abfd, NULL, NULL) != 1) return {}; - return lookup_global_symbol_from_objfile (objfile, name, domain); + return lookup_global_symbol_from_objfile (objfile, GLOBAL_BLOCK, name, + domain); } void |