diff options
author | Tom Tromey <tromey@redhat.com> | 2011-06-14 16:49:41 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-06-14 16:49:41 +0000 |
commit | 91a81f69725a53644fb008a7066269020b8d2aa1 (patch) | |
tree | 76ea0bac4ce0f9b90a734a141f56767c81cdaf40 /gdb/mdebugread.c | |
parent | 4d16d5754ec1e71d5e0b590a5b0ecdda95892f14 (diff) | |
download | gdb-91a81f69725a53644fb008a7066269020b8d2aa1.zip gdb-91a81f69725a53644fb008a7066269020b8d2aa1.tar.gz 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/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index ae77ebd..465ee2d 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 |