]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/symtab.h
Allow passing a block to lookup_global_symbol_from_objfile
[thirdparty/binutils-gdb.git] / gdb / symtab.h
index b91454c85c4f91d865b6ff1358954b696987b50f..9880ecc4c5380ba2ef8b4198bc40bfa9b76fb1f5 100644 (file)
@@ -2045,13 +2045,16 @@ extern bool treg_matches_sym_type_name (const compiled_regex &treg,
 extern const char *main_name ();
 extern enum language main_language (void);
 
-/* Lookup symbol NAME from DOMAIN in MAIN_OBJFILE's global blocks.
+/* Lookup symbol NAME from DOMAIN in MAIN_OBJFILE's global or static blocks,
+   as specified by BLOCK_INDEX.
    This searches MAIN_OBJFILE as well as any associated separate debug info
    objfiles of MAIN_OBJFILE.
+   BLOCK_INDEX can be GLOBAL_BLOCK or STATIC_BLOCK.
    Upon success fixes up the symbol's section if necessary.  */
 
 extern struct block_symbol
   lookup_global_symbol_from_objfile (struct objfile *main_objfile,
+                                    enum block_enum block_index,
                                     const char *name,
                                     const domain_enum domain);