aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-10-08 19:00:38 +0000
committerFred Fish <fnf@specifix.com>1996-10-08 19:00:38 +0000
commita7f56d5afff33782446a186cb1519e9416328799 (patch)
tree1577317b0d00b5f13775d9c5a1528dfcf317bc18 /gdb/buildsym.h
parent1c4794f58f892986b25fcf390c4e967bda6e19fa (diff)
downloadfsf-binutils-gdb-a7f56d5afff33782446a186cb1519e9416328799.zip
fsf-binutils-gdb-a7f56d5afff33782446a186cb1519e9416328799.tar.gz
fsf-binutils-gdb-a7f56d5afff33782446a186cb1519e9416328799.tar.bz2
Just some cleanups noticed while working on PR 10760
* dbxread.c (dbx_symfile_read): Call free_pending_blocks rather than poking global variable (which is now static). * hpread.c (hpread_build_psymtabs): Ditto. * os9kread.c (os9k_symfile_read): Ditto. * xcoffread.c (xcoff_initial_scan): Ditto. * buildsym.h (free_pending_blocks): Declare here. (pending_blocks): Remove declaration of global symbol. (free_pendings): Remove declaration of global symbol. (make_blockvector): Declare here. (record_pending_block): Declare here. * dstread.c (make_blockvector): Remove static copy that was old clone of version in buildsym.c. (process_dst_block): Call record_pending_block rather than doing it by hand. (read_dst_symtab): Ditto. * buildsym.c (make_blockvector): Make global rather than static, (record_pending_block): New function, code moved from finish_block. (finish_block): Use record_pending_block. (free_pending_blocks): New function. (really_free_pendings): Call free_pending_blocks. (pending_blocks): Make static instead of global. (free_pendings): Make static instead of global.
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r--gdb/buildsym.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 58529c7..b50f9d8 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -96,10 +96,6 @@ struct pending
struct symbol *symbol[PENDINGSIZE];
};
-/* List of free `struct pending' structures for reuse. */
-
-EXTERN struct pending *free_pendings;
-
/* Here are the three lists that symbols are put on. */
EXTERN struct pending *file_symbols; /* static at top level, and types */
@@ -169,8 +165,6 @@ struct pending_block
struct block *block;
};
-EXTERN struct pending_block *pending_blocks;
-
struct subfile_stack
{
@@ -254,6 +248,22 @@ start_symtab PARAMS ((char *, char *, CORE_ADDR));
extern int
hashname PARAMS ((char *));
+extern void
+free_pending_blocks PARAMS ((void));
+
+/* FIXME: Note that this is used only in buildsym.c and dstread.c,
+ which should be fixed to not need direct access to make_blockvector. */
+
+extern struct blockvector *
+make_blockvector PARAMS ((struct objfile *));
+
+/* FIXME: Note that this is used only in buildsym.c and dstread.c,
+ which should be fixed to not need direct access to record_pending_block. */
+
+extern void
+record_pending_block PARAMS ((struct objfile *, struct block *,
+ struct pending_block *));
+
#undef EXTERN
#endif /* defined (BUILDSYM_H) */