summaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-10-31 16:31:50 +0000
committerAndrew Cagney <cagney@redhat.com>2004-10-31 16:31:50 +0000
commitf2ea1e6b533e15ee6c3913bc8967dc50ec830a3e (patch)
treeeeb2d27f299aa01b1c5b1e65f31aa12d5d9c1b6d /gdb/mdebugread.c
parentc624106cfa0821a0f550286738ecb219996ef4d5 (diff)
downloadgdb-f2ea1e6b533e15ee6c3913bc8967dc50ec830a3e.tar.gz
2004-10-31 Andrew Cagney <cagney@gnu.org>
* mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 26b9de6c71a..ba9c064638e 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -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;
}