Nguyen Anh Quynh
1c68ab9293
cleaning up unused code
11 years ago
Nguyen Anh Quynh
6b95e5ef74
arm64: fix a segfault bug in Diet engine
11 years ago
Nguyen Anh Quynh
4ef1668834
arm64: remove dead code
11 years ago
Nguyen Anh Quynh
fc83a439e5
add diet compile option (CAPSTONE_DIET option in config.mk). This reduces binary size by around 40%
11 years ago
Nguyen Anh Quynh
4f93d9c9dc
arm64: simplify handling alias instruction (printAliasInstr)
11 years ago
Nguyen Anh Quynh
aa078a1c4a
more fixes on C coding style
11 years ago
Nguyen Anh Quynh
2e79ba8996
fix C coding style
11 years ago
Alex Ionescu
b8a57fe285
Additional MSVC fixes, including to fixed tables (temporary so Quynh can see what to do).
11 years ago
Alex Ionescu
46018db884
Initial set of changes to support building with MSVC 2013. Right now there's a bunch fo assumptions in the .vcxproj file and some things are not as clean as they should be, but it does build a full build and works (at least the x86 side). The point of this initial checkpoint is to make sure that nothing breaks on the GCC side, that everyone is ok with the changes to the source (or if better fixes/typing can be done).
11 years ago
Nguyen Anh Quynh
06b3c05e20
cs_open() should return error on invalid mode
11 years ago
Nguyen Anh Quynh
53fc5c103a
cs_open() should return error on invalid mode
11 years ago
Nguyen Anh Quynh
3732725342
rename mapping.c, mapping.h, module.c to have arch prefix. suggested by Alex Ionescu
11 years ago
Nguyen Anh Quynh
f328f30fd9
rename mapping.c, mapping.h, module.c to have arch prefix. suggested by Alex Ionescu
11 years ago
Nguyen Anh Quynh
c272e9d000
do not use constructor to enable archs, so code is more portable. suggested by Alex Ionescu
11 years ago
Nguyen Anh Quynh
a9ffb440f8
replace strdup() with our cs_strdup(), which call cs_mem_malloc() internally
11 years ago
Nguyen Anh Quynh
cbb10ba0b6
arm64: update core
11 years ago
Nguyen Anh Quynh
dcbe0f8322
arm64: find alias insn after the main isnn name mapping.
11 years ago
Nguyen Anh Quynh
dc6b9574ff
arm64: more changes to make code closer to llvm
11 years ago
Nguyen Anh Quynh
126507741c
arm64: make the code closer to llvm code
11 years ago
Nguyen Anh Quynh
a8eb7a5ca5
rename memory function pointer types to have cs_ prefix. also rename internal function pointers my_* to have cs_mem_ prefix - suggested by Pancake
11 years ago
danghvu
701b850af9
Fix: bug that static link does not know constructor
11 years ago
Nguyen Anh Quynh
77944e0dab
arm64: add big-endian support
11 years ago
Nguyen Anh Quynh
9fac512efc
no longer need to free insn_cache for each arch: simply do it from cs_close()
11 years ago
Nguyen Anh Quynh
1acfd0b883
move insn_cache into cs_struct to gurantee thread-safe
11 years ago
Nguyen Anh Quynh
c7404075ff
move internal memory management declarations from utils.h to cs_priv.h
11 years ago
Nguyen Anh Quynh
24bf0d9079
add new option CS_OPT_MEM for cs_option(): this enable user-defined dynamic memory management. idea proposed by Pancake
11 years ago
Nguyen Anh Quynh
f1d489b949
ppc: support details information
11 years ago
Nguyen Anh Quynh
5802e5e9a0
correct the last fix
11 years ago
Nguyen Anh Quynh
5ef633ce91
arm64 & arm: do not update details when detail option is off. bug reported by Pancake.
11 years ago
Nguyen Anh Quynh
b265406960
cache insns for fast lookup in mapping.c. based on the idea of Dang Hoang Vu
11 years ago
Nguyen Anh Quynh
57ab21b558
rename some old header guards from SB to CS
11 years ago
Nguyen Anh Quynh
19b0de3c8d
moving static doing_mem variable into cs_struct to guarantee thread-safe when handling memory operands
11 years ago
Nguyen Anh Quynh
04ac9c3725
arm,arm64,mips,x86: rename PPC_getFeatureBits() to getFeatureBits()
11 years ago
Nguyen Anh Quynh
42c6b1acc7
initial support for PPC
11 years ago
Nguyen Anh Quynh
ec4ead2c02
function pointers in arch_init[] should be able to report errors
11 years ago
Nguyen Anh Quynh
4fe224b1ed
change API cs_disasm_dyn(): break cs_insn into 2 structures, and put all details into new structure cs_detail. this break API compatibility
11 years ago
Nguyen Anh Quynh
f954f871e8
initialize all_arch in constructors
11 years ago
Nguyen Anh Quynh
d345839bce
support cs_option() for arm64 module
11 years ago
Nguyen Anh Quynh
39a42eddfb
Change the way of supporting arch modularization
...
- Always use libapstone.so as library name, no matter which archs are compiled in.
- Add new API cs_support() to check if a particular arch is supported.
- Change cs_version(): return hexical version which encodes both major & minor version.
the return value can be comparable.
- Bump API version to 1.1
11 years ago
Nguyen Anh Quynh
13a7d95763
add missing arch/*/module.c
11 years ago
Nguyen Anh Quynh
f185180436
cleaner implementation for arch modularization
11 years ago
Nguyen Anh Quynh
abc02059e3
make all module code static
11 years ago
danghvu
7711858da6
Minor fix credit
11 years ago
danghvu
29e01a6895
arch/*/include.h -> arch/*/module.h
11 years ago
danghvu
a2e7ef1b73
Fix coding style
11 years ago
danghvu
34d49d935b
Support compilation of individual arch
11 years ago
Nguyen Anh Quynh
ea8c5af48e
arm64: the left-over fix of the last commit
11 years ago
Nguyen Anh Quynh
4d3e852fbb
detail option: provide instruction id even when detail option is OFF
11 years ago
Nguyen Anh Quynh
a209e67f8a
support to turn on/off building instruction details
11 years ago
Nguyen Anh Quynh
1f24586535
arm64: turn off debug output
11 years ago