Commit Graph

26 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
2fc852dcbd fix warnings on const char * discards qualifiers 2018-07-24 01:41:59 +08:00
Nguyen Anh Quynh
ed1246d79b add Ethereum VM architecture 2018-03-31 17:29:22 +08:00
Nguyen Anh Quynh
0f3dc67430 tests: fix warning on unused var in test_skipdata.c 2018-02-19 11:46:53 +08:00
tandasat
45e5eab646 port Windows driver support 2016-05-11 21:48:32 -07:00
Nguyen Anh Quynh
20037df9dd tests: properly define HAS_XXX marcros so some tests work 2015-08-09 09:47:53 -07:00
Nguyen Anh Quynh
960aba476c tests: fix some warnings for unused variables in test_skipdata.c 2015-07-31 09:27:03 +08:00
Taras Tsugrii
63fbf8e560 Include tests only for supported architectures.
Capstone conveniently provides options to enable/disable specific architectures
which is very useful for trimming the size of the binary, but those options are
ignored in some tests, so when say X86 architecture is not included, some tests
would fail.

This change conditionally includes tests only for supported architectures.
2015-07-30 13:01:25 -07:00
Yegor Derevenets
50c352c9d6 Make tests fail loudly 2015-05-31 09:01:38 +02:00
Cr4sh
19ee2d10b3 inttypes.h fix 2015-03-29 21:16:38 +08:00
pancake
9c10ace558 Make pkg-config and source consistent with installation 2015-02-24 05:03:04 +01:00
Yegor Derevenets
ced9d24e35 Workaround missing <inttypes.h> on MSVC 2010 2014-09-21 17:27:11 +02: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
Mr. eXoDia
9be1f93f88 fixed warnings in MSVC x64 compilation 2014-08-26 23:51:12 +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
2c61656d99 tests: correct the prototype of mycallback() in test_skipdata 2014-05-20 10:30:33 +08:00
danghvu
50fdc6c463 Merge with upstream 2014-05-19 21:21:03 -05:00
danghvu
69a7c2d580 Make test_skipdata performs tests by default 2014-05-19 20:52:25 -05:00
Nguyen Anh Quynh
9389353971 tests: fix warnings caused by unused variable/function in test_skipdata.c 2014-05-15 21:04:37 +08:00
Axel 0vercl0k Souchet
de2dff44a0 fixed test_skipdata.c for VS2012 2014-05-09 21:32:41 +01: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
943cb2d71b tests: add more example on customizing SKIPDATA mode to test_skipdata.c 2014-04-11 17:12:58 +08:00
Nguyen Anh Quynh
655c7021d2 tests: more C89 fixes 2014-04-11 12:15:33 +08:00
Nguyen Anh Quynh
8118bcd913 tests: add example code on how to rename 'data' instruction's mnemonic of SKIPDATA mode 2014-04-11 11:14:33 +08:00
Nguyen Anh Quynh
5b556e5fcf tests: C89 2014-04-11 10:15:26 +08:00
Nguyen Anh Quynh
b64d1cf193 refine the comments for Skipdata sample code 2014-04-10 23:05:28 +08:00
Nguyen Anh Quynh
c82581992a tests: add test_skipdata.c & do not test SKIPDATA in test.c anymore 2014-04-10 17:49:50 +08:00