Nguyen Anh Quynh
aa58f7fca5
typo fix for capstone.h
2014-09-25 16:56:31 +08:00
Nguyen Anh Quynh
2c425fcbe2
correct an incorrect comment on default value of skipdata mnem: .db -> .byte. bug reported by Ben Nagy
2014-09-07 09:46:54 +08:00
Nguyen Anh Quynh
0beb0d494b
api: get back the old API cs_disasm() & mark cs_disasm_ex() deprecated. cs_disasm_ex() will be removed in the future
2014-08-27 22:55:29 +08:00
Nguyen Anh Quynh
0efef5dd48
solve some conflicts when merging -next into -v3
2014-08-25 17:01:45 +08:00
Nguyen Anh Quynh
78c4876390
Merge branch 'cs_insn_const' of https://github.com/obs1dium/capstone into next
2014-08-21 08:44:28 +08:00
obs
876b6b6a33
use const when passing cs_insn pointers
2014-08-21 00:57:04 +02:00
Nguyen Anh Quynh
663829431e
x86: return proper error if cs_option() enables AT&T syntax but AT&T support is opt-out at compile time
2014-08-20 14:02:14 +08:00
Nguyen Anh Quynh
0f0eb9851a
mips: update core. this added bunch of new instructions & groups. updated Python & Java bindings accordingly
2014-08-14 18:26:39 +08:00
Nguyen Anh Quynh
7c089fd6c6
arm: add new mode CS_MODE_MCLASS for Cortex-M series. updated Python & Java bindings accordingly
2014-08-13 23:08:40 +08:00
Nguyen Anh Quynh
fd0f798343
bump API & package version to 3.0
2014-08-13 14:15:27 +08:00
Nguyen Anh Quynh
027afdc179
Change the prototype of the callback in SKIPDATA option. Suggested by Ben Nagy.
...
Original prototype:
typedef size_t (*cs_skipdata_cb_t)(const uint8_t *code, uint64_t offset, void* user_data);
Now we add @code_size argument to reflect the size of the input buffer @code.
Also, we change the data type of @offset to size_t because this argument indicates the
distance from currently examining bytes to @code, but not the address of the byte.
typedef size_t (*cs_skipdata_cb_t)(const uint8_t *code, size_t code_size, size_t offset, void* user_data);
2014-07-10 15:46:10 +08:00
Nguyen Anh Quynh
0df7e93a3c
Change the prototype of the callback in SKIPDATA option. Suggested by Ben Nagy.
...
Original prototype:
typedef size_t (*cs_skipdata_cb_t)(const uint8_t *code, uint64_t offset, void* user_data);
Now we add @code_size argument to reflect the size of the input buffer @code.
Also, we change the data type of @offset to size_t because this argument indicates the
distance from currently examining bytes to @code, but not the address of the byte.
typedef size_t (*cs_skipdata_cb_t)(const uint8_t *code, size_t code_size, size_t offset, void* user_data);
2014-07-10 15:42:16 +08:00
Nguyen Anh Quynh
650f96ce43
add new API cs_group_name() to return group name in string, given the group id
2014-07-08 08:59:27 +08:00
Nguyen Anh Quynh
4aacbea1b6
Merge branch 'next' into cmake2
2014-06-04 21:42:22 +07:00
Ali Rizvi-Santiago
10053ba626
Modified CMakeLists.txt to re-enable support for building both static and shared versions of the library.
...
Removed definition of CAPSTONE_STATIC from capstone.h due to dllimport only really being a performance optimization while CAPSTONE_SHARED is only needed when building the shared version of the library.
2014-06-03 21:07:03 +00:00
Nguyen Anh Quynh
1969b83b9b
windows: expose public APIs with dllimport for user apps
2014-06-03 23:10:07 +08:00
Nguyen Anh Quynh
0ea020ec8f
cmake: do not define dllimport
2014-06-03 21:48:53 +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
4c0ed0b864
correct capstone.h on the old already-renamed op_info[] arrays
2014-06-03 15:06:20 +07:00
Nguyen Anh Quynh
c80d840ffc
add XCore architecture
2014-05-26 23:02:48 +08:00
Nguyen Anh Quynh
171eb7523d
stdbool.h is only available in C99-supported compiler
2014-05-15 21:01:08 +08:00
Nguyen Anh Quynh
e76abf47e1
move prototype of strcasecmp for MSVC into utils.h, and remove platform.h
2014-05-15 15:02:52 +08:00
Nguyen Anh Quynh
1d2e69b869
msvc: remove headers/ directory & replace it with include/platform.h
2014-05-15 13:56:54 +08:00
Nguyen Anh Quynh
3878ff0641
skipdata: change data type of callback's offset to uint64_t
2014-05-12 15:15:04 +08:00
Nguyen Anh Quynh
7751fbe57b
header files: Disassembler -> Disassembly
2014-04-28 11:23:14 +08:00
Nguyen Anh Quynh
1efa9c11a0
SKIPDATA: add info about the first argument of callback function
2014-04-14 21:48:59 +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
3d5b6f3e35
update capstone.h to add some minor details for SKIPDATA mode
2014-04-11 09:53:53 +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
d3ffe37c47
API: support SKIPDATA option (off by default)
2014-04-09 23:49:30 +08:00
Nguyen Anh Quynh
901631eaed
remove the useless diet.h
2014-03-27 17:14:57 +08:00
Nguyen Anh Quynh
6d3c71128c
correct config.mk since X86-reduce now supports VMX/SVM
2014-03-27 15:38:23 +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
604c45e8d8
cleaning capstone.h
2014-03-13 07:04:18 +08:00
Nguyen Anh Quynh
2ff665ad4a
arm: support asm syntax CS_OPT_SYNTAX_NOREGNAME to print out registers with numbers (ex: 'r11' rather than 'fp')
2014-03-11 00:18:50 +08:00
Nguyen Anh Quynh
1a39bb59e1
API: bump to 2.2 after the addition of Sparc support
2014-03-10 20:49:46 +08:00
Nguyen Anh Quynh
05e27138ae
core: add Sparc arch
2014-03-10 11:58:57 +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
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
492b8ed0d5
define CS_SUPPORT_DIET with relation to CS_ARCH_ALL for clarification
2014-02-25 08:14:15 +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
544e0ff611
explicitly warning about diet mode for some APIs in capstone.h
2014-02-23 20:24:47 +08:00
Nguyen Anh Quynh
c70adc30e8
clarify some comments regarding 'diet' mode in capstone.h
2014-02-23 00:03:46 +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
Nguyen Anh Quynh
43a9a9d36f
bump API version from 2.0 to 2.1 for core + Python & Java bindings
2014-02-19 15:18:44 +08:00