Axel 0vercl0k Souchet
35c8467275
still want that to compile on other systems
11 years ago
Nguyen Anh Quynh
42706a39e2
indentation with tab
11 years ago
Axel 0vercl0k Souchet
779d4c75d9
first changes to get a successfully compiled version of capstone on VS2012
11 years ago
Nguyen Anh Quynh
958927eb56
clean up after the last removal of SubtargetFeature.h
11 years ago
Nguyen Anh Quynh
a5ffdc3a80
x86: properly handle LOCK/REP in the core, so remove buch of hacks
11 years ago
Nguyen Anh Quynh
2cff6f61fc
x86: handle instructions with LOCK/REP/REPNE prefix after other prefixes. bear with this until we have a better approach
11 years ago
Nguyen Anh Quynh
003c2608fc
arm64, mips, x86: print -9, not -0x9
11 years ago
Nguyen Anh Quynh
1c68ab9293
cleaning up unused 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
bc0b3b92fd
mips: update core
11 years ago
Nguyen Anh Quynh
74c41ebb1d
mips: simplify handling alias insn
11 years ago
Nguyen Anh Quynh
017df604dc
arm64, mips, x86: print -9, not -0x9
11 years ago
Nguyen Anh Quynh
f6c7cbc972
core: fix some warnings
11 years ago
Nguyen Anh Quynh
a82a0890a6
more more fixes on 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
75ef2426ea
mips: update core
11 years ago
Nguyen Anh Quynh
56774a158c
mips: printInstruction() is static function. add dummy third argument MRI to be consistent with other archs
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
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
b265406960
cache insns for fast lookup in mapping.c. based on the idea of Dang Hoang Vu
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
0b6ea044ff
Move cs_option dispatch into arch specific
11 years ago
danghvu
34d49d935b
Support compilation of individual arch
11 years ago
Nguyen Anh Quynh
2578d3b9e6
mips: use alias registers
11 years ago
Nguyen Anh Quynh
4626224a33
mips: update doing_mem status, regardless of detail option, since that is also used to avoid printing zero offset in mem reference
11 years ago