This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[oops] Tweak mdebugread.c to still build
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 31 Oct 2004 11:32:51 -0500
- Subject: [oops] Tweak mdebugread.c to still build
Missed this. mips now defines MDEBUG_EFI_SYMBOL_NAME but not RA_REGNUM.
committed as "obvious".
Andrew
2004-10-31 Andrew Cagney <cagney@gnu.org>
* mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
Index: mdebugread.c
===================================================================
RCS file: /cvs/src/src/gdb/mdebugread.c,v
retrieving revision 1.68
diff -p -u -r1.68 mdebugread.c
--- mdebugread.c 31 Oct 2004 04:33:13 -0000 1.68
+++ mdebugread.c 31 Oct 2004 16:31:06 -0000
@@ -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
&& 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;
}