Commit Graph

3870 Commits

Author SHA1 Message Date
Nguyen Anh Quynh 48b08869c0 X86: turn some print functions to static. see #1342 2019-01-22 08:43:02 +08:00
Erik Hemming 44ce36d1ad 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
rwmjones 7355e5610c 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
Benno Fünfstück 08ca4fa4bb bindings/python: fix install error due to old libname (#1338) 2019-01-11 00:10:25 +08:00
Nguyen Anh Quynh 952c7df720 add SPONSORS.TXT 2019-01-10 13:19:09 +08:00
Nguyen Anh Quynh 0859963255 ChangeLog 2019-01-10 13:18:49 +08:00
Nguyen Anh Quynh 04ecd4829b suite/capstone_get_setup.c: add MOS65XX support 2019-01-09 18:32:34 +08:00
Nguyen Anh Quynh 120fe0425a cstool: add MOS65XX to output of -v option 2019-01-09 18:32:33 +08:00
Nguyen Anh Quynh 2ff3baa138 cstool -v print out the core build setup 2019-01-09 18:32:33 +08:00
Nguyen Anh Quynh 780cedb627 next version = 5.0 2019-01-09 13:53:17 +08:00
Nguyen Anh Quynh 8597ab29af add suite/capstone_get_setup.c to retrive Capstone build setup. see #1326 2019-01-09 13:49:03 +08:00
Nguyen Anh Quynh 8a6c520e8f Merge branch 'master' into next 2019-01-04 17:24:16 +08:00
Nguyen Anh Quynh 82c77d663d cstool: add -s option to turn on skipdata mode on disassembling 2019-01-04 17:23:15 +08:00
Wolfgang Schwotzer 59d7387d37 M680X: Fix clang-analyzer issue #1329. (#1334) 2019-01-03 07:48:55 +08:00
Nguyen Anh Quynh 06e2b0851d python: temporarily comment out skipdata setup, which is still broken on MacOS. #1316 2019-01-02 10:12:14 +08:00
Nguyen Anh Quynh 2576c4a4fb python: temporarily comment out skipdata setup, which is still broken on MacOS. #1316 2019-01-02 10:11:48 +08:00
Nguyen Anh Quynh d4ce009086 Merge branch 'master' into next 2019-01-02 10:01:28 +08:00
Nguyen Anh Quynh 573743919d ChangeLog 2019-01-02 09:57:12 +08:00
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
disconnect3d b3ef04c092 Add ChangeLog stub for endbrXX fix (#1129) 2019-01-01 07:29:57 -08:00
Nguyen Anh Quynh 145b83062e python: rename getter/setter skipdata_cb to skipdata_callback. Hello 2019 2019-01-01 00:22:45 +08:00
Nguyen Anh Quynh ff350f42a7 add docs/capstone-logo.png 2018-12-31 16:29:00 +08:00
Nguyen Anh Quynh 5087076f62 python: attempt to fix #1320 2018-12-31 15:51:50 +08:00
Nguyen Anh Quynh ac2b4f7ae0 Merge branch 'master' of https://github.com/aquynh/capstone 2018-12-31 15:46:16 +08:00
Семён Марьясин 784118b9a1 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 9c65b862bb Merge branch 'master' of https://github.com/aquynh/capstone 2018-12-31 15:20:09 +08:00
Nguyen Anh Quynh 23ff78bf05 Merge branch 'master' into next 2018-12-27 09:41:29 +08:00
Nguyen Anh Quynh 454160598a arm: remove group ARM_REG_PC for thumb BX (#1323, 1126) 2018-12-27 09:40:19 +08:00
Nguyen Anh Quynh 77a4c0d00b Merge branch 'master' into next 2018-12-20 22:34:29 +08:00
Nguyen Anh Quynh 154e4801e2 Merge branch 'master' of github.com:aquynh/capstone 2018-12-20 22:32:10 +08:00
Catena cyber eefb30fb96 Quiet unzip output for travis (#1321) 2018-12-20 22:31:50 +08:00
Catena cyber c51a85b44a Quiet unzip output for travis (#1321) 2018-12-20 18:12:48 +08:00
Nelson Chen 165383e161 Normalize IS_MINGW checks (and include MSYS, like main Makefile) (#1318)
Following in the steps of #1290
2018-12-20 15:09:27 +08:00
Nguyen Anh Quynh 44b2c29ab7 Merge branch 'master' into next 2018-12-20 02:58:23 +08:00
Nguyen Anh Quynh 87258d06af Merge branch 'master' of github.com:aquynh/capstone 2018-12-20 02:54:51 +08:00
Nguyen Anh Quynh 09822dd129 x86: fix endbr32 & endbr64 in #1129 2018-12-20 02:54:44 +08:00
Sergei Trofimovich c4714ce0e8 Makefile: fix 'make uninstall DESTDIR=foo' for #1311 (#1314)
Uninstall was prepending `$(DESTDIR)` twice to libdir:

```Makefile
LIBDIR = $(DESTDIR)$(PREFIX)/$(LIBDIRARCH)
...
uninstall:
    ...
    rm -f $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).*
```

The change drops prefixing on `uninstall` site.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2018-12-19 15:52:20 +08:00
Catena cyber 96ebb79ef1 Testing whole corpus only if present (#1313) 2018-12-19 15:43:31 +08:00
Nguyen Anh Quynh e072cdb6c1 Merge branch 'master' into next 2018-12-19 11:16:56 +07:00
Nguyen Anh Quynh d8d43be2b7 .gitignore 2018-12-19 11:16:31 +07:00
Nguyen Anh Quynh 0875112e73 Makefile: more fix for #1312 2018-12-19 09:25:04 +07:00
Nguyen Anh Quynh 35bf271765 fix merge conflicts 2018-12-19 09:23:14 +07:00
Nguyen Anh Quynh 6e5dcce482 Makefile: more fix for #1312 2018-12-19 09:21:07 +07:00
Nguyen Anh Quynh 5c6b41e69a Merge branch 'master' of github.com:aquynh/capstone 2018-12-19 09:41:47 +08:00
Nguyen Anh Quynh 61fffb3535 fix #1311 & #1312 2018-12-19 09:41:34 +08:00
Nguyen Anh Quynh 9809c58d0a empty RELEASE_NOTES for v4.1 2018-12-19 07:50:18 +07:00
Nguyen Anh Quynh a15bb088df Merge branch 'master' into next 2018-12-19 07:49:32 +07:00
Nguyen Anh Quynh b65d4664c6 remove rc1 from pkgconfig.mk 2018-12-19 07:49:02 +07:00
Nguyen Anh Quynh a2efba1cf0 Merge branch 'master' of github.com:aquynh/capstone 2018-12-19 00:31:46 +08:00
Nguyen Anh Quynh a6f297a405 RELEASE_NOTES 2018-12-19 00:31:23 +08:00