Nguyen Anh Quynh
ec4ead2c02
function pointers in arch_init[] should be able to report errors
2013-12-28 14:34:21 +08:00
Nguyen Anh Quynh
0f9cb0fd52
fix English in config.mk
2013-12-28 14:12:54 +08:00
Nguyen Anh Quynh
51a7710ed7
java: update cs_version() prototype following the changes to this API in the core
2013-12-28 14:05:33 +08:00
Nguyen Anh Quynh
82fe8ff751
python: update binding following the changes to cs_version()
2013-12-28 14:04:20 +08:00
Nguyen Anh Quynh
0cb3d6cb24
we broke compatibility of bunch of important APIs, so bump API version to 2.0 rather than 1.1
2013-12-28 14:00:18 +08:00
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()
2013-12-28 13:59:09 +08:00
Nguyen Anh Quynh
a09bd630cf
remove old redundant module related macros in Makefile
2013-12-27 23:49:11 +08:00
Nguyen Anh Quynh
c4792c21ba
Merge pull request #55 from danghvu/master
...
Update Java binding for new API
2013-12-27 03:38:12 -08:00
danghvu
80348ba5f7
Clean up unused code and some coding style
2013-12-26 23:16:29 -06:00
danghvu
ef9bd0ab48
Let jna handle alignment, reduce performance but more cross-platform
2013-12-26 22:55:01 -06:00
danghvu
8677ce756c
Minor changes for x86 compatibility
2013-12-26 17:58:33 -06:00
danghvu
03be9f5820
Fix java binding for cs2 branch
2013-12-26 02:11:16 -06:00
Nguyen Anh Quynh
4ebdd216f1
add SONAME for .so library. issue reported by Anton Bolshakov
2013-12-25 23:54:45 +08:00
Nguyen Anh Quynh
9f0e6c24ae
on x86_64, install libs to /usr/lib64 if /usr/lib is inexistent. bug reported by Anton Bolshakov
2013-12-25 22:47:28 +08:00
Nguyen Anh Quynh
496a62b26b
python: update to new API cs_disasm_ex()
2013-12-25 14:21:49 +08:00
Nguyen Anh Quynh
04c19beefe
rename API cs_disasm_dyn() to cs_disasm_ex(), and intentionally breaks compatibility with 1.0
2013-12-25 13:26:22 +08:00
Nguyen Anh Quynh
b8f2af6317
minor fix to mention *BSD rather than *nix
2013-12-25 10:49:59 +08:00
Nguyen Anh Quynh
a6a11537d4
update COMPILE about newly added config.mk
2013-12-24 17:03:45 +08:00
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
2013-12-24 16:49:36 +08:00
Nguyen Anh Quynh
2b53b20272
x86: patch in acc registers for xchg. bug reported by felixwilhelm
2013-12-24 09:09:20 +08:00
Nguyen Anh Quynh
3a87fb9ad0
python: minor fix for comments of _dummy_cs class
2013-12-23 22:32:47 +08:00
Nguyen Anh Quynh
3cbb23064e
python: keep referencing Cs class so make sure it is around until all CsInsn objects are deleted. bug reported by felixwilhelm
2013-12-23 22:30:05 +08:00
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()
2013-12-22 21:01:17 +08:00
Nguyen Anh Quynh
9ac9fcf2b3
python: support newly added API cs_support() & cs_version_ex()
2013-12-22 18:54:05 +08:00
Nguyen Anh Quynh
f954f871e8
initialize all_arch in constructors
2013-12-22 18:49:22 +08:00
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()
2013-12-22 15:20:07 +08:00
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
2013-12-22 14:16:28 +08:00
Nguyen Anh Quynh
9a197b35a1
nullify handle when cs_open() fails. besides, return CS_ERR_ARCH when arch is unsupported
2013-12-22 13:41:38 +08:00
Nguyen Anh Quynh
58747adcbb
to be sure, initialize arch_init[] with NULL
2013-12-22 13:37:13 +08:00
Nguyen Anh Quynh
0655fe4b50
revert a wrong push on PKGCFGF
2013-12-22 13:23:20 +08:00
Nguyen Anh Quynh
08a57473d1
fix
2013-12-22 13:06:55 +08:00
Nguyen Anh Quynh
5219f64f84
make it less error-prone to handle config.mk
2013-12-22 13:00:48 +08:00
Nguyen Anh Quynh
0590a1f28a
del config.mk
2013-12-22 12:57:37 +08:00
Nguyen Anh Quynh
f6ca8524b7
make it easier to manage config.mk. also added some instructions for users
2013-12-22 12:53:59 +08:00
danghvu
2c5ba2a9a0
Revert to allow multiple arch compilations
2013-12-21 22:48:56 -06:00
danghvu
8cd8c4078e
Revert to allow multiple arch compilations
2013-12-21 21:28:34 -06:00
Nguyen Anh Quynh
0755282f04
reduce MAX_ARCH to save some memory. this is for internal usage only, so we can increase it in future if needed without having any compatibility issue
2013-12-22 11:13:07 +08:00
Nguyen Anh Quynh
d345839bce
support cs_option() for arm64 module
2013-12-22 11:10:56 +08:00
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
2013-12-22 10:40:58 +08:00
Nguyen Anh Quynh
00f01f1d4e
add comments for config.mk
2013-12-22 00:49:16 +08:00
Nguyen Anh Quynh
13a7d95763
add missing arch/*/module.c
2013-12-21 12:19:44 +08:00
Nguyen Anh Quynh
f185180436
cleaner implementation for arch modularization
2013-12-21 12:16:47 +08:00
Nguyen Anh Quynh
abc02059e3
make all module code static
2013-12-21 10:06:59 +08:00
Nguyen Anh Quynh
31baeb570f
Merge branch 'next' of https://github.com/aquynh/capstone into module
2013-12-21 10:01:02 +08:00
Nguyen Anh Quynh
7b6d3e27c4
Merge branch 'master' of https://github.com/aquynh/capstone into module
2013-12-21 10:00:44 +08:00
Nguyen Anh Quynh
7d02c92de8
code style: more fix for cs.c
2013-12-21 09:59:31 +08:00
Nguyen Anh Quynh
e76eae2c51
python: fix for README to keep lines within 80 columns for readability
2013-12-20 22:23:46 +08:00
Nguyen Anh Quynh
6eae731d56
Merge branch 'master' of https://github.com/0xKD/capstone into pkgconfig
2013-12-20 22:18:28 +08:00
Nguyen Anh Quynh
dc05d675be
Merge branch 'pkgconfig' of https://github.com/radare/capstone into pkgconfig
2013-12-20 22:04:31 +08:00
Nguyen Anh Quynh
7008356bc5
change cs_insn struct to follow the commit 18103e4a
. fixed Python & Java bindings accordingly. attn: bindings
2013-12-20 22:02:20 +08:00