This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 3/3] Support CBNZ, CBZ, REV, REV16 and REVSH in arm process record
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 3 Mar 2017 22:06:36 +0000
- Subject: [PATCH 3/3] Support CBNZ, CBZ, REV, REV16 and REVSH in arm process record
- Authentication-results: sourceware.org; auth=none
- References: <1488578796-4481-1-git-send-email-yao.qi@linaro.org>
This patch adds the support for these instructions in arm process
record.
gdb:
2017-03-03 Yao Qi <yao.qi@linaro.org>
* arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
and REVSH instructions.
---
gdb/arm-tdep.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 8135c84..98d8e0e 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -11979,7 +11979,6 @@ thumb_record_misc (insn_decode_record *thumb_insn_r)
case 9: /* fall through */
case 11:
/* CBNZ, CBZ */
- return -1;
break;
case 2:
/* SXTH, SXTB, UXTH, UXTB */
@@ -12012,7 +12011,8 @@ thumb_record_misc (insn_decode_record *thumb_insn_r)
break;
case 10:
/* REV, REV16, REVSH */
- return -1;
+ record_buf[0] = bits (thumb_insn_r->arm_insn, 0, 2);
+ thumb_insn_r->reg_rec_count = 1;
break;
case 12: /* fall through */
case 13:
--
1.9.1