Accelerate lookup_symbol_aux_objfile 85x
[deliverable/binutils-gdb.git] / gdb / block.h
index bd358d6e4b34edc03130f5c6d72641a38cbcc5f5..409a5c750c261cd301d0748a2af147eb1cdbb562 100644 (file)
@@ -276,6 +276,14 @@ extern struct symbol *block_lookup_symbol (const struct block *block,
                                           const char *name,
                                           const domain_enum domain);
 
+/* Search BLOCK for symbol NAME in DOMAIN but only in primary symbol table of
+   BLOCK.  BLOCK must be STATIC_BLOCK or GLOBAL_BLOCK.  Function is useful if
+   one iterates all global/static blocks of an objfile.  */
+
+extern struct symbol *block_lookup_symbol_primary (const struct block *block,
+                                                  const char *name,
+                                                  const domain_enum domain);
+
 /* Macro to loop through all symbols in BLOCK, in no particular
    order.  ITER helps keep track of the iteration, and must be a
    struct block_iterator.  SYM points to the current symbol.  */
This page took 0.027549 seconds and 4 git commands to generate.