Commit Graph

45 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
a893e37c9c tests: 2019 2019-05-30 20:49:10 +08:00
Nguyen Anh Quynh
ed96912a46 cleanup tests/ 2019-03-09 08:51:30 +08:00
Nguyen Anh Quynh
4a6316e58a fix warnings on const char * discards qualifiers 2018-07-24 12:22:10 +08:00
Nguyen Anh Quynh
9c7a094b58 add Ethereum VM architecture 2018-03-31 17:29:22 +08:00
Akihiko Odaki
e7e4e1dfda arm: treat ARM address as unsigned
It should be unsigned because:
* It does arithmetic operations
* Format strings have "%u" instead of "%d"

# Conflicts:
#	arch/ARM/ARMInstPrinter.c
#	bindings/python/test_arm.py
#	tests/test_arm.c
2016-09-04 00:13:50 +09:00
tandasat
7b2f93068d port #684 to the next branch 2016-05-16 20:32:36 -07:00
tandasat
6e79b1ac32 Merge remote-tracking branch 'upstream/next' into next 2016-05-13 07:38:42 -07:00
tandasat
d4ef430b33 port Windows driver support 2016-05-11 21:48:32 -07:00
Inokentiy Babushkin
47610f1aaf Fixed trivial (all) compiler warnings
Some enumeration compares were using the wrong (but in this case
harmless) enumeration in the test suite. Replaced to make the compiler
happy.
2016-05-08 23:25:58 +02:00
Yegor Derevenets
50c352c9d6 Make tests fail loudly 2015-05-31 09:01:38 +02:00
Nguyen Anh Quynh
29f777bdd9 arm: support cs_regs_access() API 2015-04-07 11:59:26 +08: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
Nguyen Anh Quynh
6c34c6659b tests: update test_arm.c to add a sample reflecting the addition of lshift field on arm_op_mem 2015-01-12 15:38:06 +08:00
Nguyen Anh Quynh
8cdafda551 arm: add new field mem_barrier to cs_arm struct. this requires changes in bindings 2014-11-11 22:30:30 +08:00
Nguyen Anh Quynh
83466d4277 test: add sample code for ARM's CS_MODE_MCLASS & CS_MODE_V8 2014-11-11 21:44:42 +08:00
Nguyen Anh Quynh
8fb2eab459 arm: some operands can get subtracted from base register, thus have '-' sign associated. this adds subtracted field into cs_arm_op to provide this info. issue reported by Yegor Derevenets 2014-10-06 20:27:25 +08:00
Yegor Derevenets
ced9d24e35 Workaround missing <inttypes.h> on MSVC 2010 2014-09-21 17:27:11 +02:00
Nguyen Anh Quynh
04d9f8ee17 arm: update core with a lot more details provided in detail mode now. update Python & Java bindings to reflect the core's changes 2014-09-01 23:27:24 +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
Mr. eXoDia
9be1f93f88 fixed warnings in MSVC x64 compilation 2014-08-26 23:51:12 +08:00
Axel 0vercl0k Souchet
6b2395f5f7 fixed test_arm.c for VS2012 2014-05-09 21:08:40 +01:00
Nguyen Anh Quynh
5b556e5fcf tests: C89 2014-04-11 10:15:26 +08:00
Nguyen Anh Quynh
54015f45bc tests: add sanity check on insn->detail, since it can be NULL when SKIPDATA option is ON 2014-04-10 00:02:04 +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
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
491469155e tests: continue to next tests rather than quit when failing to initialize a test 2014-02-22 16:54:44 +08:00
Nguyen Anh Quynh
ceae16d5a9 tests: report error when cs_open() failure 2014-01-19 16:04:23 +08:00
Nguyen Anh Quynh
39b812d9e9 switch detail to be CS_OPT_OFF by default 2014-01-07 23:36:26 +08:00
Nguyen Anh Quynh
f122ae0629 tests: simplify some accesses to insn's details, and fix some typo bugs 2014-01-05 21:45:30 +08:00
Nguyen Anh Quynh
04c19beefe rename API cs_disasm_dyn() to cs_disasm_ex(), and intentionally breaks compatibility with 1.0 2013-12-25 13:26:22 +08:00
Nguyen Anh Quynh
4fe224b1ed change API cs_disasm_dyn(): break cs_insn into 2 structures, and put all details into new structure cs_detail. this break API compatibility 2013-12-24 16:49:36 +08:00
Nguyen Anh Quynh
397d0de598 tests: simplify print_insn_detail() function by deleting unused argument 2013-12-16 23:37:08 +08:00
Nguyen Anh Quynh
6677b994e7 arm: fix a wrong calculation on sign of .disp value in mem reference 2013-12-08 22:20:35 +08:00
Nguyen Anh Quynh
5df9e4be91 tests: change variable address's type to uint64_t 2013-12-03 15:02:12 +08:00
Nguyen Anh Quynh
7b7b40c879 tests: now @address is uint64_t, no need to typecast for PRIx64 anymore 2013-12-03 12:24:06 +08:00
Nguyen Anh Quynh
7c7a8bc523 arm: move static variable ITBlock to cs_struct, so make arm code truly thread-safe 2013-12-02 13:16:44 +08:00
Nguyen Anh Quynh
f1c2eee091 x86: clang still complains on unused enum type. this shuts it up 2013-12-02 12:29:07 +08:00
Nguyen Anh Quynh
524194acfb test: add few (commented out) arm instructions to test_arm.c 2013-12-01 23:23:37 +08:00
Nguyen Anh Quynh
bc38a28761 test: add some more insn to test_arm.c (commented out code) 2013-12-01 23:14:17 +08:00
Nguyen Anh Quynh
173ed2b1cb arm: upgrade core engine 2013-12-01 22:19:27 +08:00
Nguyen Anh Quynh
cc6cf65980 tests: add some test insn (commented) 2013-12-01 09:01:52 +08:00
Nguyen Anh Quynh
723687ea0e tests: typecast size_t to uint64_t for printf, since MingW doesnt support zu specifier 2013-11-29 22:36:45 +08:00
Nguyen Anh Quynh
b42a657873 change cs_disasm() and cs_disasm_dyn() to be portable API. fix related code using these API 2013-11-29 17:40:07 +08:00
Nguyen Anh Quynh
26ee41aa67 initial import 2013-11-27 12:11:31 +08:00