[PATCH] Fix gdb build failure for mips-linux

Thiemo Seufer ths@networkno.de
Fri Jan 5 16:12:00 GMT 2007


Hello All,

the appended patch fixes the initialization of mips_linux_n64_rt_sigframe,
the old version fails to build with gcc-4.1.


Thiemo


2007-01-05  Thiemo Seufer  <ths@mips.com>

	* mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
	initialization.


Index: gdb/mips-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-linux-tdep.c,v
retrieving revision 1.47
diff -u -p -r1.47 mips-linux-tdep.c
--- gdb/mips-linux-tdep.c	28 Nov 2006 21:41:02 -0000	1.47
+++ gdb/mips-linux-tdep.c	5 Jan 2007 16:02:55 -0000
@@ -799,9 +799,11 @@ static const struct tramp_frame mips_lin
 static const struct tramp_frame mips_linux_n64_rt_sigframe = {
   SIGTRAMP_FRAME,
   4,
-  { MIPS_INST_LI_V0_N64_RT_SIGRETURN,
-    MIPS_INST_SYSCALL,
-    TRAMP_SENTINEL_INSN },
+  {
+    { MIPS_INST_LI_V0_N64_RT_SIGRETURN, -1 },
+    { MIPS_INST_SYSCALL, -1 },
+    { TRAMP_SENTINEL_INSN, -1 }
+  },
   mips_linux_n32n64_sigframe_init
 };
 



More information about the Gdb-patches mailing list