Commit Graph

2438 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
0f456b3379 switch endian mode with cs_option() for Arm/Arm64/Mips/Sparc. fix issue #849 2017-02-01 11:17:13 +08:00
Nguyen Anh Quynh
63fb1f4a68 Merge pull request #843 from JustEnuff2BDangerous/master
Patch for issue #842
2017-01-19 09:10:19 +08:00
JustEnuff2BDangerous
952d534d1b Patch for issue #842
The SETEND instruction is a 16 bit Thumb instruction which is included
in T variants of ARMv6 and above, but is not available in M-Class cores
(see ARM Compiler toolchain Assembler Reference Ver 5.0).

To be consistent with other similar instructions its group flags have
been updated to be:

{ARM_GRP_THUMB, ARM_GRP_V6, ARM_GRP_NOTMCLASS,0}
2017-01-18 17:35:42 +00:00
Nguyen Anh Quynh
2562670713 x86: Fix the operand encoding in the test instruction for reduce set, issue #702 2017-01-03 01:30:34 +08:00
Nguyen Anh Quynh
7c5c636e15 x86: Fix the operand encoding in the test instruction, issue #702 2017-01-03 01:09:15 +08:00
Nguyen Anh Quynh
3847798c4e Merge pull request #833 from 0xbc/fix_cstool_build_vs2012
Fix build under VS2012 (i.e. MSC_VER = 1700)
2016-12-21 10:59:50 +08:00
Ben Cheney
e213802e63 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
Nguyen Anh Quynh
0de0c8b49d Merge pull request #817 from GBuella/fix_x86_rel_addr_macro
x86: fix X86_REL_ADDR macro - handle two-byte jump instructions
2016-11-22 10:20:13 +08:00
Gabor Buella
8925ff9bde x86: fix X86_REL_ADDR macro - handle two-byte jump instructions 2016-11-21 16:40:42 +01:00
microplankton
ae79bd95de Add a check of MSVC variable before setting flags that link the libra… (#814)
* Add a check of MSVC variable before setting flags that link the library with the MSVC static runtime

* Move MSVC guard inside the 'foreach' loop used to force static runtime link
2016-11-16 08:11:36 +08:00
Nguyen Anh Quynh
c8c587fa6c Merge pull request #815 from FuzzySecurity/PowerShell-Binding
PowerShell binding: $Address -> UInt64 !Int32
2016-11-16 00:15:24 +09:00
FuzzySecurity
2328253802 $Address -> UInt64 !Int32 2016-11-15 13:45:52 +01:00
FuzzySecurity
01cf1581d0 Merge remote-tracking branch 'aquynh/master' into PowerShell-Binding 2016-11-15 13:36:24 +01:00
Nguyen Anh Quynh
63573691f8 Merge pull request #813 from ehntoo/master
Use the correct mapping for 32-bit Thumb Big-Endian insns
2016-11-14 21:30:52 +09:00
Mitchell Johnson
da38d99d51 Use the correct mapping for 32-bit Thumb Big-Endian insns 2016-11-13 23:18:13 -05:00
b33f
8b7bac2479 Fix cs_close() pointer to handle not handle (#810)
* Binding.README

* Binding.README

* Binding.README

* Binding.README.Ps1

* Binding.PowerShell-Script

Added script to generate compressed DLL output & update for README

* PowerShell.Binding-Rework

A rework of the pull request based on feedback for the same pull
request in Keystone

* +Get-CapstoneDisassembly

Reworked according to the module in Keystone

* Revert constant generation + Quality of service change

* Fix: cs_close -> [ref]Ptr not Ptr
2016-11-13 22:35:16 +09:00
FuzzySecurity
b526229ee4 Fix: cs_close -> [ref]Ptr not Ptr 2016-11-12 16:01:33 +01:00
FuzzySecurity
4088ce508e Merge remote-tracking branch 'aquynh/master' into PowerShell-Binding 2016-11-12 15:57:40 +01:00
Nguyen Anh Quynh
d909de00ca update CREDITS.TXT 2016-11-11 23:14:23 +09:00
b33f
04ec1815bd PowerShell binding (#803)
* Binding.README

* Binding.README

* Binding.README

* Binding.README.Ps1

* Binding.PowerShell-Script

Added script to generate compressed DLL output & update for README

* PowerShell.Binding-Rework

A rework of the pull request based on feedback for the same pull
request in Keystone

* +Get-CapstoneDisassembly

Reworked according to the module in Keystone

* Revert constant generation + Quality of service change
2016-11-11 23:11:00 +09:00
FuzzySecurity
2a668317b5 Revert constant generation + Quality of service change 2016-11-11 14:15:45 +01:00
FuzzySecurity
a75752bb81 +Get-CapstoneDisassembly
Reworked according to the module in Keystone
2016-11-10 22:36:07 +01:00
Nguyen Anh Quynh
8308ace3a0 x86: fix (AT&T) instruction SLDT for issue #807 2016-11-08 11:46:56 +08:00
Nguyen Anh Quynh
c19af63e53 x86: fix (AT&T) instruction lgs for issue #805 2016-11-08 11:39:40 +08:00
Nguyen Anh Quynh
08b0e46a4c x86: fix (AT&T) ROL instruction in issue #804 2016-11-08 11:28:43 +08:00
Nguyen Anh Quynh
c86e78fce7 x86: fix movw instruction in #789 2016-11-08 10:56:42 +08:00
Nguyen Anh Quynh
a2d62f92bf x86: fix sysexit in #806 2016-11-08 10:28:40 +08:00
FuzzySecurity
b9f38edd21 PowerShell.Binding-Rework
A rework of the pull request based on feedback for the same pull
request in Keystone
2016-11-05 03:53:37 +01:00
Nguyen Anh Quynh
8853489ea9 cstool: remove M68K support 2016-11-05 00:52:54 +08:00
Nguyen Anh Quynh
41a3980b6d cstool: print out insn groups 2016-11-05 00:50:44 +08:00
Nguyen Anh Quynh
861a09822f cstool: remove its version 2016-11-04 23:59:34 +08:00
FuzzySecurity
12ce2b31d7 Binding.PowerShell-Script
Added script to generate compressed DLL output & update for README
2016-11-04 10:56:47 +01:00
FuzzySecurity
8da385d9ad Binding.README.Ps1 2016-11-03 21:56:37 +01:00
FuzzySecurity
db50d8415c Binding.README 2016-11-03 21:51:48 +01:00
FuzzySecurity
af38ecc520 Binding.README 2016-11-03 21:49:01 +01:00
FuzzySecurity
a7f8a4f4a0 Binding.README 2016-11-03 21:29:37 +01:00
Samuel Chevet
4015dfa619 Add X86_REG_EFLAGS for X86_STC and X86_STD for full x86 instructions … (#800)
* Add X86_REG_EFLAGS for X86_STC and X86_STD for full x86 instructions ; Add X86_REG_EFLAGS for X86_CLD, X86_CMC for reduce and full x86 instructions

* Add trailing zero for regs write in X86_CLC ; X86_CLD ; X86_CMC
2016-10-28 21:38:34 +08:00
Nguyen Anh Quynh
3d658dea0b cstool: update README 2016-10-28 21:23:42 +08:00
Nguyen Anh Quynh
5c3044a67e tests: cleanup test_arm.c 2016-10-28 17:29:21 +08:00
Nguyen Anh Quynh
abafa816cb Merge pull request #798 from w4kfu/master
Add X86_REG_EFLAGS for X86_STC and X86_STD
2016-10-28 10:35:15 +08:00
Samuel CHEVET
9bebb55b7b Add X86_REG_EFLAGS for X86_STC and X86_STD 2016-10-27 15:31:22 -04:00
Nguyen Anh Quynh
3239acea18 bump package version to 3.0.5 2016-10-26 10:55:15 +08:00
Nguyen Anh Quynh
665d404b0d python: bump version to 3.0.5 2016-10-26 10:52:53 +08:00
Nguyen Anh Quynh
2912f3528f update CREDITS.TXT 2016-10-26 04:59:26 +08:00
Nguyen Anh Quynh
ef4b5c9dcf python: capitalized cython name 2016-10-26 04:52:58 +08:00
Nguyen Anh Quynh
34e635fdaf python: merge conflict 2016-10-26 04:50:44 +08:00
Nguyen Anh Quynh
00c3fa1207 Merge branch 'master' into test 2016-10-26 04:47:03 +08:00
Andrew Dutcher
e29ddbdbb3 Python: Actually attempt to load .so.3 extension on linux 2016-10-25 12:56:10 -07:00
Andrew Dutcher
5db5ec817b Python: Spelling/capitalization/contact fixes in readme 2016-10-25 12:56:10 -07:00
Andrew Dutcher
cffc988d60 Minor english fixes 2016-10-25 12:56:10 -07:00