aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.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/dbxread.c
parent4d16d5754ec1e71d5e0b590a5b0ecdda95892f14 (diff)
downloadgdb-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/dbxread.c')
-rw-r--r--gdb/dbxread.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 51ddd9d..5b57507 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -1,6 +1,6 @@
/* Read dbx symbol tables and convert to internal format, for GDB.
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
- 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2008, 2009, 2010.
+ 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2008, 2009, 2010, 2011.
Free Software Foundation, Inc.
This file is part of GDB.
@@ -105,6 +105,10 @@ struct symloc
#define FILE_STRING_OFFSET(p) (SYMLOC(p)->file_string_offset)
+/* The objfile we are currently reading. */
+
+static struct objfile *current_objfile;
+
/* Remember what we deduced to be the source language of this psymtab. */
static enum language psymtab_language = language_unknown;