Commit Graph

31 Commits

Author SHA1 Message Date
Nguyen Anh Quynh 589585ecc1 cstool: some cleanup 2017-07-04 16:04:53 +08:00
Sergi Àlvarez i Capilla 8561f15d66 Refactor cstool to use getopt -100LOC (#953)
* Refactor cstool to use getopt -100LOC

* Add getopt.h for portability

* Do not use os-specific separators in include paths
2017-07-04 15:55:46 +08:00
radare 7a4567612c Honor CS_OPT_UNSIGNED on x86 and add cstool -u (#945) 2017-06-16 02:13:28 +08:00
Nguyen Anh Quynh c768fa919f cstool: support arm64be 2017-04-25 21:33:26 +08:00
Fotis Loukos e963a1e17c Added cstool support for tms320c64x 2017-04-17 11:58:29 +03:00
Nguyen Anh Quynh bd20ee1f75 cstool: fix mips64 mode 2017-04-11 09:45:55 +08:00
Nguyen Anh Quynh bb6e792f03 cstool: support armbe mode 2017-03-10 20:30:55 +08:00
Ben Cheney 19b89432eb 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 11:00:25 +08:00
Nguyen Anh Quynh c9a2148b05 cstool: print out insn groups 2016-11-05 00:47:14 +08:00
Nguyen Anh Quynh 008a840a56 cstool: use switch 2016-11-05 00:43:22 +08:00
Nguyen Anh Quynh bdf1b97a51 cstool: remove its version 2016-11-04 23:57:52 +08:00
Nguyen Anh Quynh 835042587f cleanup 2016-10-28 16:12:05 +08:00
Nguyen Anh Quynh 0a6b074929 Merge branch 'next' of https://github.com/echotyh/capstone into echotyh-next 2016-10-28 16:04:52 +08:00
YUHANG TANG 1d7dcad473 cstool: delete tab 2016-10-28 15:32:50 +08:00
YUHANG TANG 5e0a15521b cstool: add m68k and change cstool_x86 2016-10-27 12:12:59 +08:00
Nguyen Anh Quynh 1e5a48535c add CS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:29:21 +08:00
Nguyen Anh Quynh 0382c90220 cstool: cleanup 2016-10-22 23:38:35 +08:00
Nguyen Anh Quynh 8922eca702 cstool: print out core version 2016-10-21 17:34:31 +08:00
Nguyen Anh Quynh c194aeeab4 cstool: cleanup 2016-10-21 16:57:23 +08:00
YUHANG TANG f811b77140 cstool: convert space to tab 2016-10-21 16:57:09 +08:00
YUHANG TANG 6423e59f25 Delete platform.h and fix wrong identation. 2016-10-21 16:56:43 +08:00
YUHANG TANG 97c5c098bb cstool version 2 2016-10-21 16:56:00 +08:00
YUHANG TANG c6705984c0 cstool: version 2 could print all debug information for all arch. 2016-10-21 16:55:48 +08:00
YUHANG TANG bb66912b28 cstool : print all debug information for all arch. 2016-10-21 16:55:28 +08:00
YUHANG TANG 089893ed98 cstool: add x86 debug information 2016-10-21 16:55:09 +08:00
Nguyen Anh Quynh c5e661cbb8 cstool: compile with CMake using CMakeLists.txt in root dir 2016-10-11 23:24:44 +08:00
Nguyen Anh Quynh d971fde0e8 cstool: initialize i in preprocess(). this fixes compilation issue for MSVC 2016-10-11 16:56:20 +08:00
Nguyen Anh Quynh d360b8bb17 cstool: align assembly code for x86 2016-10-11 16:19:27 +08:00
Nguyen Anh Quynh 54d351ef48 cstool: compile for next branch 2016-10-11 00:04:46 +08:00
Nguyen Anh Quynh d823a3ad4e cstool: add VERSION and reformat to use tabs for indentation 2016-10-11 00:01:57 +08:00
echotyh 07337a708d 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 23:54:25 +08:00