diff options
Diffstat (limited to 'gdb/mips-linux-tdep.c')
-rw-r--r-- | gdb/mips-linux-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c index b7d8dad..4b773d5 100644 --- a/gdb/mips-linux-tdep.c +++ b/gdb/mips-linux-tdep.c @@ -1054,13 +1054,13 @@ mips_linux_n32n64_sigframe_init (const struct tramp_frame *self, } static void -mips_linux_write_pc (CORE_ADDR pc, ptid_t ptid) +mips_linux_write_pc (struct regcache *regcache, CORE_ADDR pc) { - write_register_pid (PC_REGNUM, pc, ptid); + regcache_cooked_write_unsigned (regcache, PC_REGNUM, pc); /* Clear the syscall restart flag. */ if (mips_linux_restart_reg_p (current_gdbarch)) - write_register_pid (MIPS_RESTART_REGNUM, 0, ptid); + regcache_cooked_write_unsigned (regcache, MIPS_RESTART_REGNUM, 0); } /* Return 1 if MIPS_RESTART_REGNUM is usable. */ |