diff options
Diffstat (limited to 'gdb/alpha-linux-nat.c')
-rw-r--r-- | gdb/alpha-linux-nat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/alpha-linux-nat.c b/gdb/alpha-linux-nat.c index cebabde..aafd198 100644 --- a/gdb/alpha-linux-nat.c +++ b/gdb/alpha-linux-nat.c @@ -86,14 +86,14 @@ fill_fpregset (const struct regcache *regcache, static CORE_ADDR alpha_linux_register_u_offset (struct gdbarch *gdbarch, int regno, int store_p) { - if (regno == PC_REGNUM) + if (regno == gdbarch_pc_regnum (current_gdbarch)) return PC; if (regno == ALPHA_UNIQUE_REGNUM) return ALPHA_UNIQUE_PTRACE_ADDR; - if (regno < FP0_REGNUM) + if (regno < gdbarch_fp0_regnum (current_gdbarch)) return GPR_BASE + regno; else - return FPR_BASE + regno - FP0_REGNUM; + return FPR_BASE + regno - gdbarch_fp0_regnum (current_gdbarch); } void _initialialize_alpha_linux_nat (void); |