Support CBNZ, CBZ, REV, REV16 and REVSH in arm process record
authorYao Qi <yao.qi@linaro.org>
Thu, 16 Mar 2017 16:35:18 +0000 (16:35 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 16 Mar 2017 16:35:18 +0000 (16:35 +0000)
This patch adds the support for these instructions in arm process
record.

gdb:

2017-03-16  Yao Qi  <yao.qi@linaro.org>

* arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
and REVSH instructions.

gdb/ChangeLog
gdb/arm-tdep.c

index 07578fc5a3f494e17bfc8d660bf8354676636d4a..8bc3aecb6db6c8e9b010bf54e446a2ac9340cf82 100644 (file)
@@ -1,3 +1,8 @@
+2017-03-16  Yao Qi  <yao.qi@linaro.org>
+
+       * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
+       and REVSH instructions.
+
 2017-03-16  Yao Qi  <yao.qi@linaro.org>
 
        * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
index 8135c842d9b74891ac3889f9133800975542f6fe..98d8e0e5bbe0fd02ad93c6b14988f258a560f434 100644 (file)
@@ -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:
This page took 0.033671 seconds and 4 git commands to generate.