Commit graph

10 commits

Author SHA1 Message Date
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
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
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
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
danghvu
1a7c449a72 Fix python test output, same as core test 2013-11-27 22:51:11 -06:00
Nguyen Anh Quynh
26ee41aa67 initial import 2013-11-27 12:11:31 +08:00