diff options
Diffstat (limited to 'gdb/moxie-tdep.c')
-rw-r--r-- | gdb/moxie-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/moxie-tdep.c b/gdb/moxie-tdep.c index 81b19764135..710bb9090d0 100644 --- a/gdb/moxie-tdep.c +++ b/gdb/moxie-tdep.c @@ -108,7 +108,7 @@ static void moxie_store_return_value (struct type *type, struct regcache *regcache, const gdb_byte *valbuf) { - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); CORE_ADDR regval; int len = TYPE_LENGTH (type); @@ -298,7 +298,7 @@ moxie_process_readu (CORE_ADDR addr, gdb_byte *buf, static std::vector<CORE_ADDR> moxie_software_single_step (struct regcache *regcache) { - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); CORE_ADDR addr; gdb_byte buf[4]; uint16_t inst; @@ -482,7 +482,7 @@ static void moxie_extract_return_value (struct type *type, struct regcache *regcache, gdb_byte *dst) { - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); int len = TYPE_LENGTH (type); ULONGEST tmp; |