Nguyen Anh Quynh
31f239f920
python: implement setter for skipdata_setup. this fixes issue 564 so it is now possible to redefine skipdata's mnemonic
2015-12-06 01:00:21 +07:00
Raijinili
6ea7ec83ad
Python 3: CsError.__str__
...
Choose `CsError.__str__` implementation based on Python version.
2015-12-02 12:19:11 +07:00
Nguyen Anh Quynh
7fc5bc3b4b
x86: print immediate of IN/OUT instructions in positive form. this fixes issue #554
2015-11-27 21:28:05 +07:00
Nguyen Anh Quynh
ed88b001f8
x86: XCHG instructions should read|write to both operands. this fixes issue #545
2015-11-16 19:50:26 +08:00
Nguyen Anh Quynh
f99bf5a320
java: return empty instead of NULL for disasm(). patch by Keve Müller
2015-11-14 18:50:37 +08:00
Nguyen Anh Quynh
f752e9905a
indentation
2015-11-14 18:40:11 +08:00
Keve Müller
0440c6708f
Fix NPE when first instruction to disassemble is broken.
...
Return null instead.
2015-11-14 18:38:40 +08:00
Nguyen Anh Quynh
59e301333b
x86: print immediate operand of MOVABS in positive form. this fixes issue #541
2015-11-14 10:54:01 +08:00
Nguyen Anh Quynh
7aeac742c3
Merge pull request #536 from 07151129/next
...
Fix instruction cache size define
2015-11-11 08:25:03 +08:00
Pb
a21cc8c919
Fix instruction cache size define
2015-11-10 22:43:51 +01:00
Nguyen Anh Quynh
bcdab9b002
Merge branch 'next' of https://github.com/aquynh/capstone into next
2015-11-10 22:59:36 +08:00
Nguyen Anh Quynh
197e457a0b
code style
2015-11-10 22:56:53 +08:00
Nguyen Anh Quynh
06ab24f9b5
Merge branch 'next' of https://github.com/07151129/capstone into 07151129-next
2015-11-10 22:56:01 +08:00
Nguyen Anh Quynh
bfc0566e3a
Merge pull request #532 from radare/destdir-fix
...
Fix #184 - properly handle DESTDIR in pkgconfig file
2015-11-10 22:15:43 +08:00
pancake
91659c0d55
Fix #184 - properly handle DESTDIR in pkgconfig file
2015-11-08 12:05:41 +01:00
Nguyen Anh Quynh
9d8e39e786
Revert "corrected x86 immediate sizes"
...
This reverts commit df9a2c3ce1
, as discussed in https://github.com/aquynh/capstone/pull/527
2015-11-07 17:36:44 +08:00
Pb
2769c772ce
Correct build settings for xnu kext. Changed calloc name to avoid potential conflicts
2015-11-06 14:44:55 +01:00
Nguyen Anh Quynh
a0fe339167
Merge pull request #530 from xenia-project/next
...
Fixing a warning of size_t->int in VC++.
2015-11-06 10:45:52 +08:00
Ben Vanik
722aec7800
Fixing a warning of size_t->int in VC++.
2015-11-05 18:42:08 -08:00
Nguyen Anh Quynh
0d394aa374
Makefile: x86 depends on X86ImmSize.inc
2015-11-06 10:34:27 +08:00
Pb
fce4977014
Added CAPSTONE_HAS_OSXKERNEL to config.mk
2015-11-05 22:59:45 +01:00
Pb
86ad3d6a67
Support of xnu memory allocator
2015-11-05 18:08:25 +01:00
Nguyen Anh Quynh
e6240e9183
Merge pull request #527 from obs1dium/next
...
corrected x86 immediate sizes
2015-11-05 22:17:51 +08:00
obs
df9a2c3ce1
corrected x86 immediate sizes
2015-11-04 13:50:09 +01:00
Nguyen Anh Quynh
edaf726200
Merge pull request #524 from zneak/next
...
Updated to recommended settings (per Xcode 7)
2015-11-01 09:09:04 +08:00
Félix Cloutier
25f6e8690c
Updated to recommended settings (per Xcode 7)
2015-10-31 15:40:14 -04:00
Tyler J. Stachecki
d07a21b255
Kill a shadowed declaration of a local variable.
...
The variable tmp was already defined in the frame.
Redefining it makes some code linters grumpy.
Signed-off-by: Tyler J. Stachecki <tstache1@binghamton.edu>
2015-10-24 18:51:33 +08:00
Nguyen Anh Quynh
7fc95e82bb
python: perform the last dylib loader only if it fails before that (for El Capitan)
2015-10-19 20:03:45 +08:00
Tim Strazzere
73c255a0cf
Add OSX 10.11 dylib load fix
...
El Capitan does not guaranteed that
(DY)LD_LIBRARY_PATH will exist, so force
one last check for the default install
directory that the install script uses.
2015-10-17 11:08:58 +08:00
Nguyen Anh Quynh
a6a5f805c2
Merge pull request #513 from nplanel/fix-win32-cleanup
...
Fix win32 cleanup
2015-10-13 14:30:50 +08:00
Nicolas PLANEL
626510c5e5
[M68K] avoid mixed declarations and code
...
Avoid mixed declarations and code reported by the gcc warning flag :
-Wdeclaration-after-statement.
Introduce new m68k_read_safe_16/32/64() method.
2015-10-12 21:31:16 +11:00
Nicolas PLANEL
bbb18aafe0
[M68K] msvc : add CAPSTONE_HAS_M68K define to all msvc projects
...
Add CAPSTONE_HAS_M68K define to all msvc projects.
Signed-off-by: Nicolas PLANEL <nplanel@gmail.com>
2015-10-10 22:49:21 +11:00
Nicolas PLANEL
97aca80830
[M68K] add const helper
...
Add some const aim to help inlining.
Signed-off-by: Nicolas PLANEL <nplanel@gmail.com>
2015-10-10 22:47:48 +11:00
Nicolas PLANEL
91f3cdb475
[M68K] move peek/read macros to real functions
...
Some compilers don't like statements in macro.
Anyway modern compiler should optimized (read inline)
2015-10-10 19:53:50 +11:00
Nicolas PLANEL
f01e0c93f9
[M68K] remove reference to M68KConf.h file
...
M68KConf.h as been removed, cleanup all reference to it.
Signed-off-by: Nicolas PLANEL <nplanel@gmail.com>
2015-10-10 19:37:35 +11:00
Daniel Collin
997112d3d2
Removed a big chunk of unused stuff
...
* Cleaned up M68KDisassembler.h with legacy stuff from Musashi which isn't used at all.
* Removed M68KConf.h which isn't needed anymore.
* Made some functions static as they are now only local to the current file.
2015-10-10 19:30:04 +11:00
Nguyen Anh Quynh
cc1e14431c
x86: print -0x8000000000000000 as 0x8000000000000000. this fixes issue #499
2015-10-09 14:38:06 +08:00
Nguyen Anh Quynh
5712440c53
Merge pull request #507 from nplanel/radare
...
fixup for Radare
2015-10-08 23:32:59 +08:00
Nicolas PLANEL
5f9257cfaa
[M68K] use M68K line A for memory data poisoning
...
In case of out of bound access return a poison value to force to point to
d68000_invalid() opcode. This will force instruction_is_valid() to return
false and capstone will do skipdata.
Line A are more M68K standard invalid lines than 0x0808.
2015-10-08 22:27:59 +11:00
Nicolas PLANEL
af1d39d336
cleanup peek/read macros
...
Remove unused m68k_read_disassembler_8(), rework peek/read macros.
Signed-off-by: Nicolas PLANEL <nplanel@gmail.com>
2015-10-08 22:22:39 +11:00
Nguyen Anh Quynh
fa9e485e5c
delete garbage file
2015-10-08 16:08:51 +08:00
Nguyen Anh Quynh
475e04da00
x86: fix the leftover prefixPresent[]
2015-10-08 15:58:52 +08:00
Nguyen Anh Quynh
29ff43fd6b
x86: coding style
2015-10-08 15:53:44 +08:00
bughoho
8a39d79e10
fix comment
2015-10-08 15:53:34 +08:00
bughoho
7138044052
x86: add dedicated variables such as prefix2e, prefix36, prefix66, prefix67, etc
2015-10-08 15:53:17 +08:00
Nicolas PLANEL
051140f3ba
[binding][python] print the string value of CsError
...
Print the string error of CsError.
2015-10-08 16:48:26 +11:00
Nicolas PLANEL
8daac3a164
Add boundary checker
...
Avoid reading bytes outside of the code section.
Trick by returning bad data (illegal instruction) to force capstone to skip data.
Signed-off-by: Nicolas PLANEL <nplanel@gmail.com>
2015-10-08 16:41:03 +11:00
Nicolas PLANEL
d1b5c3f384
cleanup : move the initialization of m68k_info
...
Simplify the code by moving the initialization of printer_info (m68k_info)
at the right place, in the module.init() function.
Signed-off-by: Nicolas PLANEL <nplanel@gmail.com>
2015-10-08 16:40:56 +11:00
Nicolas PLANEL
b9f66d63c9
[M68K] fixup increment pc only if the instruction_is_valid()
...
m68k_disassemble() should return the number of decoded bytes, aim to help
M68K_getInstruction() to return if it was a good instruction or not.
Signed-off-by: Nicolas PLANEL <nplanel@gmail.com>
2015-10-08 16:39:02 +11:00
Nicolas PLANEL
ee33bcf967
[M68K] fixup read/peak() address_line_mask
...
The correct implementation : addr = (address - base) & address_line_mask
2015-10-08 15:21:24 +11:00