]>
Commit | Line | Data |
---|---|---|
ccefe4c4 TT |
1 | /* Public partial symbol table definitions. |
2 | ||
42a4f53d | 3 | Copyright (C) 2009-2019 Free Software Foundation, Inc. |
ccefe4c4 TT |
4 | |
5 | This file is part of GDB. | |
6 | ||
7 | This program is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 3 of the License, or | |
10 | (at your option) any later version. | |
11 | ||
12 | This program is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
19 | ||
20 | #ifndef PSYMTAB_H | |
21 | #define PSYMTAB_H | |
22 | ||
44b13c5a | 23 | #include "symfile.h" |
b22a7c6a | 24 | #include "common/next-iterator.h" |
44b13c5a | 25 | |
710e1a31 SW |
26 | /* A bcache for partial symbols. */ |
27 | ||
28 | struct psymbol_bcache; | |
29 | ||
30 | extern struct psymbol_bcache *psymbol_bcache_init (void); | |
31 | extern void psymbol_bcache_free (struct psymbol_bcache *); | |
32 | extern struct bcache *psymbol_bcache_get_bcache (struct psymbol_bcache *); | |
cbd70537 | 33 | |
ccefe4c4 TT |
34 | extern const struct quick_symbol_functions psym_functions; |
35 | ||
9291a0cd | 36 | extern const struct quick_symbol_functions dwarf2_gdb_index_functions; |
927aa2e7 | 37 | extern const struct quick_symbol_functions dwarf2_debug_names_functions; |
9291a0cd | 38 | |
b22a7c6a TT |
39 | /* A range adapter that makes it possible to iterate over all |
40 | psymtabs in one objfile. */ | |
41 | ||
42 | class objfile_psymtabs : public next_adapter<struct partial_symtab> | |
43 | { | |
44 | public: | |
45 | ||
46 | explicit objfile_psymtabs (struct objfile *objfile) | |
47 | : next_adapter<struct partial_symtab> (objfile->psymtabs) | |
48 | { | |
49 | } | |
50 | }; | |
51 | ||
b11896a5 TT |
52 | /* Ensure that the partial symbols for OBJFILE have been loaded. If |
53 | VERBOSE is non-zero, then this will print a message when symbols | |
b22a7c6a TT |
54 | are loaded. This function returns a range adapter suitable for |
55 | iterating over the psymtabs of OBJFILE. */ | |
b11896a5 | 56 | |
b22a7c6a TT |
57 | extern objfile_psymtabs require_partial_symbols (struct objfile *objfile, |
58 | int verbose); | |
b11896a5 | 59 | |
ccefe4c4 | 60 | #endif /* PSYMTAB_H */ |