capstone/arch
Disconnect3d 6e29dfa2c0 Fix arm thb instruction shift value (#1330)
* Fixes #1317 - arm thb operand.shift.value

For a more detailed description, see issue #1317.

Release 4.0.0 introduced a new field for ARM operands:
`operand.mem.lshift`. This field was supposed to be a bug fix for #246.
The #246 issue has been fixed in the meantime and the proper shift value
was stored in `operand.shift.value`.

The 4.0.0 changes created a regression in which `operand.shift.value`
was not set for a `tbh [r0, r1, lsl #1]` instruction on ARM and the
value was set in a `operand.mem.lshift` field instead.

As the regression broke some of users codebase (e.g. in
[manticore](https://github.com/trailofbits/manticore/pull/1312) project), we fix it by setting
`operand.shift.value` back again.

As a result, the shift value is set in two fields: `operand.shift.value`
and `operand.mem.lshift`. As the `operand.shift` also stores a `.type`
field, we might want to deprecate `operand.mem.lshift` in the future.

* Add changelog stub
2019-01-02 09:51:22 +08:00
..
AArch64 arch/M68k: do not return reg_name if beyond limits (#1219) 2018-07-24 16:25:47 +08:00
ARM Fix arm thb instruction shift value (#1330) 2019-01-02 09:51:22 +08:00
EVM evm: fix EVMMappingInsn.inc 2018-07-29 02:38:10 +08:00
M68K arch/M68k: do not return reg_name if beyond limits (#1219) 2018-07-24 16:25:47 +08:00
M680X M680X: lowercase for registers & FCB instruction 2018-12-18 22:44:12 +08:00
Mips arch/M68k: do not return reg_name if beyond limits (#1219) 2018-07-24 16:25:47 +08:00
PowerPC PPC: print 16bit imm as unsigned 2018-11-25 21:12:05 +07:00
Sparc Correct use of strncpy function (#1247) 2018-09-15 13:47:52 +08:00
SystemZ arch/M68k: do not return reg_name if beyond limits (#1219) 2018-07-24 16:25:47 +08:00
TMS320C64x TMS320C64x: lowercase for instruction mnemonics, registers & group names 2018-12-18 22:40:31 +08:00
X86 x86: fix endbr32 & endbr64 in #1129 2018-12-20 02:54:44 +08:00
XCore arch/M68k: do not return reg_name if beyond limits (#1219) 2018-07-24 16:25:47 +08:00