Nguyen Anh Quynh
b2adb18802
tests: dummy setup LDFLAGS for Gentoo
2014-01-02 14:47:14 +08:00
Nguyen Anh Quynh
ce3ef95e9c
python: simplify access to operand's information thanks to some getters for <ARCH>Ops classes
2014-01-01 22:31:14 +08:00
Nguyen Anh Quynh
6950f21d9d
Makefile: correctly set /usr/lib64 as installed dir for Gentoo 64-bit
2014-01-01 21:40:49 +08:00
Nguyen Anh Quynh
08a19ed5c7
refine insn_map structure to further reduce binary size: this makes .SO file around 120K smaller
2014-01-01 00:04:55 +08:00
Nguyen Anh Quynh
591d98cb24
python: cs_disasm*() now use generator rather than a list to return disassembled instructions. suggested by Mario Vilas.
2013-12-31 22:56:07 +08:00
Nguyen Anh Quynh
bed2b56c80
Merge branch 'cs2' into next
2013-12-31 20:28:39 +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
36ac13ce12
remove old redundant module related macros in Makefile
2013-12-27 23:50:01 +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
089b716e90
add SONAME for .so library. issue reported by Anton Bolshakov
2013-12-26 00:09:43 +08: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
02ac24fd1d
on x86_64, install libs to /usr/lib64 if /usr/lib is inexistent. bug reported by Anton Bolshakov
2013-12-25 22:47:51 +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
1ca65dafc7
minor fix to mention *BSD rather than *nix
2013-12-25 10:51:16 +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
aeb18633e4
update COMPILE about newly added config.mk
2013-12-24 17:04:40 +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