gdbarch software_single_step frame_info to regcache: moxie
authorYao Qi <yao.qi@linaro.org>
Tue, 22 Nov 2016 14:05:05 +0000 (14:05 +0000)
committerYao Qi <yao.qi@linaro.org>
Tue, 22 Nov 2016 14:05:05 +0000 (14:05 +0000)
gdb:

2016-11-22  Yao Qi  <yao.qi@linaro.org>

* moxie-tdep.c (moxie_software_single_step): Call
get_regcache_arch instead of get_frame_arch.  Call
regcache_read_pc instead of get_frame_pc.

gdb/ChangeLog
gdb/moxie-tdep.c

index 63cbd474fd2635d273a0a70475d9ea90a19768db..77f9887de3004828c968c0b1dbcc215f8b87331b 100644 (file)
@@ -1,3 +1,9 @@
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * moxie-tdep.c (moxie_software_single_step): Call
+       get_regcache_arch instead of get_frame_arch.  Call
+       regcache_read_pc instead of get_frame_pc.
+
 2016-11-22  Yao Qi  <yao.qi@linaro.org>
 
        * mips-tdep.c (mips32_bc1_pc): Replace parameter frame with
index b3419459c1f2bcef3d5770fdf09423a99a6acde6..90a6165ecc519fdebc3df6375df83251243b1ab8 100644 (file)
@@ -302,17 +302,17 @@ moxie_process_readu (CORE_ADDR addr, gdb_byte *buf,
 static VEC (CORE_ADDR) *
 moxie_software_single_step (struct frame_info *frame)
 {
-  struct gdbarch *gdbarch = get_frame_arch (frame);
+  struct regcache *regcache = get_current_regcache ();
+  struct gdbarch *gdbarch = get_regcache_arch (regcache);
   CORE_ADDR addr;
   gdb_byte buf[4];
   uint16_t inst;
   uint32_t tmpu32;
   ULONGEST fp;
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
-  struct regcache *regcache = get_current_regcache ();
   VEC (CORE_ADDR) *next_pcs = NULL;
 
-  addr = get_frame_pc (frame);
+  addr = regcache_read_pc (regcache);
 
   inst = (uint16_t) moxie_process_readu (addr, buf, 2, byte_order);
 
This page took 0.029895 seconds and 4 git commands to generate.