Commit Graph

23 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
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
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
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
45688690c3 cstool: align assembly code for x86 2016-10-11 16:19:55 +08:00
Nguyen Anh Quynh
cc81b6ec6f cstool: add VERSION and reformat to use tabs for indentation 2016-10-10 23:20:29 +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