Commit Graph

1612 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
50eeba2a86 avoid setting instruction cache size to @count when Capstone uses user-customized memory management, which might fail in resource scarce env such as kernel 2014-09-30 13:28:02 +08:00
Nguyen Anh Quynh
ac98ca0129 set buffer size for instruction cache in cs_disasm() to @count if @count > 0. this avoids realloc() in cases where @count is pre-determined. thanks Dang Hoang Vu for the idea 2014-09-30 13:17:36 +08:00
Nguyen Anh Quynh
39eb84a9b1 merge v3 2014-09-30 07:45:37 +08:00
Nguyen Anh Quynh
9235fdc504 arm: The Thumb2 ldrexd and strexd instructions are not defined for M-class architectures 2014-09-30 07:44:50 +08:00
Nguyen Anh Quynh
187a1aead9 Merge pull request #187 from danghvu/v3
Cython: update installation and tests to v3
2014-09-30 07:05:29 +08:00
danghvu
ebeec9d9c2 Cython: update installation and tests to v3 2014-09-29 11:55:01 -05:00
Nguyen Anh Quynh
6756eddee5 ppc: alias instructions handled by printAliasInstrEx() miss CR* registers in detail mode. fixed 2014-09-29 23:32:14 +08:00
Nguyen Anh Quynh
ca44c4897d ppc: coding style for PPCInstPrinter.c 2014-09-29 17:58:20 +08:00
Nguyen Anh Quynh
27767e8c08 merge PR of @kratolp 2014-09-29 17:54:05 +08:00
Nguyen Anh Quynh
d7e42b7d36 rename all the constants marking ending from _MAX to _ENDING. this also updates Java/Python/Ocaml bindings accordingly 2014-09-29 17:15:25 +08:00
kratolp
39a65299bd Add ppc branch test suite 2014-09-29 10:59:42 +02:00
kratolp
f0221a2aeb * Fix pcc branch offset in a better way
* Update PPC branch alias function to print cri register
* Fix immediate branch offset sign extension for bd type branch instruction
2014-09-29 10:59:12 +02:00
Nguyen Anh Quynh
0b702b892d suite: add input files for systematic testing assembly instructions across all archs (MC) 2014-09-29 15:28:34 +08:00
Nguyen Anh Quynh
e4d1f4d05c Merge pull request #185 from danghvu/v3
Java binding: fix missing dependency
2014-09-29 07:03:19 +08:00
danghvu
3671d70429 Java binding: fix missing dependency 2014-09-28 16:20:15 -05:00
Nguyen Anh Quynh
ed7e43dc08 Merge branch 'v3' of https://github.com/aquynh/capstone into v3 2014-09-28 23:56:40 +08:00
Nguyen Anh Quynh
82354b60ba ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
Nguyen Anh Quynh
b69cb94bcd Merge pull request #184 from danghvu/v3
Fix binding tests and update Java binding to v3
2014-09-28 08:58:21 +08:00
danghvu
2412069453 Fix python binding tests 2014-09-27 17:59:42 -05:00
danghvu
ef92cdb918 Update java binding to v3 2014-09-27 17:53:49 -05:00
danghvu
53bbee32f9 Fix java binding tests 2014-09-27 16:09:44 -05:00
Nguyen Anh Quynh
6dc1dd5ae0 ocaml: remove fields regs_read_count, regs_write_count, groups_count, as they can be derived from the lengths of related arrays 2014-09-27 00:40:34 +08:00
Nguyen Anh Quynh
bf23075e32 ocaml: activate test_xcore.ml's non-class test 2014-09-26 23:57:08 +08:00
Nguyen Anh Quynh
c7fa8fa6fc Merge branch 'v3' of https://github.com/aquynh/capstone into v3 2014-09-26 23:48:17 +08:00
Nguyen Anh Quynh
81a97c6c5c ocaml: ocaml.c is wrongly implemented in various places. this fixes all the issues, and all test_<arch> works as expected now 2014-09-26 23:38:53 +08:00
Nguyen Anh Quynh
3f9247d6a5 java: add interface for cs_group_name() API 2014-09-26 11:27:29 +08:00
Nguyen Anh Quynh
770cf6dfd7 cython: update to v3. still need more tests 2014-09-26 11:25:03 +08:00
Nguyen Anh Quynh
d442fbc06e arm: t2BXJ also belongs to groups ARM_GRP_NOTMCLASS & ARM_GRP_PREV8 2014-09-26 10:38:29 +08:00
Nguyen Anh Quynh
443af14b52 ocaml: make some calls on Store_field() in ocaml.c to be in order 2014-09-26 00:48:05 +08:00
Nguyen Anh Quynh
fbaedfbb1d ocaml: fix an warning on test_arm64.ml 2014-09-26 00:46:26 +08:00
Nguyen Anh Quynh
77d93e9062 ocaml: update to work with v3 core 2014-09-25 23:03:36 +08:00
Nguyen Anh Quynh
aa58f7fca5 typo fix for capstone.h 2014-09-25 16:56:31 +08:00
Nguyen Anh Quynh
acbafc6d75 ocaml/python/java: fix some broken arm64 constants generated by const_generator.py 2014-09-25 12:46:17 +08:00
Nguyen Anh Quynh
54f8cef449 mips: add JR.HB & JALR.HB instructions. also update Ocaml/Python/Java bindings 2014-09-24 22:53:54 +08:00
Nguyen Anh Quynh
7ac7d4e245 mips: on BEQZL, printAlias() should return instruction string. also cleanup some redundant code 2014-09-24 22:29:03 +08:00
Nguyen Anh Quynh
240e1c75be mips: print absolute target address for relative branch instructions: BEQL, BGEZALL, BGEZL, BGTZL, BLEZL, BLTZALL, BLTZL, BNEL, BNEZL, BEQZL, BC1F, BC1FL, BC1TL 2014-09-24 18:16:23 +08:00
Nguyen Anh Quynh
5691dd4637 mips: fixed & added new instructions. also updated Ocaml/Python/Java bindings 2014-09-24 18:03:47 +08:00
Nguyen Anh Quynh
4e87675c54 arm: relative branch should not be negative. bug reported by @acez 2014-09-23 16:49:12 +08:00
Nguyen Anh Quynh
a4da8951e7 x86: relative CALL should print out absolute addresses. bug reported by @acez 2014-09-23 15:24:19 +08:00
Nguyen Anh Quynh
b339297eac Merge pull request #181 from yegord/v3
Fixed a typo in a CMake option name
2014-09-22 16:44:59 +08:00
Yegor Derevenets
ebc4ced3cf Fixed a typo in a CMake option name 2014-09-22 10:43:03 +02:00
Nguyen Anh Quynh
e483c6e31d ocaml: update constants 2014-09-22 00:07:58 +08:00
Nguyen Anh Quynh
7e181fb509 merge PR of @yegord 2014-09-21 23:46:03 +08:00
Nguyen Anh Quynh
a301cad09d Merge branch 'v3' of https://github.com/aquynh/capstone into v3 2014-09-21 23:37:01 +08:00
Nguyen Anh Quynh
0e755cff51 Merge branch 'next' into test 2014-09-21 23:36:24 +08:00
Nguyen Anh Quynh
a22d300c57 ocaml: add missing ARM64 instructions to arm64_const.ml. also handle arithmetic operations |, << properly for Ocaml in const_generator.py 2014-09-21 23:35:00 +08:00
Yegor Derevenets
ced9d24e35 Workaround missing <inttypes.h> on MSVC 2010 2014-09-21 17:27:11 +02:00
Nguyen Anh Quynh
586be76d73 ocaml: separate constants into separate files, which are actually autogen by const_generator.py 2014-09-21 23:23:38 +08:00
Nguyen Anh Quynh
323114680e Merge pull request #178 from yegord/install-platform-h
platform.h must be also installed
2014-09-21 22:23:53 +08:00
Yegor Derevenets
17176cd838 platform.h must be also installed 2014-09-21 16:11:34 +02:00