diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-03-16 16:35:18 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-03-16 16:35:18 +0000 |
commit | ba14f3792fe007bedd88b62e554c79258adc53d9 (patch) | |
tree | 1bbf581b42244cad5720ebe5deb1d6bc3826c760 /gdb | |
parent | b121eeb9971ebfceffc38e6131fdc15ec4188599 (diff) | |
download | binutils-gdb-ba14f3792fe007bedd88b62e554c79258adc53d9.tar.gz |
Support CBNZ, CBZ, REV, REV16 and REVSH in arm process record
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/arm-tdep.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 07578fc5a3f..8bc3aecb6db 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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". (arm_record_test): Declare. (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 8135c842d9b..98d8e0e5bbe 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: |