aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.h
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-05-18 12:43:05 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-05-18 12:43:05 +0000
commit5a4398495b075cef77112aed5e98a6dddf3ee5b8 (patch)
tree7af7258348b0a68537a938dd2f613cc919a36e08 /gdb/mips-tdep.h
parent8376de048fc9f00d83730a284169858864a10c90 (diff)
downloadfsf-binutils-gdb-5a4398495b075cef77112aed5e98a6dddf3ee5b8.zip
fsf-binutils-gdb-5a4398495b075cef77112aed5e98a6dddf3ee5b8.tar.gz
fsf-binutils-gdb-5a4398495b075cef77112aed5e98a6dddf3ee5b8.tar.bz2
* 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.
Diffstat (limited to 'gdb/mips-tdep.h')
-rw-r--r--gdb/mips-tdep.h3
1 files changed, 3 insertions, 0 deletions
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;