aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-11-22 14:05:05 +0000
committerYao Qi <yao.qi@linaro.org>2016-11-22 14:05:05 +0000
commitad76968956f30bed6d120e0dfd247034e0855fea (patch)
tree8adf0a100ad2d5ebe2bf7dd1005a9087948bb8b0 /gdb
parentcd76b525eda02c30c4412698a2ff309b975d417a (diff)
downloadgdb-ad76968956f30bed6d120e0dfd247034e0855fea.zip
gdb-ad76968956f30bed6d120e0dfd247034e0855fea.tar.gz
gdb-ad76968956f30bed6d120e0dfd247034e0855fea.tar.bz2
gdbarch software_single_step frame_info to regcache: s390
gdb: 2016-11-22 Yao Qi <yao.qi@linaro.org> * s390-linux-tdep.c (s390_software_single_step): Call get_regcache_arch instead of get_frame_arch. Call regcache_read_pc instead of get_frame_pc.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/s390-linux-tdep.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b3931c3..9898c8f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2016-11-22 Yao Qi <yao.qi@linaro.org>
+ * s390-linux-tdep.c (s390_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>
+
* sparc-tdep.c (sparc_analyze_control_transfer): Replace parameter
frame with regcache. Call get_current_frame.
(sparc_software_single_step): Call get_regcache_arch instead of
diff --git a/gdb/s390-linux-tdep.c b/gdb/s390-linux-tdep.c
index 885aadd..dc5c674 100644
--- a/gdb/s390-linux-tdep.c
+++ b/gdb/s390-linux-tdep.c
@@ -725,9 +725,9 @@ s390_is_partial_instruction (struct gdbarch *gdbarch, CORE_ADDR loc, int *len)
static VEC (CORE_ADDR) *
s390_software_single_step (struct frame_info *frame)
{
- struct gdbarch *gdbarch = get_frame_arch (frame);
- struct address_space *aspace = get_frame_address_space (frame);
- CORE_ADDR loc = get_frame_pc (frame);
+ struct regcache *regcache = get_current_regcache ();
+ struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ CORE_ADDR loc = regcache_read_pc (regcache);
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
int len;
uint16_t insn;