Commit graph

276 commits

Author SHA1 Message Date
Nguyen Anh Quynh
fe5ecc6eba fix some warnings on VS2010 on redefining INTxx_MIN, INTxx_MAX 2017-03-06 14:40:30 +08:00
Nguyen Anh Quynh
10be4e1292 arm64: rename enum arm64_mrs_reg to arm64_sysreg 2017-02-22 15:34:30 +08:00
Ben Cheney
7efaf351d2 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 13:12:32 +10:30
Gabor Buella
07dc190b7a x86: fix X86_REL_ADDR macro - handle two-byte jump instructions 2016-11-21 16:40:42 +01:00
Nguyen Anh Quynh
6624dc446e add CS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:23:55 +08:00
Nguyen Anh Quynh
111d8442d1 improve dependency on header files *.h, and remove clean from make.sh. see PR #793 2016-10-23 02:02:51 +08:00
Satoshi Tanda
fbe096d147 fix typo, style
Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com>
2016-09-27 07:39:51 -07:00
qc1iu
0410b910e7 fix annotation. 2016-09-07 09:37:14 +08:00
tandasat
11f254250c edit documents and comments 2016-05-14 16:04:28 -07:00
Nguyen Anh Quynh
7c723bceca Merge branch 'windriver' 2016-05-03 23:04:36 +08:00
Elias Bachaalany
82ff1d0eef minor mode: fixed argument name (code documentation) 2016-04-29 09:55:08 -07:00
Elias Bachaalany
5ae5df7327 minor typo fix 2016-04-26 14:43:21 -07:00
tandasat
3b6c036f7d add *_MIN *_MAX defines for system has no stdint.h 2016-04-23 15:54:24 -07:00
tandasat
5aedc44744 skip stdint.h when not available 2016-04-11 08:48:28 -07:00
tandasat
6ffad86198 move contents of myinttype.h to platform.h 2016-04-11 08:01:09 -07:00
tandasat
f12822b0c3 replace stdint.h in API headers 2016-04-10 08:49:41 -07:00
tandasat
b66797e396 Add space after CAPSTONE_API 2016-04-09 11:00:00 -07:00
tandasat
1ec8288c40 Replace CAPSTONE_API to mycallback and cs_skipdata_cb_t 2016-04-08 08:14:04 -07:00
tandasat
570834e363 Rename CS_OPT_NONE to CS_OPT_INVALID 2016-04-08 08:05:06 -07:00
tandasat
1ebd44e189 Use CAPSTONE_API for cs_skipdata_cb_t 2016-04-03 18:05:58 -07:00
tandasat
7f2395f6b8 Removed CAPSTONE_CDECL 2016-04-03 11:13:30 -07:00
tandasat
be2e9d17aa Addressed compile/link errors when built on VS for drivers 2016-03-31 18:14:43 -07:00
tandasat
bf220ff859 Swiched from stdint.h to myinttypes.h 2016-03-31 18:03:33 -07:00
tandasat
cd124deb92 Supported a WDK project 2016-03-31 18:02:16 -07:00
kevemueller
d6ba243bb1 improve type safety, use ppc_reg instead of unsigned int 2015-12-13 12:53:44 +01:00
pancake
e72de39fb6 Fix build for cygwin 2015-09-23 00:16:34 +08:00
Taras Tsugrii
1de3b3da0c Fix spelling nits 2015-05-05 13:57:15 -07:00
mrexodia
0cf33bca80 Update capstone.h 2015-04-25 09:06:46 +08:00
Nguyen Anh Quynh
5a27eb6b7a Merge branch 'v3' 2015-04-10 23:32:15 +08:00
reverser
cf6201419a Add support to embed Capstone into OS X kernel extensions. 2015-04-10 23:28:12 +08:00
Nguyen Anh Quynh
edb16e217f remove stdio.h from capstone.h. this is to make it possible to embed to OSX kernel. issue reported by Pedro 2015-04-09 22:56:36 +08:00
Jon Erickson
33dd68b1ac Changed type for cs_x86_op.reg
Fixed type for cs_x86_op reg to be a x86_reg instead of unsigned int.  This makes it easier to understand that reg is a x86_reg enumeration versus something else.  It is currently not clear which type reg is.
2015-03-18 15:08:47 -04:00
Hilko Bengen
d83bf84cba Limit exported symbols
Make sure that only symbols that are part of the API are exported by
the library -- similar to __declspec(dllexport) for the MSVC
compiler
2015-02-27 15:51:56 +08:00
Nguyen Anh Quynh
56128da515 arm64: for operand type IMM, value should have the type int64_t, not int32_t. all bindings should be fixed 2014-11-17 11:27:15 +08:00
Nguyen Anh Quynh
a7b06fda6e capstone.h: add comments on some hardware modes 2014-11-13 12:00:48 +08:00
Nguyen Anh Quynh
84df600944 tests: update Mips modes to CS_MODE_MIPS32 & CS_MODE_MIPS64 2014-11-13 11:27:51 +08:00
Nguyen Anh Quynh
d3f0373ed1 add CS_MODE_MIPS32 & CS_MODE_MIPS64. these modes are aliases of CS_MODE_32 & CS_MODE_64, so no old code is broken 2014-11-13 11:20:09 +08:00
Nguyen Anh Quynh
cc60d10940 mips: add comments on mips32 & mips64 to capstone.h 2014-11-12 18:18:26 +08:00
Nguyen Anh Quynh
753f44a6b7 capstone.h: add comment for CS_ARCH_ALL 2014-11-12 11:05:42 +08:00
Nguyen Anh Quynh
8cdafda551 arm: add new field mem_barrier to cs_arm struct. this requires changes in bindings 2014-11-11 22:30:30 +08:00
Nguyen Anh Quynh
c942f22a09 arm: support new mode CS_MODE_V8 for Armv8 A32 encodings 2014-11-10 21:52:09 +08:00
Nguyen Anh Quynh
3ab509192a use common instruction groups across all architectures. this adds cs_group_type to capstone.h. suggestion by @zneak 2014-10-31 14:40:45 +08:00
Nguyen Anh Quynh
c58e704517 do not need to explicitly assign values for operand types in the last commit 2014-10-31 13:55:18 +08:00
Nguyen Anh Quynh
21ac056728 use common operand types across all architectures. this adds cs_op_type to capstone.h. suggestion by @zneak 2014-10-31 13:08:28 +08:00
Nguyen Anh Quynh
a18abdd178 capstone.h: coding style 2014-10-29 21:32:06 +08:00
Nguyen Anh Quynh
024e55ebeb capstone.h: add notes on cs_disasm() vs cs_disasm_iter() 2014-10-20 23:32:06 +08:00
Nguyen Anh Quynh
de65619fa8 x86: add prefix constants X86_PREFIX_*. suggested by Pancake 2014-10-18 06:15:49 +08:00
Nguyen Anh Quynh
85cfb1839c x86: get rid of redundant X86_INS_LOCK/REP/RENE. issue reported by Pancake 2014-10-18 05:53:32 +08:00
Nguyen Anh Quynh
aeaff79290 ppc: change type of ppc_op_crx.cond type to ppc_bc 2014-10-17 21:36:38 +08:00
Nguyen Anh Quynh
fcc5673070 ppc.h: add a comment for ppc_op_crx 2014-10-17 21:30:30 +08:00