This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: two mdebugread-related cleanups
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 02 Jan 2013 11:50:47 -0700
- Subject: FYI: two mdebugread-related cleanups
I'm checking this in as obvious.
This is two minor mdebugread-related cleanups.
First, objfiles.c doesn't need to include mdebugread.h.
Second, struct ecoff_debug_hack is dead.
Tested by rebuilding.
Tom
2013-01-02 Tom Tromey <tromey@redhat.com>
* symfile.h (struct ecoff_debug_hack): Remove.
* objfiles.c: Don't include mdebugread.h.
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index a3fe265..0f14f8f 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -30,7 +30,6 @@
#include "gdb-stabs.h"
#include "target.h"
#include "bcache.h"
-#include "mdebugread.h"
#include "expression.h"
#include "parser-defs.h"
diff --git a/gdb/symfile.h b/gdb/symfile.h
index fb58464..4abcf38 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -676,13 +676,6 @@ void dwarf2_free_objfile (struct objfile *);
/* From mdebugread.c */
-/* Hack to force structures to exist before use in parameter list. */
-struct ecoff_debug_hack
-{
- struct ecoff_debug_swap *a;
- struct ecoff_debug_info *b;
-};
-
extern void mdebug_build_psymtabs (struct objfile *,
const struct ecoff_debug_swap *,
struct ecoff_debug_info *);