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
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
b2ed4dcd69
update COMPILE and python README to reflect the last commit
2013-12-03 09:28:43 +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
e75f906831
python: update README
2013-12-02 20:25:35 +08:00
Nguyen Anh Quynh
210e94dbed
python: add install target to Makefile
2013-12-02 20:24:38 +08:00
Nguyen Anh Quynh
96a056d18b
bindings: more flexible autogen on generating filenames containing constants
2013-12-02 18:37:46 +08:00
Nguyen Anh Quynh
bc1e2f4079
python: 'make' alone does not install python module
2013-12-02 18:08:07 +08:00
danghvu
cfb0120936
Add support for python in const_generator.py
2013-12-01 14:10:28 -06:00
Nguyen Anh Quynh
0fd5da2449
fixed bad disassembly mode definitions. by Daniel Godas-Lopez
2013-11-30 11:36:32 +08:00
danghvu
a7d954f131
Adjust binding tests to match api changes
2013-11-29 10:57:45 -06:00
Nguyen Anh Quynh
f1656de40a
reduce the size of @operands for arm & arm64
2013-11-29 20:26:34 +08:00