diff options
author | Joel Brobecker <brobecker@gnat.com> | 2013-04-29 10:08:46 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2013-04-29 10:08:46 +0000 |
commit | d27b54adf344d76a74b0d4c8bdc7daebd19caf32 (patch) | |
tree | 2c5b3600227420836cc57cd3d4eccf0bb0f42083 | |
parent | b385a60dc43ac7615b7eaf77e2c5afea4ecc55c7 (diff) | |
download | binutils-d27b54adf344d76a74b0d4c8bdc7daebd19caf32.zip binutils-d27b54adf344d76a74b0d4c8bdc7daebd19caf32.tar.gz binutils-d27b54adf344d76a74b0d4c8bdc7daebd19caf32.tar.bz2 |
Use gdbarch_pc_regnum instead of gdbarch_write_pc.
gdb/ChangeLog:
* m32r-tdep.c (m32r_write_pc): Delete.
(m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
Add call to set_gdbarch_pc_regnum.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/m32r-tdep.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9839e52..4d208ca 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -4,6 +4,12 @@ editCase function rule. (get_DW_AT_signature_type): Likewise. +2013-04-29 Joel Brobecker <brobecker@adacore.com> + + * m32r-tdep.c (m32r_write_pc): Delete. + (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc. + Add call to set_gdbarch_pc_regnum. + 2013-04-29 Pierre Muller <muller@sourceware.org> * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error. diff --git a/gdb/m32r-tdep.c b/gdb/m32r-tdep.c index ad752ce..d96ebed 100644 --- a/gdb/m32r-tdep.c +++ b/gdb/m32r-tdep.c @@ -667,12 +667,6 @@ m32r_read_pc (struct regcache *regcache) return pc; } -static void -m32r_write_pc (struct regcache *regcache, CORE_ADDR val) -{ - regcache_cooked_write_unsigned (regcache, M32R_PC_REGNUM, val); -} - static CORE_ADDR m32r_unwind_sp (struct gdbarch *gdbarch, struct frame_info *next_frame) { @@ -927,10 +921,10 @@ m32r_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) gdbarch = gdbarch_alloc (&info, tdep); set_gdbarch_read_pc (gdbarch, m32r_read_pc); - set_gdbarch_write_pc (gdbarch, m32r_write_pc); set_gdbarch_unwind_sp (gdbarch, m32r_unwind_sp); set_gdbarch_num_regs (gdbarch, M32R_NUM_REGS); + set_gdbarch_pc_regnum (gdbarch, M32R_PC_REGNUM); set_gdbarch_sp_regnum (gdbarch, M32R_SP_REGNUM); set_gdbarch_register_name (gdbarch, m32r_register_name); set_gdbarch_register_type (gdbarch, m32r_register_type); |