summaryrefslogtreecommitdiff
path: root/gdb/psympriv.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-09-14 22:50:28 +0000
committerTom Tromey <tromey@redhat.com>2010-09-14 22:50:28 +0000
commit80e7c8457cb26d08bc9666bd2c8ea6345ebfde06 (patch)
tree8c5549620a7b27dde3a132a47761aab3d5909c49 /gdb/psympriv.h
parent064df19323c9f55c65f71212acc36fc0ca96d922 (diff)
downloadgdb-80e7c8457cb26d08bc9666bd2c8ea6345ebfde06.tar.gz
* psympriv.h (add_psymbol_to_list, init_psymbol_list)
(start_psymtab_common, allocate_psymtab, discard_psymtab): Declare. * symfile.h (extend_psymbol_list): Remove. (add_psymbol_to_list, init_psymbol_list, start_psymtab_common) (allocate_psymtab, discard_psymtab): Move to psympriv.h. * psymtab.c (extend_psymbol_list): Move earlier. Now static.
Diffstat (limited to 'gdb/psympriv.h')
-rw-r--r--gdb/psympriv.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/gdb/psympriv.h b/gdb/psympriv.h
index 52f6e03c69a..e0ea839838a 100644
--- a/gdb/psympriv.h
+++ b/gdb/psympriv.h
@@ -1,6 +1,6 @@
/* Private partial symbol table definitions.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009, 2010 Free Software Foundation, Inc.
This file is part of GDB.
@@ -22,6 +22,8 @@
#include "psymtab.h"
+struct psymbol_allocation_list;
+
/* A partial_symbol records the name, domain, and address class of
symbols whose types we have not parsed yet. For functions, it also
contains their memory address, so we can find them from a PC value.
@@ -151,6 +153,28 @@ struct partial_symtab
extern void sort_pst_symbols (struct partial_symtab *);
+/* Add any kind of symbol to a psymbol_allocation_list. */
+
+extern const
+struct partial_symbol *add_psymbol_to_list (char *, int, int, domain_enum,
+ enum address_class,
+ struct psymbol_allocation_list *,
+ long, CORE_ADDR,
+ enum language, struct objfile *);
+
+extern void init_psymbol_list (struct objfile *, int);
+
+extern struct partial_symtab *start_psymtab_common (struct objfile *,
+ struct section_offsets *,
+ const char *, CORE_ADDR,
+ struct partial_symbol **,
+ struct partial_symbol **);
+
+extern struct partial_symtab *allocate_psymtab (const char *,
+ struct objfile *);
+
+extern void discard_psymtab (struct partial_symtab *);
+
/* Traverse all psymtabs in one objfile. */
#define ALL_OBJFILE_PSYMTABS(objfile, p) \