aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
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/coffread.c
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/coffread.c')
-rw-r--r--gdb/coffread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 16fd58f..dff4010 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -49,6 +49,10 @@
extern void _initialize_coffread (void);
+/* The objfile we are currently reading. */
+
+static struct objfile *current_objfile;
+
struct coff_symfile_info
{
file_ptr min_lineno_offset; /* Where in file lowest line#s are. */