Sun Feb 5 13:26:01 2012 UTC ()
Fix build of gdb7 for mips. It's not used at present.


(skrll)
diff -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/mipsnbsd-nat.c

cvs diff -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/Attic/mipsnbsd-nat.c (expand / switch to unified diff)

--- src/external/gpl3/gdb/dist/gdb/Attic/mipsnbsd-nat.c 2012/01/22 20:27:28 1.2
+++ src/external/gpl3/gdb/dist/gdb/Attic/mipsnbsd-nat.c 2012/02/05 13:26:01 1.3
@@ -76,27 +76,27 @@ mipsnbsd_store_inferior_registers (struc @@ -76,27 +76,27 @@ mipsnbsd_store_inferior_registers (struc
76{ 76{
77 struct gdbarch *gdbarch = get_regcache_arch (regcache); 77 struct gdbarch *gdbarch = get_regcache_arch (regcache);
78 if (regno == -1 || getregs_supplies (gdbarch, regno)) 78 if (regno == -1 || getregs_supplies (gdbarch, regno))
79 { 79 {
80 struct reg regs; 80 struct reg regs;
81 81
82 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), 82 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
83 (PTRACE_TYPE_ARG3) &regs, TIDGET (inferior_ptid)) == -1) 83 (PTRACE_TYPE_ARG3) &regs, TIDGET (inferior_ptid)) == -1)
84 perror_with_name (_("Couldn't get registers")); 84 perror_with_name (_("Couldn't get registers"));
85 85
86 mipsnbsd_fill_reg (regcache, (char *) &regs, regno); 86 mipsnbsd_fill_reg (regcache, (char *) &regs, regno);
87 87
88 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),  88 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
89 (PTRACE_TYPE_ARG3) &regs, TIDGET (inferior_ptid).) == -1) 89 (PTRACE_TYPE_ARG3) &regs, TIDGET (inferior_ptid)) == -1)
90 perror_with_name (_("Couldn't write registers")); 90 perror_with_name (_("Couldn't write registers"));
91 91
92 if (regno != -1) 92 if (regno != -1)
93 return; 93 return;
94 } 94 }
95 95
96 if (regno == -1 96 if (regno == -1
97 || regno >= gdbarch_fp0_regnum (get_regcache_arch (regcache))) 97 || regno >= gdbarch_fp0_regnum (get_regcache_arch (regcache)))
98 { 98 {
99 struct fpreg fpregs;  99 struct fpreg fpregs;
100 100
101 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid), 101 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
102 (PTRACE_TYPE_ARG3) &fpregs, TIDGET (inferior_ptid)) == -1) 102 (PTRACE_TYPE_ARG3) &fpregs, TIDGET (inferior_ptid)) == -1)