Nguyen Anh Quynh
bc96e36ea7
remove stdio.h from capstone.h. this is to make it possible to embed to OSX kernel. issue reported by Pedro
2015-04-09 22:56:36 +08:00
Hilko Bengen
d83bf84cba
Limit exported symbols
...
Make sure that only symbols that are part of the API are exported by
the library -- similar to __declspec(dllexport) for the MSVC
compiler
2015-02-27 15:51:56 +08:00
Nguyen Anh Quynh
a7b06fda6e
capstone.h: add comments on some hardware modes
2014-11-13 12:00:48 +08:00
Nguyen Anh Quynh
84df600944
tests: update Mips modes to CS_MODE_MIPS32 & CS_MODE_MIPS64
2014-11-13 11:27:51 +08:00
Nguyen Anh Quynh
d3f0373ed1
add CS_MODE_MIPS32 & CS_MODE_MIPS64. these modes are aliases of CS_MODE_32 & CS_MODE_64, so no old code is broken
2014-11-13 11:20:09 +08:00
Nguyen Anh Quynh
cc60d10940
mips: add comments on mips32 & mips64 to capstone.h
2014-11-12 18:18:26 +08:00
Nguyen Anh Quynh
753f44a6b7
capstone.h: add comment for CS_ARCH_ALL
2014-11-12 11:05:42 +08:00
Nguyen Anh Quynh
c942f22a09
arm: support new mode CS_MODE_V8 for Armv8 A32 encodings
2014-11-10 21:52:09 +08:00
Nguyen Anh Quynh
3ab509192a
use common instruction groups across all architectures. this adds cs_group_type to capstone.h. suggestion by @zneak
2014-10-31 14:40:45 +08:00
Nguyen Anh Quynh
21ac056728
use common operand types across all architectures. this adds cs_op_type to capstone.h. suggestion by @zneak
2014-10-31 13:08:28 +08:00
Nguyen Anh Quynh
a18abdd178
capstone.h: coding style
2014-10-29 21:32:06 +08:00
Nguyen Anh Quynh
024e55ebeb
capstone.h: add notes on cs_disasm() vs cs_disasm_iter()
2014-10-20 23:32:06 +08:00
Nguyen Anh Quynh
c41da15017
capstone.h: change cs_disasm to cs_disasm_iter in some places
2014-10-15 16:31:35 +08:00
Jay Oster
79e253c516
Remove CS_MODE_N64
...
- This mode is for the so-called MIPS "N64" ABI; it has nothing to do with the Nintendo 64 game platform.
- N64, O64, et al. are just different ABIs for the 64-bit MIPS architecture, so we replace CS_MODE_N64 with the existing CS_MODE_64
2014-10-12 16:03:12 -07:00
Nguyen Anh Quynh
2c8b2627d1
capstone.h: document that for instruction or when detail mode is OFF, the detail pointer is irrelevant, regardless of its value
2014-10-12 20:23:08 +08:00
Nguyen Anh Quynh
fb429b1eba
capstone.h: note that in Skipdata mode, invalid instruction has id = 0
2014-10-12 15:29:12 +08:00
Nguyen Anh Quynh
ff2939a23c
capstone.h: refer to sample code for skipdata option & cs_disasm_iter API
2014-10-12 10:43:02 +08:00
Nguyen Anh Quynh
801ce2b893
detail pointer is irrelevant when in skipdata mode
2014-10-12 10:36:57 +08:00
Nguyen Anh Quynh
542a540360
refine instructions of cs_free() to reflect the newly added API cs_malloc()
2014-10-11 13:12:15 +08:00
Nguyen Anh Quynh
5cb3d6401e
refine some API instructions for capstone.h
2014-10-11 01:32:39 +08:00
Nguyen Anh Quynh
43efc45fb8
code style
2014-10-11 00:38:30 +08:00
Nguyen Anh Quynh
0a2eca7c6c
modify API cs_disasm_iter() and add new API cs_malloc(). also adds sample code test_iter.c
2014-10-11 00:36:16 +08:00
hlide
993f362ad8
New API: cs_disasm_iter
2014-10-05 18:14:40 +02:00
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