diff options
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 0597191..3ef2fc0 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -4434,7 +4434,7 @@ deprecated_mips_set_processor_regs_hack (void) struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); ULONGEST prid; - regcache_cooked_read_unsigned (current_regcache, + regcache_cooked_read_unsigned (get_current_regcache (), MIPS_PRID_REGNUM, &prid); if ((prid & ~0xf) == 0x700) tdep->mips_processor_reg_names = mips_r3041_reg_names; |