Commit Graph

36 Commits

Author SHA1 Message Date
Priit Laes
a1659e996c Add cortex-m support to cstool, refactoring and crash fix (#1099)
* cstool: Refactor architecture parsing and fix crash with invalid arch

* cstool: Enable cortex-m decoder
2018-03-19 00:04:27 +08:00
Ruslan Kabatsayev
02f7296a33 cstool: Separate instruction bytes by spaces (#1009) 2017-09-06 21:38:52 +08:00
Zach Riggle
8f813d4487 Fix the include path for Android builds when building cstool (#1000)
Previously, the CFLAGS= statement would strip --sysroot from CFLAGS.
2017-08-29 07:23:03 +07:00
Nguyen Anh Quynh
438f824446 cstool: cs_op_count() can return -1. fix #978 2017-07-26 23:16:52 +08:00
Adrian Herrera
229593dc3f mingw build: cstool fails to build with mingw (#941)
The correct compiler was not being passed to cstool/Makefile. The expected name
for the capstone lib was also incorrect - there is no "lib" prefix when
compiling with mingw.
2017-06-02 21:49:10 +08:00
Nguyen Anh Quynh
b6c4c3f5c7 rebuild cstool when the core changes. fix #932 2017-05-25 23:11:12 +08:00
Nguyen Anh Quynh
2acb20560c cstool: support arm64be 2017-04-25 21:33:56 +08:00
Nguyen Anh Quynh
04ce7f29a6 cstool: fix mips64 mode 2017-04-11 09:46:18 +08:00
Nguyen Anh Quynh
d786983104 cstool: support armbe mode 2017-03-10 20:31:23 +08:00
Ben Cheney
e213802e63 Fix build under VS2012 (i.e. MSC_VER = 1700)
cstool.c currently imports inttypes.h, which breaks
building on older Visual Studio versions (I've been
testing 2012). This commit removes the explicit include
of inttypes.h, which is already handled in platform.h
(which is included by capstone.h). A define for the
function strtoull (used by cstool) has also been added
to platform.h for the case where MSC_VER <= 1700.

I don't know what effect this will have on OS X builds
as I'm unable to test on that platform.

Also, cstool.c doesn't need to include stdio.h
because it's already included by capstone.h.
2016-12-21 13:12:32 +10:30
Nguyen Anh Quynh
c86e78fce7 x86: fix movw instruction in #789 2016-11-08 10:56:42 +08:00
Nguyen Anh Quynh
8853489ea9 cstool: remove M68K support 2016-11-05 00:52:54 +08:00
Nguyen Anh Quynh
41a3980b6d cstool: print out insn groups 2016-11-05 00:50:44 +08:00
Nguyen Anh Quynh
861a09822f cstool: remove its version 2016-11-04 23:59:34 +08:00
Nguyen Anh Quynh
3d658dea0b cstool: update README 2016-10-28 21:23:42 +08:00
Nguyen Anh Quynh
f585a84966 add CS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:23:55 +08:00
Nguyen Anh Quynh
1601b15f07 cstool: cleanup 2016-10-22 23:38:00 +08:00
Nguyen Anh Quynh
a9ec8b0df2 cstool: print out core version 2016-10-21 17:35:05 +08:00
Nguyen Anh Quynh
34533f3132 cstool: cleanup 2016-10-21 16:42:47 +08:00
YUHANG TANG
6fab6cf7c4 cstool: convert space to tab 2016-10-21 16:03:35 +08:00
YUHANG TANG
469b4addd4 Delete platform.h and fix wrong identation. 2016-10-19 22:28:05 +08:00
YUHANG TANG
e9ace1c70a cstool version 2 2016-10-16 17:04:24 +08:00
YUHANG TANG
3e6f90376e cstool: version 2 could print all debug information for all arch. 2016-10-16 16:56:55 +08:00
YUHANG TANG
837752356e cstool : print all debug information for all arch. 2016-10-14 20:47:29 +08:00
YUHANG TANG
abc28b5bd3 cstool: add x86 debug information 2016-10-14 17:29:56 +08:00
Nguyen Anh Quynh
ae02bf1c5d cstool: compile with CMake using CMakeLists.txt in root dir 2016-10-11 23:24:15 +08:00
Nguyen Anh Quynh
4834cd2700 cstool: initialize i in preprocess(). this fixes compilation issue for MSVC 2016-10-11 16:56:47 +08:00
Nguyen Anh Quynh
f7ff8f6b6e cstool: support CMake 2016-10-11 16:50:51 +08:00
Nguyen Anh Quynh
45688690c3 cstool: align assembly code for x86 2016-10-11 16:19:55 +08:00
Nguyen Anh Quynh
800595125d cstool: update README with more details 2016-10-11 00:20:58 +08:00
Nguyen Anh Quynh
15b9e7ecb9 cstool: make it compile with GCC on Linux 2016-10-10 23:52:29 +08:00
Nguyen Anh Quynh
ef2c5f29d7 cstool: fix Makefile 2016-10-10 23:25:21 +08:00
Nguyen Anh Quynh
cc81b6ec6f cstool: add VERSION and reformat to use tabs for indentation 2016-10-10 23:20:29 +08:00
Nguyen Anh Quynh
a169963a61 cstool: fix Makefile 2016-10-10 23:07:39 +08:00
Nguyen Anh Quynh
346032797a cstool: compile/clean/install/uninstall from Makefile 2016-10-10 22:54:16 +08:00
echotyh
6239a984c7 cstool 1.0 (#788)
* first cstool -- Segmentation fault: 11

* Modify the format of output.

* Preprocess the input from user. The result of converting looks right but the disassembly is not unsatisfactory.

* Skip the character not in set A = {'a'~'f','A'~'F','0'~'9'}.
i Please enter the commit message for your changes. Lines starting

* delete cstool binary

* using isxdigit() to tests for any hexadecimal-digit character

* write README

* final version 1.0 for cstool
2016-10-10 15:16:56 +08:00