Nguyen Anh Quynh
d7e42b7d36
rename all the constants marking ending from _MAX to _ENDING. this also updates Java/Python/Ocaml bindings accordingly
10 years ago
Yegor Derevenets
ced9d24e35
Workaround missing <inttypes.h> on MSVC 2010
10 years ago
Nguyen Anh Quynh
1738a3e6bf
sparc: handle some alias instructions & more details for some special instructions. update Python & Java bindings accordingly with new instructions & registers
10 years ago
Nguyen Anh Quynh
0c07cc9b06
zero-out instruction details, mnemonic & op_str so cs_insn doesnt have garbage in Diet mode
10 years ago
Nguyen Anh Quynh
4c95022c74
fix warnings on unused variables when compiling in Diet mode
10 years ago
Mr. eXoDia
9be1f93f88
fixed warnings in MSVC x64 compilation
10 years ago
Nguyen Anh Quynh
4b6b15fcb1
fix more MSVC warnings
10 years ago
Nguyen Anh Quynh
14b684e07d
last commit missed a check
10 years ago
Nguyen Anh Quynh
b1e87e3e31
arm, mips, ppc, spac, x86: printAliasInstr() should handle \t (besides space) as separate char between mnemonic & operands
10 years ago
Nguyen Anh Quynh
a726402513
sparc: update core. this added/removed some instructions & groups. updated Python & Java bindings accordingly
10 years ago
Nguyen Anh Quynh
159ddbd99f
ppc: add new groups to group_name_maps[]
10 years ago
flyingsymbols
298d413bbc
* added a test file to suite for testing invalid and valid instruction sequences
...
* fixed and added a test for a thumb-2 invalid sequence that was incorrectly allowed before these changes (pop.w with sp argument included)
* fixed and added a test for a blx from thumb to ARM that had its immediate argument incorrect (misaligned)
* eliminated some warnings by explicitly casting so I could turn on
treat warnings as errors locally
General notes:
* probably worth turning on treat all warnings as errors in the msvc project files, had a subtle bug that resulted from a missing declaration causing differences in dll and static compilation modes
( code was working incorrectly in dll form because of missing declaration in arch/ARM/ARMMapping.h for new function ARM_blx_to_arm_mode. Something about the linking was confusing ld when making the dll, and the resulting offsets were wonky (e.g. the added ble test would show up as #0x1fc instead of #0x1fe like it should have )
* the invalid pop was being treated as a soft fail which then gets coerced
to a success because it is != MCDisassembler_Fail in Thumb_getInstruction
what are the semantics of a soft fail? Maybe we should be able to set up
whether or not we want a soft fail to be a real fail in the csh struct?
10 years ago
Nguyen Anh Quynh
55cd996add
sparc: initialize detail->sparc in Sparc_getInstruction. bug reported by Ben Nagy
10 years ago
Nguyen Anh Quynh
e1fc8a83ba
sparc: initialize detail->sparc in Sparc_getInstruction. bug reported by Ben Nagy
10 years ago
Nguyen Anh Quynh
650f96ce43
add new API cs_group_name() to return group name in string, given the group id
10 years ago
Nguyen Anh Quynh
cae09bf543
replace offset_of with offsetof from stddef.h
10 years ago
Nguyen Anh Quynh
3d3b6cec01
sparc: use CreateImm0() & CreateReg0() to create MCOperand* to avoid using malloc/free
10 years ago
Nguyen Anh Quynh
9b91de0ae3
sparc: use SStream_concat0() instead of SStream_concat() for simple string processing whenever possible
10 years ago
Nguyen Anh Quynh
69582d71ae
initialize cs_insn.detail by properly zero-out right members for each arch
10 years ago
Nguyen Anh Quynh
29fd0f6405
fix all the code in other non-X86 archs after the change made by commit 5329a6ffd4
10 years ago
Nguyen Anh Quynh
04f2ec6d0f
cleanup redundant headers included
10 years ago
Nguyen Anh Quynh
5d6383e335
sparc: SPARC_CC_ICC_N should not have the same value as SPARC_CC_INVALID. bug reported by Jason Oster
10 years ago
Nguyen Anh Quynh
6456481508
x86: add immediate operand (1) for SHL/SHR/ROR/ROL/SAR/SAL in detail mode & Intel syntax
10 years ago
Nguyen Anh Quynh
c5cad6cab3
avoid using stdbool.h to support compilers without C99 support
11 years ago
Nguyen Anh Quynh
8598a219f3
enable arch code from source with CAPSTONE_HAS_* for MSVC to pick up
11 years ago
Nguyen Anh Quynh
805fed5162
make checkDecoderPredicate() handle boolean casting for MSVC
11 years ago
Nguyen Anh Quynh
043702e9ef
more fixes for warnings reported by MSVC
11 years ago
Nguyen Anh Quynh
6893ec535e
more warnings fixed reported by MSVC
11 years ago
Nguyen Anh Quynh
abffe02a46
sparc: recover autogen code in arch/Sparc/SparcGenDisassemblerTables.inc
11 years ago
Nguyen Anh Quynh
bb0744df5d
do not initialize some local vars unnecessarily. this problem was introduced when we fixed C89 issues for MSVC
11 years ago
Axel 0vercl0k Souchet
779d4c75d9
first changes to get a successfully compiled version of capstone on VS2012
11 years ago
Nguyen Anh Quynh
958927eb56
clean up after the last removal of SubtargetFeature.h
11 years ago
Nguyen Anh Quynh
a5ffdc3a80
x86: properly handle LOCK/REP in the core, so remove buch of hacks
11 years ago
Nguyen Anh Quynh
2cff6f61fc
x86: handle instructions with LOCK/REP/REPNE prefix after other prefixes. bear with this until we have a better approach
11 years ago
Nguyen Anh Quynh
a3c9bd678f
sparc: more fix to print negative numbers in more friendly way
11 years ago
Nguyen Anh Quynh
88b2833760
sparc: cleanup
11 years ago
Nguyen Anh Quynh
f6c7cbc972
core: fix some warnings
11 years ago
Nguyen Anh Quynh
65c7a01d4f
sparc: fix warning on unused variable
11 years ago
Nguyen Anh Quynh
641be49c2f
sparc: fix mnemnonic for some alias instructions
11 years ago
Nguyen Anh Quynh
78153f59bb
sparc: add SWAP instruction
11 years ago
Nguyen Anh Quynh
1055a2e22a
python: support Sparc
11 years ago
Nguyen Anh Quynh
05e27138ae
core: add Sparc arch
11 years ago