Nguyen Anh Quynh
|
07e84a2094
|
do not need to verify handle->insn_id in fill_insn()
|
2014-06-08 19:27:22 +08:00 |
Nguyen Anh Quynh
|
6ddd715fac
|
we have to consider \t in input buffer of fill_insn()
|
2014-06-08 19:11:38 +08:00 |
Nguyen Anh Quynh
|
f8ea346310
|
properly copy buffer to op_str
|
2014-06-08 18:57:52 +08:00 |
Nguyen Anh Quynh
|
177dd9b223
|
simplify fill_insn(): do not check for \t in asm buffer
|
2014-06-08 00:17:10 +08:00 |
Nguyen Anh Quynh
|
22a5a761d8
|
x86: simplify byteReader_t
|
2014-06-07 23:41:20 +08:00 |
Nguyen Anh Quynh
|
df1acfd106
|
nullify cs_insn.detail when detail is OFF
|
2014-06-07 15:39:32 +07:00 |
Nguyen Anh Quynh
|
30c065998b
|
optimize memset() of MCInst_Init()
|
2014-06-07 13:30:59 +08:00 |
Nguyen Anh Quynh
|
99e69e1868
|
remove a redundant call to memset() in cs_disasm_ex()
|
2014-06-06 16:49:23 +08:00 |
Nguyen Anh Quynh
|
07c3693cf2
|
cmake: properly export public APIs in capstone.DLL. thanks to Daniel Pistelli for helping to fix this issue
|
2014-06-03 18:33:15 +08:00 |
Nguyen Anh Quynh
|
9786566aaa
|
msvc: fix some Nmake warnings
|
2014-05-28 14:33:32 +08:00 |
Nguyen Anh Quynh
|
c80d840ffc
|
add XCore architecture
|
2014-05-26 23:02:48 +08:00 |
Nguyen Anh Quynh
|
6456481508
|
x86: add immediate operand (1) for SHL/SHR/ROR/ROL/SAR/SAL in detail mode & Intel syntax
|
2014-05-19 16:46:31 +08:00 |
Nguyen Anh Quynh
|
8c2e2db84e
|
fix an warning on unused local variable in fill-insn() when CAPSTONE_DIET is defined
|
2014-05-14 07:32:56 +08:00 |
Nguyen Anh Quynh
|
bb0744df5d
|
do not initialize some local vars unnecessarily. this problem was introduced when we fixed C89 issues for MSVC
|
2014-05-12 13:41:49 +08:00 |
Axel 0vercl0k Souchet
|
84fecf2f99
|
added the debug configuration + correct the macro name for consistency
|
2014-05-10 09:49:29 +01:00 |
Axel 0vercl0k Souchet
|
605faf1db9
|
moved the hardcoded macros in the vcproj & just disable the warning for the crt
|
2014-05-09 20:40:00 +01:00 |
Nguyen Anh Quynh
|
42706a39e2
|
indentation with tab
|
2014-05-09 07:33:35 +08:00 |
Axel 0vercl0k Souchet
|
779d4c75d9
|
first changes to get a successfully compiled version of capstone on VS2012
|
2014-05-08 23:44:49 +01:00 |
Giovanni Condello
|
95657e0ca9
|
cs.c : Conform to original indentation rules
|
2014-05-07 17:31:27 +02:00 |
Giovanni Condello
|
a715df17a9
|
Do not access instructions details if the instruction is marked as SKIPDATA or if the details are NULL
Fixes issues #105
|
2014-05-07 17:25:38 +02:00 |
Nguyen Anh Quynh
|
1dbc9593aa
|
x86: use strncpy() to update instruction mnemonic
|
2014-05-07 14:14:07 +08:00 |
Nguyen Anh Quynh
|
a5ffdc3a80
|
x86: properly handle LOCK/REP in the core, so remove buch of hacks
|
2014-05-07 08:25:24 +08:00 |
Nguyen Anh Quynh
|
6023ef7843
|
Disassembler -> Disassembly
|
2014-04-29 11:21:04 +08:00 |
Nguyen Anh Quynh
|
2cff6f61fc
|
x86: handle instructions with LOCK/REP/REPNE prefix after other prefixes. bear with this until we have a better approach
|
2014-04-28 11:19:44 +08:00 |
Nguyen Anh Quynh
|
a88c1164bf
|
move the macro MIN to utils.h
|
2014-04-27 13:38:04 +08:00 |
Nguyen Anh Quynh
|
42288ac4e3
|
SKIPDATA: add 1 more argument to callback function pointing to the input buffer of cs_disasm_ex()
|
2014-04-14 14:53:13 +08:00 |
Nguyen Anh Quynh
|
11ec8817dc
|
core: add CS_ERR_SKIPDATA error code to report when code access irrelevant info in SKIPDATA mode
|
2014-04-10 17:20:01 +08:00 |
Nguyen Anh Quynh
|
07ffd64c38
|
SKIPDATA: @offset of callback function should indicate the position of examining byte in input buffer
|
2014-04-10 14:36:08 +08:00 |
Nguyen Anh Quynh
|
a89383e81f
|
number of bytes skipped by SKIPDATA option depends on arch
|
2014-04-10 11:53:46 +08:00 |
Nguyen Anh Quynh
|
c75a909371
|
rename SKIPDATA_MNEM to .byte to make it different from normal instructions
|
2014-04-10 10:26:49 +08:00 |
Nguyen Anh Quynh
|
d3ffe37c47
|
API: support SKIPDATA option (off by default)
|
2014-04-09 23:49:30 +08:00 |
Nguyen Anh Quynh
|
59b5489d8e
|
x86: rename X86_COMPACT to X86_REDUCE. suggested by Pancake
|
2014-03-27 10:54:44 +08:00 |
Nguyen Anh Quynh
|
9518148e6f
|
add X86_COMPACT option. also add CS_SUPPORT_X86_COMPACT. made Python support this change
|
2014-03-25 23:20:41 +08:00 |
Nguyen Anh Quynh
|
48a14ca4ce
|
add SystemZ arch
|
2014-03-23 08:35:45 +08:00 |
Nguyen Anh Quynh
|
05e27138ae
|
core: add Sparc arch
|
2014-03-10 11:58:57 +08:00 |
Nguyen Anh Quynh
|
5ee2b45518
|
core: reduce insn_cache's size when USE_SYS_DYN_MEM, not on CAPSTONE_DIET
|
2014-03-07 08:40:35 +08:00 |
Nguyen Anh Quynh
|
034a7487c0
|
core: C99 fix for cs_disasm_ex()
|
2014-03-06 22:40:08 +08:00 |
Nguyen Anh Quynh
|
472a4a4121
|
core: reduce default INSN_CACHE_SIZE to 32 to reduce stack memory variable size @insn_cache
|
2014-03-06 09:13:04 +08:00 |
Nguyen Anh Quynh
|
a836b75d30
|
core: reduce INSN_CACHE_SIZE for diet engine to reduce stack variable size. this might fix a crash for OSX kernel. issue reported by Enzo Matsumiya
|
2014-03-06 03:36:03 +08:00 |
Nguyen Anh Quynh
|
c46c35d3c7
|
core try to initialize archs as soon as we can by calling archs_enable() everywhere possible
|
2014-03-05 00:21:53 +08:00 |
Nguyen Anh Quynh
|
c8e0785cb6
|
add some more comments regarding invalidating @handle of cs_close()
|
2014-02-28 09:38:11 +08:00 |
Nguyen Anh Quynh
|
fbe10a55c0
|
simplify cs_close() when freeing @printer_info, making it future proof for future arch
|
2014-02-27 23:59:08 +08:00 |
Nguyen Anh Quynh
|
ef3d04d75b
|
fix a bug in cs_close(): improper check on handle value
|
2014-02-27 23:42:49 +08:00 |
Nguyen Anh Quynh
|
226d7dca64
|
change API cs_close() to take pointer to handle as argument. this lets us invalidate the closed handle
|
2014-02-27 22:20:39 +08:00 |
Nguyen Anh Quynh
|
48d583281c
|
cs_support(): typecast query to uint before comparing with CS_ARCH_ALL. this is to avoid potential problems in future when we add more query types
|
2014-02-27 13:56:01 +08:00 |
Nguyen Anh Quynh
|
5848aaafb2
|
Revert "cs_disasm_ex() should verify handle->disasm() to catch the issue that this API is still called after cs_close(). bug reported by Gul"
This reverts commit 2edef8f27c .
|
2014-02-27 11:10:41 +08:00 |
Nguyen Anh Quynh
|
2edef8f27c
|
cs_disasm_ex() should verify handle->disasm() to catch the issue that this API is still called after cs_close(). bug reported by Gul
|
2014-02-27 09:54:16 +08:00 |
Nguyen Anh Quynh
|
f7cdbdf501
|
add CS_ERR_DIET error code to report information irrelevant in diet engine
|
2014-02-24 16:47:36 +08:00 |
Nguyen Anh Quynh
|
b2870e4c4c
|
API: extend cs_support() to allow query on diet mode. add CS_SUPPORT_DIET at the same time
|
2014-02-22 23:41:16 +08:00 |
Nguyen Anh Quynh
|
fc83a439e5
|
add diet compile option (CAPSTONE_DIET option in config.mk). This reduces binary size by around 40%
|
2014-02-22 23:26:27 +08:00 |