Commit Graph

110 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
3a87fb9ad0 python: minor fix for comments of _dummy_cs class 2013-12-23 22:32:47 +08:00
Nguyen Anh Quynh
3cbb23064e python: keep referencing Cs class so make sure it is around until all CsInsn objects are deleted. bug reported by felixwilhelm 2013-12-23 22:30:05 +08:00
Nguyen Anh Quynh
9ac9fcf2b3 python: support newly added API cs_support() & cs_version_ex() 2013-12-22 18:54:05 +08:00
Nguyen Anh Quynh
e76eae2c51 python: fix for README to keep lines within 80 columns for readability 2013-12-20 22:23:46 +08:00
Nguyen Anh Quynh
6eae731d56 Merge branch 'master' of https://github.com/0xKD/capstone into pkgconfig 2013-12-20 22:18:28 +08: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
Kedar
6b7b7d9c97 Make instruction distinction clearer 2013-12-20 17:00:15 +05:30
Nguyen Anh Quynh
5f0c6869ca python: correct the last commit to fix cs_disasm_quick() 2013-12-20 18:55:03 +08:00
Kedar
edf10913fc Update README for Windows install 2013-12-20 16:04:18 +05:30
Nguyen Anh Quynh
e71abd4666 python: cs_disasm_quick() doesnt create CsInsn array on return, and makes reference to non-existent self. bug reported by Mario Vilas 2013-12-20 17:48:27 +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
Nguyen Anh Quynh
53311520cc Merge branch 'master' of https://github.com/aquynh/capstone 2013-12-17 23:23:26 +08:00
Nguyen Anh Quynh
315930d477 python: correct DLL file for dynamic loading when module is imported 2013-12-17 23:21:39 +08:00
Nguyen Anh Quynh
fa0639b7e1 python: clean setup.py 2013-12-17 22:13:28 +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
572afeed7c python: code style: replace tab with 4 spaces 2013-12-16 11:19:24 +08:00
Nguyen Anh Quynh
29d138fa2b python: rename some public python classes to follow python naming convention 2013-12-16 10:31:41 +08: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
67fd143a8b python: remove useless __init__.py 2013-12-10 08:07:18 +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
Nguyen Anh Quynh
dcde7e7e70 python: replace op_index() with op_find(), which straightly returns the desired operand rather than its cumbersome index 2013-12-06 21:33:58 +08:00
Nguyen Anh Quynh
f1618bc2ee python: add error message to CsError and modify all tests to use CsError exception 2013-12-06 20:58:04 +08:00
Nguyen Anh Quynh
73a6dba6c2 python: commented out the printout of @bytes, so 'make tests' doesnt complain anymore 2013-12-06 19:31:28 +08:00
Nguyen Anh Quynh
db048ab1c1 python: reimplement cs_op_count(), cs_op_index() & cs_insn_group() in python, so no need to save instruction raw data anymore 2013-12-06 19:29:12 +08:00
Nguyen Anh Quynh
9b542643ac Merge branch 'cserror' 2013-12-06 18:11:33 +08:00
Nguyen Anh Quynh
cdf41b017d python: delete dead code 2013-12-06 18:09:40 +08:00
Nguyen Anh Quynh
e099ede6c5 Fix Python bindings:
- No more use generator to return instruction list
- Delete redundant Mips consts in mips.py
- Revert the last wrong change on ctypes prototype of cs_disasm_dyn(): it is wrong to use c_char_p
2013-12-06 18:06:11 +08:00
Nguyen Anh Quynh
520c3615b6 rename python classes and using exception for error
- rename class cs to Cs, cs_insn to CsInsn
- throw CsError exception to handle cs_errno()
- fix all test*.py code to reflect above changes
2013-12-06 15:26:07 +08:00
danghvu
486111c52d Update Makefile to be able to test each binding individually 2013-12-05 19:36:28 -06:00
danghvu
0500691eb3 Update Java binding with cs_option 2013-12-05 19:33:38 -06:00
Nguyen Anh Quynh
74d95ab04f python: minor fix for setup.py 2013-12-06 08:55:37 +08:00
Nguyen Anh Quynh
4649071e2d python: add ERR_OPTION, and use @syntax setter/getter rather than option() method to set X86 syntax 2013-12-06 00:44:44 +08: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
Nguyen Anh Quynh
8f13f3c6ab rename @hex_code to @bytes, and move it to next to @size 2013-12-04 22:57:04 +08:00
Nguyen Anh Quynh
c45b1588ef Merge branch 'master' of https://github.com/joxeankoret/capstone into hexcode 2013-12-04 19:28:54 +08:00
Nguyen Anh Quynh
c9b6aa1547 python: use c_char_p rather than POINTER(c_char) on prototype of cs_disasm_dyn() 2013-12-04 17:54:00 +08:00
Nguyen Anh Quynh
c389e00a1f python: wrong prototype for cs_close() causes mem leaking. bug reported by Joxean Koret 2013-12-04 17:37:14 +08:00
danghvu
b09c122c14 Use casting instead of isdigit, incase negative number 2013-12-04 00:30:45 -06: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