Commit Graph

341 Commits

Author SHA1 Message Date
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 1ca65dafc7 minor fix to mention *BSD rather than *nix 2013-12-25 10:51:16 +08:00
Nguyen Anh Quynh aeb18633e4 update COMPILE about newly added config.mk 2013-12-24 17:04:40 +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
Kedar 6b7b7d9c97 Make instruction distinction clearer 2013-12-20 17:00:15 +05:30
Nguyen Anh Quynh a1818520df python: correct the last commit to fix cs_disasm_quick() 2013-12-20 18:59:02 +08:00
Nguyen Anh Quynh 630a86bcd8 python: cs_disasm_quick() doesnt create CsInsn array on return, and makes reference to non-existent self. bug reported by Mario Vilas 2013-12-20 18:58:41 +08:00
Nguyen Anh Quynh 5f0c6869ca python: correct the last commit to fix cs_disasm_quick() 2013-12-20 18:55:03 +08:00
Kedar edf10913fc Update README for Windows install 2013-12-20 16:04:18 +05:30
Nguyen Anh Quynh e71abd4666 python: cs_disasm_quick() doesnt create CsInsn array on return, and makes reference to non-existent self. bug reported by Mario Vilas 2013-12-20 17:48:27 +08:00
Nguyen Anh Quynh 18103e4a22 size down insn_map structructure by reducing the size of some fields. this alone makes lib binary size 2.6MB smaller 2013-12-20 17:35:15 +08:00
danghvu 629a6d8901 Rename arch.h -> module.h 2013-12-20 01:44:17 -06:00
danghvu 7711858da6 Minor fix credit 2013-12-20 01:23:17 -06:00
danghvu 02db488199 Either all arch or only one of them 2013-12-20 00:57:12 -06:00
danghvu 29e01a6895 arch/*/include.h -> arch/*/module.h 2013-12-20 00:20:57 -06:00
danghvu a2e7ef1b73 Fix coding style 2013-12-19 23:12:30 -06:00
danghvu 0b6ea044ff Move cs_option dispatch into arch specific 2013-12-19 23:07:26 -06:00
danghvu 6f52bf9997 Move arch config into config.mk 2013-12-19 22:43:01 -06:00
danghvu 2b19296439 Fix indentation problem 2013-12-19 22:40:28 -06:00
pancake edc1ef962f Handle static linking with pkg-config archive variable 2013-12-19 23:10:08 +01:00