summaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-06-14 16:49:40 +0000
committerTom Tromey <tromey@redhat.com>2011-06-14 16:49:40 +0000
commit58e3cb7a5d561b5070f99a860bfa8ad498b5bcb4 (patch)
treecdb026d3b7c633f28204fef54cb3cb9b608051c3 /gdb/mdebugread.c
parent35d1f5b056044c054d80327449933ac5a87695a0 (diff)
downloadgdb-58e3cb7a5d561b5070f99a860bfa8ad498b5bcb4.tar.gz
* 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/mdebugread.c')
-rw-r--r--gdb/mdebugread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index ae77ebd0838..465ee2d724e 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -78,6 +78,11 @@ extern void _initialize_mdebugread (void);
case the symbol's ELF section could not be represented in ECOFF. */
#define ECOFF_IN_ELF(bfd) (bfd_get_flavour (bfd) == bfd_target_elf_flavour \
&& bfd_get_section_by_name (bfd, ".mdebug") != NULL)
+
+/* The objfile we are currently reading. */
+
+static struct objfile *current_objfile;
+
/* We put a pointer to this structure in the read_symtab_private field