Commit Graph

4147 Commits

Author SHA1 Message Date
Nguyen Anh Quynh 9cd94caa90 X86: turn some print functions to static. see #1342 2019-01-21 20:21:18 +08:00
Erik Hemming 5fdc7de0d9 Fix a couple of corner-cases with rarely used m68k instructions. (#1344)
* Bump the "cs_insn.bytes[]" size to 24 (from 16) to support M680x0 instructions with full EA (maximum 11 words)
Added a test for this in test_m68k.s

* Bump the "cs_detail.regs_read[]" size to 16 (from 12) to support M680x0 instructions with full REG_BITS (Dn+An = 16)

* m68k: use immediate mode syntax (#$0) for movem/fmovem instructions with empty register list

* update bindings to match changes to cs_insn and cs_detail
2019-01-21 17:42:28 +08:00
Erik Hemming cc2965bada Fix a couple of corner-cases with rarely used m68k instructions. (#1344)
* Bump the "cs_insn.bytes[]" size to 24 (from 16) to support M680x0 instructions with full EA (maximum 11 words)
Added a test for this in test_m68k.s

* Bump the "cs_detail.regs_read[]" size to 16 (from 12) to support M680x0 instructions with full REG_BITS (Dn+An = 16)

* m68k: use immediate mode syntax (#$0) for movem/fmovem instructions with empty register list

* update bindings to match changes to cs_insn and cs_detail
2019-01-21 17:42:01 +08:00
Erik Hemming a8559cfb78 Fix a couple of corner-cases with rarely used m68k instructions. (#1344)
* Bump the "cs_insn.bytes[]" size to 24 (from 16) to support M680x0 instructions with full EA (maximum 11 words)
Added a test for this in test_m68k.s

* Bump the "cs_detail.regs_read[]" size to 16 (from 12) to support M680x0 instructions with full REG_BITS (Dn+An = 16)

* m68k: use immediate mode syntax (#$0) for movem/fmovem instructions with empty register list

* update bindings to match changes to cs_insn and cs_detail
2019-01-21 16:55:05 +08:00
Nguyen Anh Quynh f52532a002 python: bump version to 4.0.1 2019-01-15 21:34:06 +08:00
rwmjones ad15637598 Fix include path in pkg-config for Makefile too (#1339). (#1340)
Commit 0a39b785d3 fixed the pkg-config include path when using cmake.
However it didn't fix it for the Makefile.  This fixes the Makefile
path.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2019-01-13 21:40:51 +08:00
rwmjones ff11fa2805 Fix include path in pkg-config for Makefile too (#1339). (#1340)
Commit 0a39b785d3 fixed the pkg-config include path when using cmake.
However it didn't fix it for the Makefile.  This fixes the Makefile
path.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2019-01-13 21:40:29 +08:00
rwmjones 02e33f8b92 Fix include path in pkg-config for Makefile too (#1339). (#1340)
Commit 0a39b785d3 fixed the pkg-config include path when using cmake.
However it didn't fix it for the Makefile.  This fixes the Makefile
path.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2019-01-12 14:07:02 +08:00
Benno Fünfstück 08272a10fe bindings/python: fix install error due to old libname (#1338) 2019-01-11 00:13:02 +08:00
Benno Fünfstück c20f9f0995 bindings/python: fix install error due to old libname (#1338) 2019-01-11 00:12:24 +08:00
Benno Fünfstück 6800af85c1 bindings/python: fix install error due to old libname (#1338) 2019-01-11 00:10:25 +08:00
Nguyen Anh Quynh f9c6a90489 update SPONSORS.TXT 2019-01-10 21:45:56 +08:00
Nguyen Anh Quynh da93a194b8 add SPONSORS.TXT 2019-01-10 13:19:09 +08:00
Nguyen Anh Quynh f35a07902d ChangeLog 2019-01-10 13:18:49 +08:00
Nguyen Anh Quynh bc2927e523 add SPONSORS.TXT 2019-01-10 13:17:30 +08:00
Nguyen Anh Quynh 196a782ab4 ChangeLog 2019-01-10 13:17:19 +08:00
Nguyen Anh Quynh 19da8a18e9 add SPONSORS.TXT 2019-01-10 13:16:04 +08:00
Nguyen Anh Quynh 64d1f00f10 ChangeLog 2019-01-10 13:11:01 +08:00
Nguyen Anh Quynh 3553acb3e5 suite/capstone_get_setup.c: add MOS65XX support 2019-01-09 18:32:34 +08:00
Nguyen Anh Quynh 9428ca9a26 cstool: add MOS65XX to output of -v option 2019-01-09 18:32:33 +08:00
Nguyen Anh Quynh 47dd44de21 cstool -v print out the core build setup 2019-01-09 18:32:33 +08:00
Nguyen Anh Quynh 20159a3abb suite/capstone_get_setup.c: add MOS65XX support 2019-01-09 18:31:17 +08:00
Nguyen Anh Quynh 8c75f52f99 cstool: add MOS65XX to output of -v option 2019-01-09 18:30:11 +08:00
Nguyen Anh Quynh aca20f8b38 cstool -v print out the core build setup 2019-01-09 18:27:53 +08:00
Nguyen Anh Quynh d887052756 cstool -v print out the core build setup 2019-01-09 18:27:00 +08:00
Nguyen Anh Quynh 58d4613836 next version = 5 2019-01-09 13:54:06 +08:00
Nguyen Anh Quynh f1fc51bd09 next version = 5.0 2019-01-09 13:53:17 +08:00
Nguyen Anh Quynh 2c340106cf add suite/capstone_get_setup.c to retrive Capstone build setup. see #1326 2019-01-09 13:49:21 +08:00
Nguyen Anh Quynh 19be9b1a92 add suite/capstone_get_setup.c to retrive Capstone build setup. see #1326 2019-01-09 13:49:03 +08:00
Nguyen Anh Quynh 6f07f6545e add suite/capstone_get_setup.c to retrive Capstone build setup. see #1326 2019-01-09 13:45:29 +08:00
Nguyen Anh Quynh f6df412625 bump version to 4.0.1 2019-01-07 13:34:14 +08:00
Nguyen Anh Quynh 343ddad604 Merge branch 'master' into next 2019-01-04 17:24:16 +08:00
Nguyen Anh Quynh 0ff8220ade Merge branch 'master' into v4.1 2019-01-04 17:23:50 +08:00
Nguyen Anh Quynh 3146b8b512 cstool: add -s option to turn on skipdata mode on disassembling 2019-01-04 17:23:15 +08:00
Wolfgang Schwotzer 36c61a0541 M680X: Fix clang-analyzer issue #1329. (#1334) 2019-01-03 07:48:55 +08:00
radare 31ce0b3285 Add default case in MOS65XX instruction length helper (#1333) 2019-01-03 07:48:18 +08:00
Nguyen Anh Quynh d1adb923cc python: temporarily comment out skipdata setup, which is still broken on MacOS. #1316 2019-01-02 10:12:29 +08:00
Nguyen Anh Quynh 88cf4895e1 python: temporarily comment out skipdata setup, which is still broken on MacOS. #1316 2019-01-02 10:12:14 +08:00
Nguyen Anh Quynh 7ede48cd90 python: temporarily comment out skipdata setup, which is still broken on MacOS. #1316 2019-01-02 10:11:48 +08:00
Nguyen Anh Quynh 90b90f9491 Merge branch 'master' into next 2019-01-02 10:01:28 +08:00
Nguyen Anh Quynh d8b1e8b44b Merge branch 'master' into v4.1 2019-01-02 10:01:03 +08:00
Nguyen Anh Quynh ebd176e14c ChangeLog 2019-01-02 09:57:12 +08:00
Disconnect3d f4d701fc02 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
disconnect3d 2ac2b0b9ef Add ChangeLog stub for endbrXX fix (#1129) 2019-01-01 07:29:57 -08:00
Nguyen Anh Quynh 472bd43fcf python: rename getter/setter skipdata_cb to skipdata_callback. Hello 2019 2019-01-01 00:22:45 +08:00
Nguyen Anh Quynh 584fa2ff4a add docs/capstone-logo.png 2018-12-31 16:29:00 +08:00
Nguyen Anh Quynh a593f8d028 python: attempt to fix #1320 2018-12-31 15:51:50 +08:00
Nguyen Anh Quynh d6ff350270 Merge branch 'master' of https://github.com/aquynh/capstone 2018-12-31 15:46:16 +08:00
Семён Марьясин 6c54814d25 Fix skipdata setup (#1320)
* Fix skipdata_setup for when _cb is None

ctypes prototype does not accept None value,
so if we want to get a NULL function pointer
then we should either call it with no arguments
or pass zero as an argument.

Fixes #1316

* Do store and return skipdata_setup data

* Add convenience wrappers for skipdata_setup

* Uncomment skipdata_setup tests

* Add alternate usage variants to test_skipdata.py

* document getter
2018-12-31 15:42:44 +08:00
Nguyen Anh Quynh c959659f14 Merge branch 'master' of https://github.com/aquynh/capstone 2018-12-31 15:20:09 +08:00