102 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
650f96ce43 add new API cs_group_name() to return group name in string, given the group id 2014-07-08 08:59:27 +08:00
Nguyen Anh Quynh
cff03629ac arm64: assign NULL to char pointer, not zero. bug reported by Coverity 2014-06-18 14:04:42 +08:00
Nguyen Anh Quynh
eccb9da7a8 arm64: zeroout a whole cs_arm64 struct of MCI in *getInstruction(). 2014-06-17 13:34:25 +08:00
Nguyen Anh Quynh
d489a679f4 arm64: use CreateImm0() & CreateReg0() to create MCOperand* to avoid using malloc/free 2014-06-16 11:46:20 +08:00
Nguyen Anh Quynh
cbb33583b3 arm64: use SStream_concat0() instead of SStream_concat() for simple string processing whenever possible 2014-06-16 11:16:30 +08:00
Nguyen Anh Quynh
69582d71ae initialize cs_insn.detail by properly zero-out right members for each arch 2014-06-09 17:50:01 +07:00
Nguyen Anh Quynh
29fd0f6405 fix all the code in other non-X86 archs after the change made by commit 5329a6ffd485ce4b06305c1b104df5a0adab57e6 2014-06-09 08:00:18 +07:00
Nguyen Anh Quynh
5e2e660be7 fix some warnings reported by Coverity 2014-05-30 17:43:36 +08:00
Nguyen Anh Quynh
f721e3124d Disassembler -> Disassembly 2014-05-27 10:45:58 +08:00
Nguyen Anh Quynh
04f2ec6d0f cleanup redundant headers included 2014-05-27 10:39:04 +08:00
Nguyen Anh Quynh
6456481508 x86: add immediate operand (1) for SHL/SHR/ROR/ROL/SAR/SAL in detail mode & Intel syntax 2014-05-19 16:46:31 +08:00
Nguyen Anh Quynh
1922b2f74b arm64: clean reg_name_maps[] 2014-05-18 10:30:09 +08:00
Nguyen Anh Quynh
c5cad6cab3 avoid using stdbool.h to support compilers without C99 support 2014-05-15 21:40:24 +08:00
Nguyen Anh Quynh
8598a219f3 enable arch code from source with CAPSTONE_HAS_* for MSVC to pick up 2014-05-14 11:26:41 +08:00
Nguyen Anh Quynh
805fed5162 make checkDecoderPredicate() handle boolean casting for MSVC 2014-05-12 21:29:04 +08:00
Nguyen Anh Quynh
043702e9ef more fixes for warnings reported by MSVC 2014-05-12 16:17:00 +08:00
Nguyen Anh Quynh
638835a1d5 fix some warnings reported by MSVC 2014-05-12 15:15:32 +08:00
Nguyen Anh Quynh
bb0744df5d do not initialize some local vars unnecessarily. this problem was introduced when we fixed C89 issues for MSVC 2014-05-12 13:41:49 +08:00
Nguyen Anh Quynh
0596e11bd5 arm64: fix a wrong int type of a local var in printLabelOperand. this bug was introduced when we fixed C89 issue for MSVC 2014-05-10 09:17:48 +08:00
Axel 0vercl0k Souchet
605faf1db9 moved the hardcoded macros in the vcproj & just disable the warning for the crt 2014-05-09 20:40:00 +01:00
Nguyen Anh Quynh
42706a39e2 indentation with tab 2014-05-09 07:33:35 +08:00
Axel 0vercl0k Souchet
779d4c75d9 first changes to get a successfully compiled version of capstone on VS2012 2014-05-08 23:44:49 +01:00
Nguyen Anh Quynh
958927eb56 clean up after the last removal of SubtargetFeature.h 2014-05-08 22:59:28 +08:00
Nguyen Anh Quynh
a5ffdc3a80 x86: properly handle LOCK/REP in the core, so remove buch of hacks 2014-05-07 08:25:24 +08:00
Giovanni Condello
7c78778cfc Make capstone library compile with arm-none-eabi-gcc 4.8 2014-05-02 20:15:53 +02:00
Nguyen Anh Quynh
2cff6f61fc x86: handle instructions with LOCK/REP/REPNE prefix after other prefixes. bear with this until we have a better approach 2014-04-28 11:19:44 +08:00
Nguyen Anh Quynh
6211ab8e5e arm64: fix the rest code printing out negative numbers like big decimal positive numbers 2014-03-26 11:53:00 +08:00
Nguyen Anh Quynh
6f4840270a arm64: properly print immediate in friendly format in printSImm7ScaledOperand(). bug reported by Amanieu 2014-03-25 23:41:10 +08:00
Nguyen Anh Quynh
017df604dc arm64, mips, x86: print -9, not -0x9 2014-03-20 15:38:51 +08:00
Nguyen Anh Quynh
beda293c06 arm64: print label & offset in hex format for negative numbers 2014-03-20 15:30:54 +08:00
Nguyen Anh Quynh
f6c7cbc972 core: fix some warnings 2014-03-12 12:50:54 +08:00
Nguyen Anh Quynh
1c68ab9293 cleaning up unused code 2014-03-06 12:41:28 +08:00
Nguyen Anh Quynh
6b95e5ef74 arm64: fix a segfault bug in Diet engine 2014-03-04 14:23:00 +08:00
Nguyen Anh Quynh
4ef1668834 arm64: remove dead code 2014-02-25 17:30:08 +08:00
Nguyen Anh Quynh
fc83a439e5 add diet compile option (CAPSTONE_DIET option in config.mk). This reduces binary size by around 40% 2014-02-22 23:26:27 +08:00
Nguyen Anh Quynh
4f93d9c9dc arm64: simplify handling alias instruction (printAliasInstr) 2014-02-18 17:00:18 +08:00
Nguyen Anh Quynh
aa078a1c4a more fixes on C coding style 2014-01-23 22:29:04 +08:00
Nguyen Anh Quynh
2e79ba8996 fix C coding style 2014-01-23 22:22:45 +08:00
Alex Ionescu
b8a57fe285 Additional MSVC fixes, including to fixed tables (temporary so Quynh can see what to do). 2014-01-22 18:12:01 -08:00
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). 2014-01-22 09:45:00 -08:00
Nguyen Anh Quynh
53fc5c103a cs_open() should return error on invalid mode 2014-01-21 15:26:02 +08:00
Nguyen Anh Quynh
3732725342 rename mapping.c, mapping.h, module.c to have arch prefix. suggested by Alex Ionescu 2014-01-20 09:52:05 +08:00
Nguyen Anh Quynh
c272e9d000 do not use constructor to enable archs, so code is more portable. suggested by Alex Ionescu 2014-01-19 12:03:22 +08:00
Nguyen Anh Quynh
a9ffb440f8 replace strdup() with our cs_strdup(), which call cs_mem_malloc() internally 2014-01-15 18:27:01 +08:00
Nguyen Anh Quynh
cbb10ba0b6 arm64: update core 2014-01-15 12:38:38 +08:00
Nguyen Anh Quynh
dcbe0f8322 arm64: find alias insn after the main isnn name mapping. 2014-01-12 10:11:36 +08:00
Nguyen Anh Quynh
dc6b9574ff arm64: more changes to make code closer to llvm 2014-01-12 00:52:51 +08:00
Nguyen Anh Quynh
126507741c arm64: make the code closer to llvm code 2014-01-11 23:52:11 +08:00
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 2014-01-11 12:55:31 +08:00
danghvu
701b850af9 Fix: bug that static link does not know constructor 2014-01-09 11:14:40 +07:00