2004-10-31 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Sun, 31 Oct 2004 16:31:50 +0000 (16:31 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 31 Oct 2004 16:31:50 +0000 (16:31 +0000)
* mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.

gdb/ChangeLog
gdb/mdebugread.c

index b06a2462f050a19a9e83d5c221fcea9ad1665f4c..2eef4ee337bc946e4306a13250c18d44a71e12c4 100644 (file)
@@ -1,5 +1,7 @@
 2004-10-31  Andrew Cagney  <cagney@gnu.org>
 
+       * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
+
        * mips-tdep.c (mips_ignore_helper): Delete.
        * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
        * infrun.c (handle_inferior_event): Delete #ifdef
index 26b9de6c71ad0428c0bcf77477cf33d24791f064..ba9c064638ecf1c4491479683fa23dca9cafd2af 100644 (file)
@@ -63,9 +63,6 @@
 
 #ifndef MDEBUG_EFI_SYMBOL_NAME
 #define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
-#ifndef RA_REGNUM
-#define RA_REGNUM 0
-#endif
 #endif
 
 #include "gdb_stat.h"
@@ -1977,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;
        }