diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-05-18 12:43:04 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-05-18 12:43:04 +0000 |
commit | 0de57761edd371e460ff8722b4e072ded309447e (patch) | |
tree | b66215df2594be5a7ea6bee0de7af2eb5e6ad2a2 /gdb/mips-tdep.c | |
parent | e00eef26cedbe11f00e3b79ee5175160ed06299b (diff) | |
download | gdb-0de57761edd371e460ff8722b4e072ded309447e.tar.gz |
* 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 37f4041a8b8..6d31b39b7dd 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)); |