2004-10-31 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / mdebugread.c
index a930dbe8bee468760d5e1a36e4da9a16175bdb33..ba9c064638ecf1c4491479683fa23dca9cafd2af 100644 (file)
 #include "gdb_assert.h"
 #include "block.h"
 #include "dictionary.h"
+#include "mdebugread.h"
 
 /* These are needed if the tm.h file does not contain the necessary
    mips specific definitions.  */
 
 #ifndef MDEBUG_EFI_SYMBOL_NAME
 #define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
-extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR);
-#include "coff/sym.h"
-#include "coff/symconst.h"
-struct mdebug_extra_func_info
-{
-  long numargs;
-  PDR pdr;
-};
-#ifndef RA_REGNUM
-#define RA_REGNUM 0
-#endif
 #endif
 
 #include "gdb_stat.h"
@@ -1984,7 +1974,11 @@ parse_procedure (PDR *pr, struct symtab *search_symtab,
          && strcmp (sh_name, "setjmp") == 0)
        {
          complaint (&symfile_complaints, "fixing bad setjmp PDR from libc");
+#ifdef RA_REGNUM
          e->pdr.pcreg = RA_REGNUM;
+#else
+         e->pdr.pcreg = 0;
+#endif
          e->pdr.regmask = 0x80000000;
          e->pdr.regoffset = -4;
        }
This page took 0.02319 seconds and 4 git commands to generate.