diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-05-18 12:43:05 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-05-18 12:43:05 +0000 |
commit | 5a4398495b075cef77112aed5e98a6dddf3ee5b8 (patch) | |
tree | 7af7258348b0a68537a938dd2f613cc919a36e08 /gdb/mips-tdep.c | |
parent | 8376de048fc9f00d83730a284169858864a10c90 (diff) | |
download | gdb-5a4398495b075cef77112aed5e98a6dddf3ee5b8.zip gdb-5a4398495b075cef77112aed5e98a6dddf3ee5b8.tar.gz 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.c')
-rw-r--r-- | gdb/mips-tdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 37f4041..6d31b39 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -1141,7 +1141,9 @@ mips_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame) get_frame_pc (this_frame)); } -static void +/* Implement the "write_pc" gdbarch method. */ + +void mips_write_pc (struct regcache *regcache, CORE_ADDR pc) { int regnum = gdbarch_pc_regnum (get_regcache_arch (regcache)); |