Commit Graph

2859 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
daabe1004d x86: Fix the operand encoding in the test instruction, issue #702 2017-01-03 01:05:52 +08:00
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
Nguyen Anh Quynh
5ae852d875 Merge pull request #830 from mrexodia/next
added regression test for #702 + ignore build directories
2016-12-17 10:06:37 +07:00
mrexodia
9e478e56ab added regression test for issue #702 2016-12-16 18:43:51 +01:00
mrexodia
cdb7b699f5 ignore build directories 2016-12-16 18:43:32 +01:00
Nguyen Anh Quynh
6e247def0b arm: fix operand access info for Bcc & BL. see issue #826 2016-12-13 18:20:01 +07:00
Nguyen Anh Quynh
698a4cda57 Merge branch 'next' of https://github.com/aquynh/capstone into next 2016-12-13 18:03:20 +07:00
Nguyen Anh Quynh
e22c6c6100 arm: fix access info for RET. see issue #825 2016-12-13 18:02:51 +07:00
Nguyen Anh Quynh
d3a59600cf Merge pull request #822 from hlein/next
Make sure bindir exists before installing to it.
2016-12-11 16:39:58 +07:00
Hank Leininger
c159015174 Make sure bindir exists before installing to it.
Without this, installing to a temporary directory tree (as done by
some package managers) installs cstool as the file /usr/bin.

This brings next in line with the behavior of master.
2016-12-10 20:52:08 -05:00
Nguyen Anh Quynh
83a3a39bf6 Merge pull request #819 from akirschbaum/next-java-add-binding
Java: Support cs_strerror() and cs_regs_access()
2016-11-27 21:31:57 +08:00
Andreas Kirschbaum
f03176a1e2 Java: Support cs_strerror() and cs_regs_access() 2016-11-27 13:59:12 +01:00
Nguyen Anh Quynh
9d8fbf3ab6 Merge pull request #820 from akirschbaum/next-java-bugfix1
Java: Fix a bug where Arm.OpInfo.memBarrier and Arm.OpInfo.op is wrongly calculated
2016-11-27 18:03:14 +08:00
Andreas Kirschbaum
18300bc0cf Java: Fix a bug where Arm.OpInfo.memBarrier and Arm.OpInfo.op is wrongly calculated 2016-11-27 10:13:57 +01:00
Nguyen Anh Quynh
0d69904312 Merge pull request #821 from akirschbaum/next-java-bugfix2
Java: Fix a bug where Arm.Operand is wrongly calculated for the second and following operands
2016-11-27 04:36:50 +08:00
Andreas Kirschbaum
ae41e2beb5 Java: Fix a bug where Arm.Operand is wrongly calculated for the second and following operands 2016-11-26 13:15:53 +01: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
2cdc76b8cd cmake: Add a check of MSVC variable before setting flags that link the library. ported from PR #814 2016-11-16 08:17:02 +08:00
Nguyen Anh Quynh
06a4c383aa arm: fix decoding Thumb big-endian instructions. ported from PR #813 2016-11-14 21:37:23 +09:00
Nguyen Anh Quynh
030e9be4eb x86: fix instruction MOVAPS & MOVAPD. see issue #809 2016-11-11 11:27:34 +09:00
Nguyen Anh Quynh
e25accac25 x86: fix (AT&T) instruction SLDT for issue #807 2016-11-08 11:46:21 +08:00
Nguyen Anh Quynh
24794deded x86: fix (AT&T) instruction lgs for issue #805 2016-11-08 11:39:10 +08:00
Nguyen Anh Quynh
5701c6b295 x86: fix (AT&T) ROL instruction in issue #804 2016-11-08 11:28:09 +08:00
Nguyen Anh Quynh
10bafd3bab x86: fix movw instruction in #789 2016-11-08 10:56:18 +08:00
Nguyen Anh Quynh
bda181a6b5 x86: fix sysexit in #806 2016-11-08 10:29:07 +08:00
Nguyen Anh Quynh
c9a2148b05 cstool: print out insn groups 2016-11-05 00:47:14 +08:00
Nguyen Anh Quynh
008a840a56 cstool: use switch 2016-11-05 00:43:22 +08:00
Nguyen Anh Quynh
bdf1b97a51 cstool: remove its version 2016-11-04 23:57:52 +08:00
Nguyen Anh Quynh
3f3cd8f429 Merge branch 'next' of https://github.com/aquynh/capstone into next 2016-11-04 23:55:53 +08:00
Nguyen Anh Quynh
f1aa0a3d04 python: version 4.0.0 2016-11-04 23:55:20 +08:00
Nguyen Anh Quynh
1b5846ee90 Merge branch 'feat/better_python_setup_next' of https://github.com/angr/capstone into angr-feat/better_python_setup_next 2016-11-04 23:25:27 +08:00
Andrew Dutcher
2f1c3ce8a6 On this branch, dylib and so files are versioned 2016-10-31 10:54:58 -07:00
Nguyen Anh Quynh
91808ab6cd python: cleanup 2016-10-30 16:19:10 +08:00
Nguyen Anh Quynh
09bb46815e Merge branch 'feat/better_python_setup_next' of https://github.com/angr/capstone into angr-feat/better_python_setup_next 2016-10-30 16:16:35 +08:00
Samuel Chevet
8060ecbc0d Add X86_REG_EFLAGS to X86_CLC, X86_CLD, X86_CMC (#801)
* add X86_REG_EFLAGS for X86_STC

* remove wrong X86_GRP_PRIVILEGE for X86_STC ; add X86_REG_EFLAGS for X86_STD

* Add X86_REG_EFLAGS to X86_CLC, X86_CLD, X86_CMC

* add X86_REG_EFLAGS to X86_CLC, X86_CLD, X86_CMC for reduced instructions too
2016-10-28 21:49:41 +08:00
Nguyen Anh Quynh
8ce3998f87 cstool: update README 2016-10-28 21:25:32 +08:00
Nguyen Anh Quynh
e0dd45991a cleanup 2016-10-28 16:27:56 +08:00
Nguyen Anh Quynh
09bcfbbd6f Merge branch 'next' of https://github.com/aquynh/capstone into next 2016-10-28 16:13:19 +08:00
Nguyen Anh Quynh
835042587f cleanup 2016-10-28 16:12:05 +08:00
Nguyen Anh Quynh
0a6b074929 Merge branch 'next' of https://github.com/echotyh/capstone into echotyh-next 2016-10-28 16:04:52 +08:00
YUHANG TANG
1d7dcad473 cstool: delete tab 2016-10-28 15:32:50 +08:00
Samuel Chevet
57c3481e31 add X86_REG_EFLAGS for X86_STC (#797)
* add X86_REG_EFLAGS for X86_STC

* remove wrong X86_GRP_PRIVILEGE for X86_STC ; add X86_REG_EFLAGS for X86_STD
2016-10-28 03:23:50 +08:00
Andrew Dutcher
b2504b963e Python setup: Clean up some merge failures, adapt for changes on next branch 2016-10-26 23:15:42 -07:00
YUHANG TANG
5e0a15521b cstool: add m68k and change cstool_x86 2016-10-27 12:12:59 +08:00
Andrew Dutcher
5acdd97ca2 Python: Actually attempt to load .so.3 extension on linux 2016-10-25 21:49:59 -07:00
Andrew Dutcher
97fac00499 Python: Spelling/capitalization/contact fixes in readme 2016-10-25 21:49:58 -07:00
Andrew Dutcher
73f92384ee Minor english fixes 2016-10-25 21:49:58 -07:00
Andrew Dutcher
06b26efbf4 Python: remove special case for cygwin build 2016-10-25 21:49:58 -07:00
Andrew Dutcher
816f131d27 Python: Make cython work with extreme prejudice 2016-10-25 21:49:58 -07:00
Andrew Dutcher
1008716ee5 Python: Clean up the capstone-windows stuff with extreme prejudice 2016-10-25 21:48:41 -07:00