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
43a9a9d36f
bump API version from 2.0 to 2.1 for core + Python & Java bindings
11 years ago
Nguyen Anh Quynh
4f220287d1
add CS_ERR_VERSION to report error when binding version is different from core's API version
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
64d4083c8f
add solaris support, and add make.sh
11 years ago
Nguyen Anh Quynh
bdd1e340dd
remove 'restrict' keyword in the definition of cs_vsnprintf(). also compile tests/* with -L option
11 years ago
Nguyen Anh Quynh
56aba591cc
correct some comments on CS_OPT_MEM option
11 years ago
Nguyen Anh Quynh
edeeb04a1a
make vsnprintf() user-defined function pointer, which is passed in via the same CS_OPT_MEM option like malloc/calloc etc
11 years ago
Nguyen Anh Quynh
0636f68331
increase size of @op_str to 160 to contain long operand string of some Neon Arm instructions
11 years ago
Nguyen Anh Quynh
2f05ab2af5
add some comments on the availability of some APIs relying on detail = ON
11 years ago
Nguyen Anh Quynh
b99aec8791
increase sizes of @op_str & ARM @operands to contain some ARM instructions with super long list of registers. issue reported by Deroko of ARTeam
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
Nguyen Anh Quynh
c263d350f7
correct comments on CS_OPT_ON/OFF regarding default detail option
11 years ago
Nguyen Anh Quynh
cf89cf60db
cosmetic fix for capstone.h
11 years ago
Nguyen Anh Quynh
c52352d6d9
add new error code CS_ERR_MEMSETUP to report error when user-defined dynamic mem management is uninitialized
11 years ago
Nguyen Anh Quynh
57aa8eca05
change argument type of cs_support() API from cs_arch to int. this is to give us more flexibility to use this API to check other stuffs in future
11 years ago
Nguyen Anh Quynh
a60ed8b044
more instructions on CS_OPT_MEM
11 years ago
Nguyen Anh Quynh
ac9c076fdf
minor fix for instruction on CS_OPT_MEM
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
af6ca7e20a
ppc: add branch hint support to cs_ppc struct
11 years ago
Nguyen Anh Quynh
f1d489b949
ppc: support details information
11 years ago
Nguyen Anh Quynh
34f96389a9
add new API: cs_strerror() return a string describing a given error code. this should be used together with cs_errno()
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
ae3649ff71
rename some C header guards to be without _ as prefix to follow naming convention of C language. suggested by Markus Elfring
11 years ago
Nguyen Anh Quynh
42c6b1acc7
initial support for PPC
11 years ago
Nguyen Anh Quynh
0cb3d6cb24
we broke compatibility of bunch of important APIs, so bump API version to 2.0 rather than 1.1
11 years ago
Nguyen Anh Quynh
b90cb993ed
API cs_version_ex(): since we already broke API compatibility, we are not afraid to break cs_version() too. this replaces cs_version() with cs_version_ex()
11 years ago
Nguyen Anh Quynh
04c19beefe
rename API cs_disasm_dyn() to cs_disasm_ex(), and intentionally breaks compatibility with 1.0
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
2296d5e926
add macro CS_MAKE_VERSION, which is handy to create combined version from major & minor version so that can be compared to the result of cs_version_ex()
11 years ago
Nguyen Anh Quynh
b880678a25
old cs_version() and new cs_version() are not compatible, so revert old one, and create new separate API cs_version_ex()
11 years ago
Nguyen Anh Quynh
0877747bcd
cs_version() can accept NULL arguments. this is useful if you dont care about major/minor, but only want to get returned combined version
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
f185180436
cleaner implementation for arch modularization
11 years ago
Nguyen Anh Quynh
7008356bc5
change cs_insn struct to follow the commit 18103e4a
. fixed Python & Java bindings accordingly. attn: bindings
11 years ago
Nguyen Anh Quynh
1bdb23a76d
add CS_OPT_MODE option. this allows us to change engine's mode at run-time
11 years ago
Nguyen Anh Quynh
46a5afd810
add comment to clarify which information in cs_insn is available when CS_OPT_DETAIL = OFF
11 years ago
Nguyen Anh Quynh
4994c587ad
bindings: support new 'detail' option for java & python
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
pancake
f0e4eed89d
Use const on all read-only buffers
11 years ago
Nguyen Anh Quynh
36df4bb6a7
revert the cs_version() API
11 years ago
Nguyen Anh Quynh
bb64b0bdca
more API version to capstone.h, and remove cs_version(). reset API back to 1.0 for public release
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
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
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
4d70daf83d
note that Intel is default syntax
11 years ago