Commit Graph

343 Commits

Author SHA1 Message Date
Ben Cheney
19b89432eb Fix build under VS2012 (i.e. MSC_VER = 1700)
cstool.c currently imports inttypes.h, which breaks
building on older Visual Studio versions (I've been
testing 2012). This commit removes the explicit include
of inttypes.h, which is already handled in platform.h
(which is included by capstone.h). A define for the
function strtoull (used by cstool) has also been added
to platform.h for the case where MSC_VER <= 1700.

I don't know what effect this will have on OS X builds
as I'm unable to test on that platform.

Also, cstool.c doesn't need to include stdio.h
because it's already included by capstone.h.
2016-12-21 11:00:25 +08:00
Gabor Buella
1ae55ce65f x86: fix X86_REL_ADDR macro - handle two-byte jump instructions 2016-11-22 10:22:13 +08:00
Nguyen Anh Quynh
1e5a48535c add CS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:29:21 +08:00
Nguyen Anh Quynh
3f1df56bf1 improve dependency on header files *.h, and remove clean from make.sh. see PR #793 2016-10-23 02:09:14 +08:00
Satoshi Tanda
cb003974a4 fix typo, style
Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com>
2016-09-28 07:33:14 -07:00
qc1iu
96baed21a5 fix annotation. 2016-09-07 09:48:42 +08:00
mrexodia
fb2c843f66 changed fcompi to fcomip and fucompi to fucomip 2016-08-30 23:10:04 +02:00
Nguyen Anh Quynh
e93290962c arm64: add NEGS & NGCS alias instructions. this fixes issue #752 2016-08-23 14:01:17 +08:00
McLovi9
033e803c93 Update capstone.h
VS2015: error: C2440: 'initializing': cannot convert from 'const char [4]' to 'char *'
2016-08-12 22:58:16 +02:00
Nguyen Anh Quynh
fae35cedac x86: properly handle SSE/AVX instructions 2016-07-15 20:37:19 +08:00
Niels Boehm
06cc17d41c Fix typo in m68k constant for immediate operand. 2016-06-15 08:25:59 +02:00
Nguyen Anh Quynh
e3f94ac4ab fix merging conflict 2016-05-22 08:58:33 +08:00
Nguyen Anh Quynh
820d7d02c7 Merge pull request #669 from zachriggle/next-mips
Add MIPS_GRP_INT and MIPS_GRP_CALL
2016-05-14 09:36:49 +08:00
tandasat
9779011a0a fix merge error 2016-05-12 04:28:28 -07:00
tandasat
e36384e224 Merge remote-tracking branch 'upstream/next' into next 2016-05-11 22:52:34 -07:00
tandasat
d4ef430b33 port Windows driver support 2016-05-11 21:48:32 -07:00
Inokentiy Babushkin
46e10afb24 Changed register pair handling in M68K header
* instead of using bit operations, we now leverage the size of the
  enclosing union to avoid running code and provide a more convenient
  interface to the library user.
2016-05-08 23:19:47 +02:00
Zach Riggle
1b3f07ad12 Add MIPS_GRP_XXX aliases for generic types. 2016-05-03 07:30:31 -07:00
Ruslan Kabatsayev
80003bb4ff Remove never used cs_x86_op::fp 2016-04-23 14:45:24 +03:00
Nguyen Anh Quynh
d5277c10f0 Merge branch 'next' of https://github.com/koutheir/capstone into koutheir-next 2016-04-12 23:05:37 +07:00
Nguyen Anh Quynh
5c85a75d40 m68k: fix conflicts when merging with #625 2016-04-12 19:58:29 +07:00
Nguyen Anh Quynh
51f19ab80b m68k: fix spelling error in comments of m68k.h 2016-04-12 18:45:04 +08:00
Nguyen Anh Quynh
861d6b6482 Merge branch 'next' of https://github.com/aquynh/capstone into next 2016-04-12 18:42:46 +08:00
Nguyen Anh Quynh
2ea6ec69b2 arm: change data type of cs_arm_op.reg back to int because this field can also take arm_sysreg value 2016-04-12 13:46:19 +08:00
Nguyen Anh Quynh
ae73149d67 arm64: change access field type to uint8_t 2016-04-12 13:41:38 +08:00
Ben Nagy
d35a2b7738 Add ENDING constants to be consistent with other archs 2016-04-12 12:27:54 +09:30
Ben Nagy
0e4738d50b fix spelling error in comments 2016-04-12 11:16:18 +09:30
Nicolas PLANEL
4173af3e46 [M68K] typo on m68k_address_mode private struct 2016-04-11 22:14:52 +10:00
Daniel Collin
0bcb2e546c Various fixes
* Fixed a break indentation
* Fixed incorrect enum value for M68K_GRP_IRET
* Fixed so groups_count is set to 0 at init
* Added group_count printing in python example
2016-04-10 16:16:28 +02:00
Daniel Collin
d994c74b02 [M68K] Added basic groups
Added support for basic groups in the M68K backend. Also did some minor cleanups/whitespace fixes while at it.

Relates to this issue https://github.com/aquynh/capstone/issues/494
2016-04-10 10:55:21 +02:00
Koutheir Attouchi
9f2070748c Added support for building binaries for Windows CE 7 on ARMv7 (a.k.a., Windows Embedded Compact 7) and for Windows CE 8 on ARMv7 (a.k.a., Windows Embedded Compact 2013).
Added support for building binaries for Windows CE 7 on ARMv7 (a.k.a., Windows Embedded Compact 7) and for Windows CE 8 on ARMv7 (a.k.a., Windows Embedded Compact 2013).

Added support for building binaries for Windows CE 7 on ARMv7 (a.k.a., Windows Embedded Compact 7) and for Windows CE 8 on ARMv7 (a.k.a., Windows Embedded Compact 2013).

Replaced header inclusions of "stdint.h" and "intrin.h" by selective inclusions to support platforms that do not provide those headers. The header "platform.h" handles the platform test.
Updated the build script for Windows CE 7 on ARMv7.
2016-04-07 17:05:00 +02:00
Inokentiy Babushkin
318607af63 Fixed xcore header to comply with bindings
and fixed whitespace
2016-04-07 12:23:56 +02:00
Inokentiy Babushkin
16a67a9c6d Fixed systemz header to comply with bindings 2016-04-07 12:19:20 +02:00
Inokentiy Babushkin
9a03b002dc Fixed sparc header to comply with bindings 2016-04-07 12:15:49 +02:00
Inokentiy Babushkin
f0a1d0dfab Fixed register types
In some architecture headers, register values were
represented as `unsigned int`/`uint8_t` or other types
instead of the corresponding enums. This commit fixes most (all)
occurences of this problem.
2016-04-04 23:07:01 +02:00
Nguyen Anh Quynh
a23f9d37ed add CS_OPT_UNSIGNED option to print immediate in unsigned form. only ARM is supported for now (issue #585) 2016-03-14 13:52:23 +08:00
Nguyen Anh Quynh
6de6425072 Merge branch 'arm64_reg_access' of https://github.com/pranith/capstone into pranith-arm64_reg_access 2016-01-19 17:22:04 +08:00
Nguyen Anh Quynh
3722c74f69 cosmetic change in capstone.h 2016-01-12 11:48:48 +08:00
Pranith Kumar
653827bf5a Add register access info for ARM64
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
2016-01-06 15:54:10 -05:00
Nguyen Anh Quynh
1f723204c6 m68k: coding style 2015-10-05 23:13:48 +08:00
Nguyen Anh Quynh
93a007dc0e m68k: fix prototype guard for m68k.h 2015-10-04 14:52:38 +08:00
Nguyen Anh Quynh
ac63d5b995 m68k: cleanup & code style 2015-10-04 14:34:51 +08:00
Daniel Collin
2ee675c10a This adds M68K support to Capstone 2015-10-02 20:47:00 +02:00
pancake
8848ea3f68 Fix build for cygwin 2015-09-22 16:33:27 +02:00
Nguyen Anh Quynh
8aba4cd913 add error code CS_ERR_X86_MASM 2015-08-09 10:52:18 -07:00
Nguyen Anh Quynh
62918abb60 support new syntax CS_OPT_SYNTAX_MASM for X86 2015-08-09 10:34:19 -07:00
Zach Riggle
1e882cf542 Add ARM64_GRP_INT to AArch64 for SVC instruction 2015-07-27 12:42:06 -04:00
Gabriel Corona
8102aacfda Make PowerPC imm 64 bit (instad 32 bit) 2015-05-14 23:16:55 +02:00
Nguyen Anh Quynh
c85a0e4f44 arm: correct value of ARM_GRP_INT (=CS_GRP_INT=4) 2015-05-08 23:54:37 +08:00
derrek
01a744c329 arm: Added instruction group ARM_GRP_INT, ARM_INS_SVC is now using it. 2015-05-08 13:08:55 +02:00