Nguyen Anh Quynh
bac111c257
bindings: update python & java following arm64 update
11 years ago
Nguyen Anh Quynh
731bf2a714
arm64: update core engine
11 years ago
Nguyen Anh Quynh
dcde7e7e70
python: replace op_index() with op_find(), which straightly returns the desired operand rather than its cumbersome index
11 years ago
Nguyen Anh Quynh
f1618bc2ee
python: add error message to CsError and modify all tests to use CsError exception
11 years ago
Nguyen Anh Quynh
73a6dba6c2
python: commented out the printout of @bytes , so 'make tests' doesnt complain anymore
11 years ago
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
9b542643ac
Merge branch 'cserror'
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
af9bf6f3fb
Merge pull request #25 from danghvu/master
...
Update Java binding to reflect the new API
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
Nguyen Anh Quynh
9f523d1699
mips: properly map alias instruction back to public id. this fixes the crash reported by Pancake
11 years ago
Nguyen Anh Quynh
fe8030bdf0
update errno in cs_option() upon failure with CS_ERR_OPTION
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
b4ce38355a
x86: map xstorerng alias instruction back to xstore. bug reported by Nicolas Ruff
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
041e25dd66
add CS_ERR_OPTION type. cs_option() returns this error code on invalid option
11 years ago
Nguyen Anh Quynh
f9e3216568
x86: on mem reference, put scale after index register to be consistent with Intel style
11 years ago
Nguyen Anh Quynh
a236902656
fix CS_INSN_OFFSET: calculate offset based on the address of related instruction only
11 years ago
Nguyen Anh Quynh
a84d747f7c
fix typo in CS_INSN_OFFSET
11 years ago
Nguyen Anh Quynh
3829415ce6
HACK
11 years ago
Nguyen Anh Quynh
bb5460348b
add CS_INSN_OFFSET macro, so we can easily calculate offset of one insn, given its position in its array
11 years ago
Nguyen Anh Quynh
7f36d26245
more notes for HACK
11 years ago
Nguyen Anh Quynh
64f5033ceb
CREDITS.TXT
11 years ago
Nguyen Anh Quynh
4d70daf83d
note that Intel is default 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
26a43715d9
bump API to 1.7 due to the addition of @bytes to cs_insn
11 years ago
Nguyen Anh Quynh
79976c1370
fix some comments in capstone.h
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
c45b1588ef
Merge branch 'master' of https://github.com/joxeankoret/capstone into hexcode
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
Nguyen Anh Quynh
641b78375f
x86: fix relative call. bug reported by Joxean Koret
11 years ago
Nguyen Anh Quynh
c6975b72d6
Merge pull request #23 from danghvu/master
...
Fix a bug const generator does not account for assigning number as enum constant
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
4b95d9fa67
bump API to 1.6 to reflect the addition of the new API cs_option()
11 years ago
Nguyen Anh Quynh
e60590baf1
fix bindings to reflect the last commit
11 years ago
Nguyen Anh Quynh
f8db76ab94
arm64: correct value of ARM64_SFT_ROR
11 years ago
Nguyen Anh Quynh
6ae5a63993
update CREDITS
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
e4229c6939
merge with option branch
11 years ago
Nguyen Anh Quynh
c3a0a2c3d3
python: fix a memory leaking in cs_disasm_quick(). bug reported by Joxean Koret
11 years ago