From 442853af244e0352956a5d91ad5e169a85b58710 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Tue, 25 Jun 2019 15:45:41 -0500 Subject: 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 * 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/compile/compile-object-load.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/compile') diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c index 4e70205..3a765a3 100644 --- a/gdb/compile/compile-object-load.c +++ b/gdb/compile/compile-object-load.c @@ -639,6 +639,7 @@ compile_object_load (const compile_file_names &file_names, objfile = objfile_holder.get (); func_sym = lookup_global_symbol_from_objfile (objfile, + GLOBAL_BLOCK, GCC_FE_WRAPPER_FUNCTION, VAR_DOMAIN).symbol; if (func_sym == NULL) -- cgit v1.1