This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 *);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]