| @@ -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) ®s, TIDGET (inferior_ptid)) == -1) | | 83 | (PTRACE_TYPE_ARG3) ®s, 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 *) ®s, regno); | | 86 | mipsnbsd_fill_reg (regcache, (char *) ®s, regno); |
87 | | | 87 | |
88 | if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), | | 88 | if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), |
89 | (PTRACE_TYPE_ARG3) ®s, TIDGET (inferior_ptid).) == -1) | | 89 | (PTRACE_TYPE_ARG3) ®s, 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) |