From 5a4398495b075cef77112aed5e98a6dddf3ee5b8 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Fri, 18 May 2012 12:43:05 +0000 Subject: * mips-tdep.h (mips_write_pc): New prototype. * mips-tdep.c (mips_write_pc): Make external, add description. * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc, add description. --- gdb/mips-tdep.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/mips-tdep.h') diff --git a/gdb/mips-tdep.h b/gdb/mips-tdep.h index 72cc49a..9dd4541 100644 --- a/gdb/mips-tdep.h +++ b/gdb/mips-tdep.h @@ -159,6 +159,9 @@ extern int mips_pc_is_mips16 (bfd_vma memaddr); /* Return the currently configured (or set) saved register size. */ extern unsigned int mips_abi_regsize (struct gdbarch *gdbarch); +/* Make PC the address of the next instruction to execute. */ +extern void mips_write_pc (struct regcache *regcache, CORE_ADDR pc); + /* Target descriptions which only indicate the size of general registers. */ extern struct target_desc *mips_tdesc_gp32; -- cgit v1.1