+2019-01-10 Tom Tromey <tom@tromey.com>
+
+ * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
+ Don't declare.
+ * mipsread.c: Include mdebugread.h.
+ * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
+ Declare.
+ * elfread.c: Include mdebugread.h.
+
2019-01-09 Tom Tromey <tom@tromey.com>
* dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
#include "build-id.h"
#include "location.h"
#include "auxv.h"
+#include "mdebugread.h"
/* Forward declarations. */
extern const struct sym_fns elf_sym_fns_gdb_index;
#define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
+extern void mdebug_build_psymtabs (minimal_symbol_reader &,
+ struct objfile *,
+ const struct ecoff_debug_swap *,
+ struct ecoff_debug_info *);
+
+extern void elfmdebug_build_psymtabs (struct objfile *,
+ const struct ecoff_debug_swap *,
+ asection *);
+
#endif /* MDEBUGREAD_H */
#include "symtab.h"
#include "objfiles.h"
#include "stabsread.h"
+#include "mdebugread.h"
#include "coff/sym.h"
#include "coff/internal.h"
extern void dwarf2_build_psymtabs (struct objfile *);
extern void dwarf2_build_frame_info (struct objfile *);
-/* From mdebugread.c */
-
-extern void mdebug_build_psymtabs (minimal_symbol_reader &,
- struct objfile *,
- const struct ecoff_debug_swap *,
- struct ecoff_debug_info *);
-
-extern void elfmdebug_build_psymtabs (struct objfile *,
- const struct ecoff_debug_swap *,
- asection *);
+void dwarf2_free_objfile (struct objfile *);
/* From minidebug.c. */