aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsnbsd-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mipsnbsd-nat.c')
-rw-r--r--gdb/mipsnbsd-nat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/mipsnbsd-nat.c b/gdb/mipsnbsd-nat.c
index 721b4a0..44ccb3c 100644
--- a/gdb/mipsnbsd-nat.c
+++ b/gdb/mipsnbsd-nat.c
@@ -36,7 +36,8 @@
static int
getregs_supplies (int regno)
{
- return ((regno) >= MIPS_ZERO_REGNUM && (regno) <= PC_REGNUM);
+ return ((regno) >= MIPS_ZERO_REGNUM
+ && (regno) <= gdbarch_pc_regnum (current_gdbarch));
}
static void
@@ -55,7 +56,7 @@ mipsnbsd_fetch_inferior_registers (struct regcache *regcache, int regno)
return;
}
- if (regno == -1 || regno >= FP0_REGNUM)
+ if (regno == -1 || regno >= gdbarch_fp0_regnum (current_gdbarch))
{
struct fpreg fpregs;
@@ -88,7 +89,7 @@ mipsnbsd_store_inferior_registers (struct regcache *regcache, int regno)
return;
}
- if (regno == -1 || regno >= FP0_REGNUM)
+ if (regno == -1 || regno >= gdbarch_fp0_regnum (current_gdbarch))
{
struct fpreg fpregs;