diff options
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 72d1c7ff848..eac44aee156 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -2072,6 +2072,22 @@ extern std::vector<symbol_search> search_symbols (const char *, int, const char **, bool); + +/* When searching for Fortran symbols within modules (functions/variables) + we return a vector of this type. The first item in the pair is the + module symbol, and the second item is the symbol for the function or + variable we found. */ +typedef std::pair<symbol_search, symbol_search> module_symbol_search; + +/* Searches the symbols to find function and variables symbols (depending + on KIND) within Fortran modules. The MODULE_REGEXP matches against the + name of the module, REGEXP matches against the name of the symbol within + the module, and TYPE_REGEXP matches against the type of the symbol + within the module. */ +extern std::vector<module_symbol_search> search_module_symbols + (const char *module_regexp, const char *regexp, + const char *type_regexp, search_domain kind); + extern bool treg_matches_sym_type_name (const compiled_regex &treg, const struct symbol *sym); |