aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-06-14 16:49:41 +0000
committerTom Tromey <tromey@redhat.com>2011-06-14 16:49:41 +0000
commit91a81f69725a53644fb008a7066269020b8d2aa1 (patch)
tree76ea0bac4ce0f9b90a734a141f56767c81cdaf40 /gdb/objfiles.h
parent4d16d5754ec1e71d5e0b590a5b0ecdda95892f14 (diff)
downloadfsf-binutils-gdb-91a81f69725a53644fb008a7066269020b8d2aa1.zip
fsf-binutils-gdb-91a81f69725a53644fb008a7066269020b8d2aa1.tar.gz
fsf-binutils-gdb-91a81f69725a53644fb008a7066269020b8d2aa1.tar.bz2
* symtab.h (current_objfile): Don't declare.
* objfiles.h (current_objfile): Don't declare. * objfiles.c (current_objfile): Remove. * mdebugread.c (current_objfile): New file-scope global. * dbxread.c (current_objfile): New file-scope global. * coffread.c (current_objfile): New file-scope global.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 6a9a2fd..bb28dc1 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -439,21 +439,6 @@ struct objfile
extern struct objfile *rt_common_objfile;
-/* When we need to allocate a new type, we need to know which objfile_obstack
- to allocate the type on, since there is one for each objfile. The places
- where types are allocated are deeply buried in function call hierarchies
- which know nothing about objfiles, so rather than trying to pass a
- particular objfile down to them, we just do an end run around them and
- set current_objfile to be whatever objfile we expect to be using at the
- time types are being allocated. For instance, when we start reading
- symbols for a particular objfile, we set current_objfile to point to that
- objfile, and when we are done, we set it back to NULL, to ensure that we
- never put a type someplace other than where we are expecting to put it.
- FIXME: Maybe we should review the entire type handling system and
- see if there is a better way to avoid this problem. */
-
-extern struct objfile *current_objfile;
-
/* Declarations for functions defined in objfiles.c */
extern struct objfile *allocate_objfile (bfd *, int);