Commit Graph

1431 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
a22d300c57 ocaml: add missing ARM64 instructions to arm64_const.ml. also handle arithmetic operations |, << properly for Ocaml in const_generator.py 2014-09-21 23:35:00 +08:00
Nguyen Anh Quynh
586be76d73 ocaml: separate constants into separate files, which are actually autogen by const_generator.py 2014-09-21 23:23:38 +08:00
Nguyen Anh Quynh
c1a44f1437 python: fix a typo in @propery skipdata.setter 2014-08-21 12:25:47 +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
73cde40ac7 python & java: add new error codes CS_ERR_X86_ATT & CS_ERR_X86_INTEL 2014-08-20 14:08:35 +08: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
a65e77baee Merge branch 'no_att' of https://github.com/obs1dium/capstone into next 2014-08-20 13:50:29 +08:00
Nguyen Anh Quynh
f178d69b3f update .gitignore for ocaml binaries 2014-08-19 23:11:04 +08:00
Guillaume Jeanne
ae48c97763 OCaml: add sparc, systemz and xcore 2014-08-19 14:46:06 +02:00
obs
b7e2ff451f x86.operands array wasn't fully cleared 2014-08-17 21:46:30 +02:00
obs
cb8e40cc79 added CAPSTONE_X86_ATT_DISABLE_NO to VS projects, readmes 2014-08-17 21:07:13 +02:00
baguette
86e845056d renamed CAPSTONE_NO_ATT to CAPSTONE_X86_ATT_DISABLE, added options to makefile, cmake, compile.txt 2014-08-17 20:59:05 +02:00
baguette
4f412c4483 Selectively disable AT&T syntax in non-diet mode to reduce library size 2014-08-17 19:38:20 +02:00
Nguyen Anh Quynh
aa791a2f48 update docs/README for some sample kernel applications 2014-07-11 11:18:15 +08:00
Nguyen Anh Quynh
b3dea5641a python: fix test_skipdata.py after the change in the core on SKIPDATA's callback prototype 2014-07-10 15:58:24 +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
55cd996add sparc: initialize detail->sparc in Sparc_getInstruction. bug reported by Ben Nagy 2014-07-09 13:08:17 +08:00
Nguyen Anh Quynh
4d2eba7f43 systemz: initialize detail->sysz in SystemZ_getInstruction. bug reported by Ben Nagy 2014-07-09 11:27:09 +08:00
Nguyen Anh Quynh
bcc6e53d7e OSX: install into /usr/local rather than /usr 2014-07-07 11:42:25 +08:00
Ole André Vadla Ravnås
39edca1ef6 Set LIBARCHS to i386 x86_64 when building on OS X
Use the Makefile directly to override.
2014-07-05 20:31:30 +02:00
Ole André Vadla Ravnås
174f9bb644 Remove accidentally left-over V=1 in the iOS build step 2014-07-05 20:29:50 +02:00
Ole André Vadla Ravnås
ffc8aaa38a Fix minor style inconsistency 2014-07-04 23:39:59 +02:00
Ole André Vadla Ravnås
b202b914f9 Simplify universal builds by relying on the linker to do the right thing 2014-07-04 23:38:20 +02:00
Ole André Vadla Ravnås
6583f069a7 Fix universal build support for Mac and iOS 2014-07-04 23:09:19 +02:00
Nguyen Anh Quynh
d392f6ef89 simplify code copying @mnemonic in fill_insn() 2014-07-02 12:22:39 +08:00
Nguyen Anh Quynh
22ea683583 only verify x86_prefix[0] for x86 arch. bug reported by @pancake 2014-07-02 09:09:08 +08:00
Guillaume Jeanne
58fe9716d9 ocaml: simplification in ocaml.c: op_count variable 2014-06-30 16:18:55 +02:00
Guillaume Jeanne
da1c2d0d7d ocaml: ppc test is working 2014-06-30 15:59:21 +02:00
Guillaume Jeanne
e002ac7b10 ocaml: add support of ppc 2014-06-30 15:46:04 +02:00
Guillaume Jeanne
2147194e1f ocaml: add ppc.ml with all ppc const 2014-06-30 15:19:02 +02:00
Nguyen Anh Quynh
ed6b8c5a96 x86: address-size prefix should override RIP relative address in x64 mode. bug reported by @hlide 2014-06-30 07:57:29 +08:00
Nguyen Anh Quynh
656ebc9625 x86: handle RIP relative addressing in 64bit mode properly. bug reported by @hlide 2014-06-30 02:01:42 +08:00
Nguyen Anh Quynh
af6825a480 Merge branch 'next' of https://github.com/aquynh/capstone into next 2014-06-27 22:32:48 +08:00
Nguyen Anh Quynh
e9476ae696 update bindings/README for C++ binding 2014-06-27 22:32:25 +08:00
Guillaume Jeanne
7ce90f1649 ocaml: update reg/inst/group const in x86 2014-06-27 13:41:25 +02:00
Guillaume Jeanne
0a50980831 ocaml: update reg/inst/group const in mips 2014-06-27 13:39:45 +02:00
Guillaume Jeanne
e2cb91d866 ocaml: update reg/inst/group const in arm 2014-06-27 13:35:25 +02:00
Guillaume Jeanne
d157775c20 ocaml: update reg/inst/group const in arm64 2014-06-27 13:30:26 +02:00
Nguyen Anh Quynh
078f833da7 update CREDITS.TXT 2014-06-26 22:49:16 +08:00
Nguyen Anh Quynh
28b1f49b39 ocaml: update README 2014-06-26 22:29:46 +08:00
Nguyen Anh Quynh
a3676e31b5 update .gitignore for Ocaml binding 2014-06-26 22:10:41 +08:00
Guillaume Jeanne
cece24e426 working OCaml bindings 2014-06-26 15:35:06 +02:00
Nguyen Anh Quynh
5a7f409dec set @insn to NULL on error in cs_disasm_ex() 2014-06-19 11:15:54 +08:00
Nguyen Anh Quynh
6c182aedcf fix a memleaking issue in cs_disasm_ex() where memory was not freed when input code is illegit 2014-06-18 21:50:25 +08:00
Nguyen Anh Quynh
cb6fc59da1 remove redundant return in MCInst_Init() 2014-06-18 15:39:00 +08:00
Nguyen Anh Quynh
cff03629ac arm64: assign NULL to char pointer, not zero. bug reported by Coverity 2014-06-18 14:04:42 +08:00
Nguyen Anh Quynh
7ae389ede8 suite: support XCore in fuzz.py 2014-06-17 18:17:59 +08:00
Nguyen Anh Quynh
6a5cc570cc suite: support XCore in benchmark.py 2014-06-17 18:17:26 +08:00
Nguyen Anh Quynh
73eb5d5486 arm: op_addImm() is called only when detail mode is ON 2014-06-17 18:08:29 +08:00