Commit graph

68 commits

Author SHA1 Message Date
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
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
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
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
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
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
b4b6fea875 Fix a bug const generator does not account for assigning number as enum const 2013-12-04 00:19:48 -06:00
Joxean
367a4df66f Partially reverted previous commit
I added mistakenly various local-only changes.
2013-12-04 07:15:45 +01:00
Joxean
114df0ef2a Added @hex_code member
It's used to retrieve the bytes of the instruction.
2013-12-04 07:11:32 +01: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
c3a0a2c3d3 python: fix a memory leaking in cs_disasm_quick(). bug reported by Joxean Koret 2013-12-04 09:51:12 +08:00
Nguyen Anh Quynh
da8adaded2 API cs_option(): @value now has size_t, so mapping opaque pointer is possible for future options 2013-12-04 09:44:07 +08:00
Nguyen Anh Quynh
c618db4473 change option names for cs_option(), and update python binding accordingly to support new cs_option() 2013-12-04 00:05:04 +08:00
Nguyen Anh Quynh
daaed13cc1 python: update to the newly added cs_option() API 2013-12-03 22:18:28 +08: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
75c4475462 bindings: auto generate constants with 'make' 2013-12-03 13:39:49 +08:00
Nguyen Anh Quynh
923d9262af python: update to reflect latest API change 2013-12-03 13:13:39 +08:00
Nguyen Anh Quynh
8eb689e4af python: update to reflect the last API change 2013-12-03 11:25:13 +08:00