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
11 years ago
Nguyen Anh Quynh
cdf41b017d
python: delete dead code
11 years ago
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
11 years ago
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
11 years ago
danghvu
486111c52d
Update Makefile to be able to test each binding individually
11 years ago
danghvu
0500691eb3
Update Java binding with cs_option
11 years ago
Nguyen Anh Quynh
74d95ab04f
python: minor fix for setup.py
11 years ago
Nguyen Anh Quynh
4649071e2d
python: add ERR_OPTION, and use @syntax setter/getter rather than option() method to set X86 syntax
11 years ago
Nguyen Anh Quynh
d912f91390
add a newline between constant types in autogen constants
11 years ago
Nguyen Anh Quynh
a2f825ff07
support comments in autogen files, so constant files are more friendly
11 years ago
Nguyen Anh Quynh
8f13f3c6ab
rename @hex_code to @bytes , and move it to next to @size
11 years ago
Nguyen Anh Quynh
c9b6aa1547
python: use c_char_p rather than POINTER(c_char) on prototype of cs_disasm_dyn()
11 years ago
Nguyen Anh Quynh
c389e00a1f
python: wrong prototype for cs_close() causes mem leaking. bug reported by Joxean Koret
11 years ago
danghvu
b09c122c14
Use casting instead of isdigit, incase negative number
11 years ago
danghvu
b4b6fea875
Fix a bug const generator does not account for assigning number as enum const
11 years ago
Joxean
367a4df66f
Partially reverted previous commit
...
I added mistakenly various local-only changes.
11 years ago
Joxean
114df0ef2a
Added @hex_code member
...
It's used to retrieve the bytes of the instruction.
11 years ago
Nguyen Anh Quynh
e60590baf1
fix bindings to reflect the last commit
11 years ago
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
11 years ago
Nguyen Anh Quynh
b39ef0bfa6
arm: added some alias registers
11 years ago
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
11 years ago
Nguyen Anh Quynh
c3a0a2c3d3
python: fix a memory leaking in cs_disasm_quick(). bug reported by Joxean Koret
11 years ago
Nguyen Anh Quynh
da8adaded2
API cs_option(): @value now has size_t, so mapping opaque pointer is possible for future options
11 years ago
danghvu
2c37cd49fc
Minor fix in java coding style
11 years ago
danghvu
9e51977205
Fix java binding to reflect new api
11 years ago
Nguyen Anh Quynh
c618db4473
change option names for cs_option(), and update python binding accordingly to support new cs_option()
11 years ago
Nguyen Anh Quynh
daaed13cc1
python: update to the newly added cs_option() API
11 years ago
Nguyen Anh Quynh
88db228cc9
bindings: do not delete constant files when on clean target of Makefile
11 years ago
Nguyen Anh Quynh
22fcba13f9
java: add some missing CS_MODE
11 years ago
Nguyen Anh Quynh
de53660109
java: quick fix to update it with latest API changes
11 years ago
Nguyen Anh Quynh
75c4475462
bindings: auto generate constants with 'make'
11 years ago
Nguyen Anh Quynh
923d9262af
python: update to reflect latest API change
11 years ago
Nguyen Anh Quynh
8db204e6fd
java: clean up Test.java
11 years ago
Nguyen Anh Quynh
8eb689e4af
python: update to reflect the last API change
11 years ago
Nguyen Anh Quynh
25f5612d4d
bindings: correct autogen constant files to reflect the change on arm64.h
11 years ago
Nguyen Anh Quynh
b2ed4dcd69
update COMPILE and python README to reflect the last commit
11 years ago
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
11 years ago
Nguyen Anh Quynh
68f2405814
java: update README
11 years ago
Nguyen Anh Quynh
e75f906831
python: update README
11 years ago
Nguyen Anh Quynh
210e94dbed
python: add install target to Makefile
11 years ago
Nguyen Anh Quynh
96a056d18b
bindings: more flexible autogen on generating filenames containing constants
11 years ago
Nguyen Anh Quynh
bc1e2f4079
python: 'make' alone does not install python module
11 years ago
Nguyen Anh Quynh
99cfce9b1a
bindings: add project info into autogen files
11 years ago
Nguyen Anh Quynh
d6ef46aa0f
bindings: Makefile does nothing by default
11 years ago
Nguyen Anh Quynh
ac6d1da5b0
bindings: add author info to const_generator.py
11 years ago
danghvu
c698fb657f
Add clean target for bindings/Makefile
11 years ago
danghvu
cfb0120936
Add support for python in const_generator.py
11 years ago
danghvu
2f66688c67
Modify java binding to use the auto-generated files
11 years ago
danghvu
9ed9d859c1
Name the target clearer in Makefile for testing binding
11 years ago
danghvu
8054c9e065
Add a script to generate constant for binding
11 years ago