Commit Graph

235 Commits

Author SHA1 Message Date
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 3f9247d6a5 java: add interface for cs_group_name() API 2014-09-26 11:27:29 +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 5691dd4637 mips: fixed & added new instructions. also updated Ocaml/Python/Java bindings 2014-09-24 18:03:47 +08:00
Nguyen Anh Quynh 7e57e79800 ppc: handle branch condition for alias instructions. this also updates Python & Java bindings 2014-09-21 13:04:50 +08:00
Nguyen Anh Quynh 1738a3e6bf sparc: handle some alias instructions & more details for some special instructions. update Python & Java bindings accordingly with new instructions & registers 2014-09-17 00:01:04 +08:00
Nguyen Anh Quynh 7a9d19eaff python & java: update after the last PPC core update 2014-09-16 23:22:16 +08:00
Nguyen Anh Quynh 721d07f6b2 ppc: support alias instructions. update Python & Java bindings accordingly 2014-09-04 12:03:31 +08:00
Nguyen Anh Quynh 04d9f8ee17 arm: update core with a lot more details provided in detail mode now. update Python & Java bindings to reflect the core's changes 2014-09-01 23:27:24 +08:00
Nguyen Anh Quynh 0beb0d494b api: get back the old API cs_disasm() & mark cs_disasm_ex() deprecated. cs_disasm_ex() will be removed in the future 2014-08-27 22:55:29 +08:00
Nguyen Anh Quynh 934e180e54 x86: more update to the core 2014-08-27 21:59:25 +08:00
Nguyen Anh Quynh a7792ae488 systemz: update core. also update Python & Java bindings 2014-08-26 12:14:25 +08:00
Nguyen Anh Quynh 212a01712a java: update after the latest changes in the core on arm64 2014-08-25 17:39:14 +08:00
Nguyen Anh Quynh c286b346c6 Merge branch 'arm64' into v3 2014-08-25 17:01:53 +08:00
Nguyen Anh Quynh 0efef5dd48 solve some conflicts when merging -next into -v3 2014-08-25 17:01:45 +08:00
Nguyen Anh Quynh 46a74e53b7 arm64: update core. this added a lot more details to cs_arm64_op struct 2014-08-25 16:47:12 +08:00
Nguyen Anh Quynh 73cde40ac7 python & java: add new error codes CS_ERR_X86_ATT & CS_ERR_X86_INTEL 2014-08-20 14:08:35 +08:00
Nguyen Anh Quynh a726402513 sparc: update core. this added/removed some instructions & groups. updated Python & Java bindings accordingly 2014-08-15 18:29:17 +08:00
Nguyen Anh Quynh 91a64776a8 ppc: fix a mistake on interpreting CR registers by deleting CR8 -> CR31 2014-08-15 13:48:11 +08:00
Nguyen Anh Quynh dd3deec1e9 ppc: update core. this added new instructions, groups & registers. updated Python & Java bindings accordingly 2014-08-15 13:26:12 +08:00
Nguyen Anh Quynh 0f0eb9851a mips: update core. this added bunch of new instructions & groups. updated Python & Java bindings accordingly 2014-08-14 18:26:39 +08:00
Nguyen Anh Quynh 7c089fd6c6 arm: add new mode CS_MODE_MCLASS for Cortex-M series. updated Python & Java bindings accordingly 2014-08-13 23:08:40 +08:00
Nguyen Anh Quynh b52f11f636 arm: update core. this added a new instruction UDF. also updated Python+Java bindings accordingly 2014-08-13 22:38:15 +08:00
Nguyen Anh Quynh fd0f798343 bump API & package version to 3.0 2014-08-13 14:15:27 +08:00
Nguyen Anh Quynh 0b690387b3 x86: update core with upstream. this added bunch of new instructions & groups. also updated Python & Java bindings after the core change 2014-08-13 13:01:50 +08:00
Nguyen Anh Quynh 3c0f43611d python & java: update after the last change in core on PPC_BH_NO 2014-07-10 11:46:52 +08:00
Nguyen Anh Quynh 42c11bc98c python & java: update constant symbols for SystemZ's groups & PPC_BC_INVALID 2014-07-10 08:02:23 +08:00
Nguyen Anh Quynh 9f6ed7155a x86: add @rex to cs_x86 struct. updated python & java binding for this change 2014-07-01 10:13:28 +08:00
Nguyen Anh Quynh 1a66fecdbc x86: support avx_sae & avx_rm in cs_x86 struct. this also updates Python & Java bindings following the core's change 2014-06-26 12:09:15 +08:00
Nguyen Anh Quynh 7de200afee python & java: update after the last change in the core on avx_zero_opmask 2014-06-26 11:31:36 +08:00
Nguyen Anh Quynh 92a3d4c079 x86: add AVX's zero_opmask to cs_x86_op struct. updated Python & Java bindings for this change 2014-06-25 23:10:39 +08:00
Nguyen Anh Quynh f1ec52628e x86: provide size for X86_OP_IMM operand. thank Gabriel Quadros for some suggestions 2014-06-25 22:03:18 +08:00
Nguyen Anh Quynh 4c5eabc32b x86: support SSE_CC & AVX_CC in cs_x86 struct. this also updates Python & Java bindings 2014-06-24 23:50:41 +08:00
Nguyen Anh Quynh 0d716450fc x86: add avx_bcast to cs_x86_op to support AVX512 instructions. this also updates Python & Java binding 2014-06-24 22:51:56 +08:00
Nguyen Anh Quynh eeb06902ed java: update X86 after the last change in the core 2014-06-24 21:48:19 +08:00
Nguyen Anh Quynh 0467842205 java: update X86 binding after the last update in the core 2014-06-24 14:35:47 +08:00
Nguyen Anh Quynh f3a9659cd5 python & java: update x86 following the last update in core 2014-06-20 13:46:53 +08:00
Nguyen Anh Quynh 83800cdc31 python & java: add comments on operand's size 2014-06-18 14:21:36 +08:00
Nguyen Anh Quynh e68ce0ecc8 java: update after the last change in x86 core 2014-06-18 12:33:39 +08:00
Nguyen Anh Quynh 73bbbb3800 arm: add ASRS, LSRS, VCLE, VCLT instructions. update Python & Java bindings at the same time 2014-06-17 13:29:54 +08:00
Jay Oster 6f74ccc97a Add new x86 instruction groups
- VM: Virtual Machine
- INT: Interrupts
- IRET: Interupt returns
- CALL: Subroutine call
- RET: Subroutine return

Includes a special case for writes to port 0xb2, which triggers an SMI
2014-06-02 22:21:41 -07:00
Nguyen Anh Quynh cfc7ca6ace python & java: update constants for Xcore after the last change in the core 2014-05-27 23:34:41 +08:00
Nguyen Anh Quynh 4d00986c6b java: add Xcore support 2014-05-27 14:54:28 +08:00
Nguyen Anh Quynh 5a5d8a71cd python & java: fix Sparc's CC constants after the last change in the core 2014-05-25 13:49:12 +08:00
Nguyen Anh Quynh f260c2023e fix some conflicts when merging msvc2 into next 2014-05-19 11:32:55 +08:00
Nguyen Anh Quynh 96934501fd arm64: do not consider WZR & XZR alias registers 2014-05-18 00:07:24 +08:00
danghvu 461ab82ae8 Fix broken java binding 2014-05-14 02:37:08 -05:00
danghvu 0c478ab2f9 Fix Makefile to use && as well in bindings 2014-05-12 14:35:54 -05:00
Nguyen Anh Quynh d7c2a651c2 java: delete dirs of generated binaries in clean target when BUILDDIR is defined 2014-05-01 21:49:52 +08:00
Ole André Vadla Ravnås f4f305542f Makefile: add support for building java binding out-of-tree 2014-05-01 01:38:01 +02:00
Nguyen Anh Quynh 0eefeb9335 java: add FSTPNCE instruction following the core update 2014-04-23 12:50:20 +08:00
Nguyen Anh Quynh a542efe31b java: add SAL instruction following the core udpate 2014-04-17 09:41:13 +08:00
Nguyen Anh Quynh b5236ff33d java: update after the last change to the core of systemz 2014-03-24 17:29:37 +08:00
Nguyen Anh Quynh 98726958fe java: Sparc's operand array size = 4 2014-03-24 16:11:39 +08:00
Nguyen Anh Quynh 21bd3930e6 java: add SystemZ arch 2014-03-23 22:21:54 +08:00
Nguyen Anh Quynh 4321468245 java: fix Sparc to get correct CsSparc fields 2014-03-23 10:47:33 +08:00
Nguyen Anh Quynh 1a48ba3636 java: fix Sparc test 2014-03-10 22:31:14 +08:00
Nguyen Anh Quynh 1a39bb59e1 API: bump to 2.2 after the addition of Sparc support 2014-03-10 20:49:46 +08:00
Nguyen Anh Quynh d067ebc697 java: support Sparc 2014-03-10 15:03:16 +08:00
Nguyen Anh Quynh 892729ca11 java: add error modes, version() & support diet engine 2014-03-03 15:14:22 +08:00
Nguyen Anh Quynh 66b33476aa java: fix call to cs_close() following core's API change 2014-02-28 10:08:31 +08:00
Nguyen Anh Quynh 0ea1251f50 python & java: update instruction constants after the last core update 2014-02-25 14:44:32 +08:00
Nguyen Anh Quynh 9c715aa034 java: fix indentation 2014-02-23 13:09:38 +08:00
Nguyen Anh Quynh bf723fa424 java: fix NULL pointr exception introduced by last commit. suggested by Dang Hoang Vu 2014-02-23 13:05:16 +08:00
Nguyen Anh Quynh a25a7ad231 java: verify against core's version before doing anything 2014-02-23 12:04:37 +08:00
Nguyen Anh Quynh 0a8cbbe627 java: support 'diet' mode 2014-02-22 23:48:32 +08:00
Nguyen Anh Quynh e7c5695807 java: fix memleak in disasm() 2014-02-20 14:49:31 +08:00
Nguyen Anh Quynh 046902a990 python & java: update constants following last change to PPC arch 2014-02-19 17:02:44 +08:00
Nguyen Anh Quynh 43a9a9d36f bump API version from 2.0 to 2.1 for core + Python & Java bindings 2014-02-19 15:18:44 +08:00
Nguyen Anh Quynh 748e4f8f1d python & java: update following last update to Mips core 2014-02-19 15:13:51 +08:00
Nguyen Anh Quynh 5bd0e2ea06 java & python: update instructions following the last x86 core update 2014-02-08 18:06:49 +08:00
Nguyen Anh Quynh 5d1244d194 java: update X86_const.java after last update to x86 core 2014-01-19 22:50:13 +08:00
Nguyen Anh Quynh 9eb9f539c2 python & java: update following the last change to @op_str 2014-01-15 17:52:43 +08:00
Nguyen Anh Quynh 0941042274 java: update Mips constants following the change in Mips' core 2014-01-14 23:10:59 +08:00
Nguyen Anh Quynh 44cebf2e0b python & java: pump API to 2.0 2014-01-14 09:33:00 +08:00
Nguyen Anh Quynh a71a29922c java: update @opStr & ARM's @Operands following the changes in core 2014-01-13 23:33:27 +08:00
Nguyen Anh Quynh 6a1107c216 java: update following the change to detail mode in the core 2014-01-07 23:47:18 +08:00
Nguyen Anh Quynh 83dd67e405 java: OpenJDK 7 is also supported 2014-01-07 10:58:11 +08:00
Nguyen Anh Quynh 1044c3e912 java: indentation fix 2014-01-06 00:06:25 +08:00
Nguyen Anh Quynh 91e532d5ab print out ppc_bh information in test_ppc.c & TestPpc.java 2014-01-05 09:15:42 +08:00
danghvu c476765086 Update java binding for PPC arch 2014-01-05 03:36:35 +07:00
Nguyen Anh Quynh 51a7710ed7 java: update cs_version() prototype following the changes to this API in the core 2013-12-28 14:05:33 +08:00
danghvu 80348ba5f7 Clean up unused code and some coding style 2013-12-26 23:16:29 -06:00
danghvu ef9bd0ab48 Let jna handle alignment, reduce performance but more cross-platform 2013-12-26 22:55:01 -06:00
danghvu 8677ce756c Minor changes for x86 compatibility 2013-12-26 17:58:33 -06:00
danghvu 03be9f5820 Fix java binding for cs2 branch 2013-12-26 02:11:16 -06:00
Nguyen Anh Quynh 7008356bc5 change cs_insn struct to follow the commit 18103e4a. fixed Python & Java bindings accordingly. attn: bindings 2013-12-20 22:02:20 +08:00
Nguyen Anh Quynh 1bdb23a76d add CS_OPT_MODE option. this allows us to change engine's mode at run-time 2013-12-20 00:04:26 +08:00
Nguyen Anh Quynh d06e2f5ac1 arm: expose alias registers SB, SL, FP & IP. attn: bindings 2013-12-19 16:50:57 +08:00
danghvu 36508ff69f Fixed size of regWrite, regRead nd group 2013-12-16 23:26:23 -06:00
danghvu 4ef20d54b0 Fixed naming convention 2013-12-16 23:25:57 -06:00
danghvu 13adb95e7e Fix java error when JNA attempts to readField(op) when op_count == 0 2013-12-16 18:03:47 -06:00
Nguyen Anh Quynh 7957ed1def arm64: add some alias registers. attn: bindings 2013-12-15 00:32:20 +08:00
Nguyen Anh Quynh 4994c587ad bindings: support new 'detail' option for java & python 2013-12-14 11:39:33 +08:00
Nguyen Anh Quynh ad89d25d05 mips: optimize Mips_map_register() to O(1). suggested by Pancake 2013-12-11 23:20:34 +08:00
Nguyen Anh Quynh 66f6c2283e mips: fix NEGU alias instruction. bug reported by Pancake 2013-12-11 21:37:24 +08:00
Nguyen Anh Quynh 8940e5c5d0 java: return empty array when op_count = 0, rather than NULL. this is to be consistent with all other bindings 2013-12-10 14:44:45 +08:00
Nguyen Anh Quynh aa036eebc2 bindings: add cs_version() back for python & java 2013-12-10 13:42:48 +08:00
Nguyen Anh Quynh 98bc9c3932 bindings: update java & python follow last API change 2013-12-10 08:06:56 +08:00
Nguyen Anh Quynh 3ff4ccbc5b bindings: update python & java following mips core engine 2013-12-08 20:19:05 +08:00
Nguyen Anh Quynh bac111c257 bindings: update python & java following arm64 update 2013-12-08 15:29:08 +08:00
danghvu 0500691eb3 Update Java binding with cs_option 2013-12-05 19:33:38 -06:00
Nguyen Anh Quynh d912f91390 add a newline between constant types in autogen constants 2013-12-05 00:02:37 +08:00
Nguyen Anh Quynh a2f825ff07 support comments in autogen files, so constant files are more friendly 2013-12-04 23:56:24 +08:00
danghvu b4b6fea875 Fix a bug const generator does not account for assigning number as enum const 2013-12-04 00:19:48 -06:00
Nguyen Anh Quynh e60590baf1 fix bindings to reflect the last commit 2013-12-04 12:46:41 +08:00
Nguyen Anh Quynh ea5b79d058 move some alias registers around to after REG_MAX. this seems to fix some issues of clang, which struggles with enum that assign value from other enum 2013-12-04 12:10:47 +08:00
Nguyen Anh Quynh b39ef0bfa6 arm: added some alias registers 2013-12-04 11:52:28 +08:00
Nguyen Anh Quynh 67f1297b33 java: temporarily remove SYNTAX_ATT option due to the newly added cs_option() API. this will be fixed when cs_option() is supported in java 2013-12-04 10:27:50 +08:00
danghvu 2c37cd49fc Minor fix in java coding style 2013-12-03 12:28:10 -06:00
danghvu 9e51977205 Fix java binding to reflect new api 2013-12-03 19:21:08 +01:00
Nguyen Anh Quynh 88db228cc9 bindings: do not delete constant files when on clean target of Makefile 2013-12-03 15:01:15 +08:00
Nguyen Anh Quynh 22fcba13f9 java: add some missing CS_MODE 2013-12-03 14:34:12 +08:00
Nguyen Anh Quynh de53660109 java: quick fix to update it with latest API changes 2013-12-03 14:26:05 +08:00
Nguyen Anh Quynh 8db204e6fd java: clean up Test.java 2013-12-03 11:27:58 +08:00
Nguyen Anh Quynh 25f5612d4d bindings: correct autogen constant files to reflect the change on arm64.h 2013-12-03 09:45:02 +08:00
Nguyen Anh Quynh f4597083c2 bindings: add all autogen files. better to do this by committers, not users. thanks to this, users dont need to generate those constants themselves 2013-12-03 09:23:27 +08:00
Nguyen Anh Quynh 68f2405814 java: update README 2013-12-02 20:25:54 +08:00
danghvu 2f66688c67 Modify java binding to use the auto-generated files 2013-12-01 14:10:28 -06:00
danghvu 20b2d800a9 Improved performance of java binding 2013-11-29 15:23:37 -06:00
danghvu bfd2de6493 Fix Arm64.java miss type 2013-11-29 18:27:28 +01:00
danghvu a7d954f131 Adjust binding tests to match api changes 2013-11-29 10:57:45 -06:00
danghvu 686fdf6d54 Fix a bug on machine without jna cannot make clean 2013-11-28 10:08:15 -06:00
danghvu c4325f8593 Add remaining untested functions 2013-11-28 01:02:17 -06:00
danghvu 71e1c4f9fa More verbose Java binding Makefile 2013-11-28 00:36:19 -06:00
danghvu bad54f32c0 Fix java binding for 32-bit 2013-11-28 06:56:03 +01:00
danghvu f3ef69673a Fix java binding test, output the same as core test 2013-11-27 21:41:17 -06:00
danghvu f86a7d5696 Packaging java binding 2013-11-27 15:09:07 -06:00
danghvu b598c7d6ca Improve Java speed 2013-11-27 14:38:53 -06:00
danghvu 7b08804440 Fix partially inconsistent output from java binding 2013-11-27 10:58:31 -06:00
danghvu 5f495529b0 Refactor java binding, remove offset dependency 2013-11-27 02:13:32 -06:00
danghvu 35855b5b93 Fix indentation consistency 2013-11-26 22:42:30 -06:00
danghvu 6a6947f729 initial commit for java binding 2013-11-26 22:28:41 -06:00