X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fpsymtab.h;h=a1cab96238f8670ff30c4e32e88114cbafe5237d;hb=b22a7c6ab6173fe4fa1352e14d00a234bbf50346;hp=de292c5d87c9ba176b298b51ab9467d08e88f9c9;hpb=74e2f255485844a9662d354ac13c4c04dad92c5c;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/psymtab.h b/gdb/psymtab.h index de292c5d87..a1cab96238 100644 --- a/gdb/psymtab.h +++ b/gdb/psymtab.h @@ -1,6 +1,6 @@ /* Public partial symbol table definitions. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -21,6 +21,7 @@ #define PSYMTAB_H #include "symfile.h" +#include "common/next-iterator.h" /* A bcache for partial symbols. */ @@ -30,22 +31,30 @@ extern struct psymbol_bcache *psymbol_bcache_init (void); extern void psymbol_bcache_free (struct psymbol_bcache *); extern struct bcache *psymbol_bcache_get_bcache (struct psymbol_bcache *); -void expand_partial_symbol_names (int (*fun) (const char *, void *), - void *data); - -void map_partial_symbol_filenames (symbol_filename_ftype *fun, void *data, - int need_fullname); - extern const struct quick_symbol_functions psym_functions; extern const struct quick_symbol_functions dwarf2_gdb_index_functions; +extern const struct quick_symbol_functions dwarf2_debug_names_functions; + +/* A range adapter that makes it possible to iterate over all + psymtabs in one objfile. */ + +class objfile_psymtabs : public next_adapter +{ +public: + + explicit objfile_psymtabs (struct objfile *objfile) + : next_adapter (objfile->psymtabs) + { + } +}; /* Ensure that the partial symbols for OBJFILE have been loaded. If VERBOSE is non-zero, then this will print a message when symbols - are loaded. This function always returns its argument, as a - convenience. */ + are loaded. This function returns a range adapter suitable for + iterating over the psymtabs of OBJFILE. */ -extern struct objfile *require_partial_symbols (struct objfile *objfile, - int verbose); +extern objfile_psymtabs require_partial_symbols (struct objfile *objfile, + int verbose); #endif /* PSYMTAB_H */