arm: fix some more Thumb relative branch instructions. bug reported by Giovanni Nanomad Condello
diff --git a/arch/ARM/ARMInstPrinter.c b/arch/ARM/ARMInstPrinter.c
index 48cc946..aa6bc58 100644
--- a/arch/ARM/ARMInstPrinter.c
+++ b/arch/ARM/ARMInstPrinter.c
@@ -571,6 +571,7 @@
// to reflect absolute address.
// Note: in ARM, PC is always 2 instructions ahead, so we have to
// add 8 in ARM mode, or 4 in Thumb mode
+ // printf(">> opcode: %u\n", MCInst_getOpcode(MI));
if (ARM_rel_branch(MI->csh, MCInst_getOpcode(MI))) {
// only do this for relative branch
if (MI->csh->mode & CS_MODE_THUMB)
diff --git a/arch/ARM/ARMMapping.c b/arch/ARM/ARMMapping.c
index 8c18f4e..e979457 100644
--- a/arch/ARM/ARMMapping.c
+++ b/arch/ARM/ARMMapping.c
@@ -13614,6 +13614,9 @@
ARM_BL_pred,
ARM_BL,
ARM_BLXi,
+ ARM_tBL,
+ ARM_tB,
+ ARM_tBLXi,
0
};