Commit Graph

2970 Commits

Author SHA1 Message Date
YUHANG TANG 9bc14c18fc cstool: delete tab 2016-10-28 15:32:50 +08:00
Samuel Chevet 31378e5007 add X86_REG_EFLAGS for X86_STC (#797)
* add X86_REG_EFLAGS for X86_STC

* remove wrong X86_GRP_PRIVILEGE for X86_STC ; add X86_REG_EFLAGS for X86_STD
2016-10-28 03:23:50 +08:00
Andrew Dutcher 106d241cba Python setup: Clean up some merge failures, adapt for changes on next branch 2016-10-26 23:15:42 -07:00
YUHANG TANG be3f8674e1 cstool: add m68k and change cstool_x86 2016-10-27 12:12:59 +08:00
Andrew Dutcher d0afd01e88 Python: Actually attempt to load .so.3 extension on linux 2016-10-25 21:49:59 -07:00
Andrew Dutcher b7e4c48e83 Python: Spelling/capitalization/contact fixes in readme 2016-10-25 21:49:58 -07:00
Andrew Dutcher 77888ab8ee Minor english fixes 2016-10-25 21:49:58 -07:00
Andrew Dutcher 8c132fb0e2 Python: remove special case for cygwin build 2016-10-25 21:49:58 -07:00
Andrew Dutcher f4aed6025f Python: Make cython work with extreme prejudice 2016-10-25 21:49:58 -07:00
Andrew Dutcher 82928447e7 Python: Clean up the capstone-windows stuff with extreme prejudice 2016-10-25 21:48:41 -07:00
Andrew Dutcher d8111c1dc9 Python: make setup work as expected 2016-10-25 21:48:18 -07:00
Nguyen Anh Quynh efd8b14471 bindings: regenerate consts 2016-10-25 14:30:13 +08:00
Nguyen Anh Quynh 10618e3e6a add CS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:29:21 +08:00
Nguyen Anh Quynh 3ba8c4d2d9 improve dependency on header files *.h, and remove clean from make.sh. see PR #793 2016-10-23 02:09:14 +08:00
Nguyen Anh Quynh e18496fe5d cstool: cleanup 2016-10-22 23:38:35 +08:00
Nguyen Anh Quynh a799790147 cstool: print out core version 2016-10-21 17:34:31 +08:00
Nguyen Anh Quynh 2897a80caf cstool: fix compilation bug 2016-10-21 17:03:27 +08:00
Nguyen Anh Quynh 32238dc8c5 cstool: cleanup 2016-10-21 16:57:23 +08:00
YUHANG TANG bde12aed40 cstool: convert space to tab 2016-10-21 16:57:09 +08:00
YUHANG TANG a7b4852453 Delete platform.h and fix wrong identation. 2016-10-21 16:56:43 +08:00
YUHANG TANG 61e5054b63 cstool version 2 2016-10-21 16:56:00 +08:00
YUHANG TANG ad25742e89 cstool: version 2 could print all debug information for all arch. 2016-10-21 16:55:48 +08:00
YUHANG TANG 08da0c0533 cstool : print all debug information for all arch. 2016-10-21 16:55:28 +08:00
YUHANG TANG 9354e5e364 cstool: add x86 debug information 2016-10-21 16:55:09 +08:00
Nguyen Anh Quynh a773887d13 cstool: prepare for multiple C sources 2016-10-19 23:01:58 +08:00
Nguyen Anh Quynh d14504d5fa Merge branch 'next' of https://github.com/aquynh/capstone into next 2016-10-17 14:42:47 +08:00
Nguyen Anh Quynh ef4a2dbccc tests: cleanup 2016-10-17 14:42:32 +08:00
Nguyen Anh Quynh b4aae2d0ab Merge pull request #792 from angr/fix/copy_via_memmove
Change pointer-deref-then-assignment to memmove to make PyPy happy.
2016-10-14 13:29:20 +08:00
Andrew Dutcher 883c333f86 Fix two missing register operands in X86 AT&T syntax (#791)
* Bug fix: missing register operand in AT&T emitter for `movb %ax, imm`

* Bug fix: missing register operand in AT&T emitter for `movb %al, imm`
2016-10-14 13:26:27 +08:00
Fish ce6b47765c Change pointer-deref-then-assignment to memmove to make PyPy happy. 2016-10-13 19:56:41 -07:00
Nguyen Anh Quynh ce7c9a8ec5 Makefile: remove extra / letter for install target 2016-10-13 20:45:24 +08:00
Nguyen Anh Quynh 45f81ff5b7 x86: RET read/write stack register. this fixes issue #790 2016-10-13 20:44:42 +08:00
Nguyen Anh Quynh 130eb7ef94 cstool: compile with CMake using CMakeLists.txt in root dir 2016-10-11 23:24:44 +08:00
Nguyen Anh Quynh 7415467aee cstool: initialize i in preprocess(). this fixes compilation issue for MSVC 2016-10-11 16:56:20 +08:00
Nguyen Anh Quynh eb34f6e478 cstool: support CMake 2016-10-11 16:51:20 +08:00
Nguyen Anh Quynh bab2a93031 cstool: align assembly code for x86 2016-10-11 16:19:27 +08:00
Nguyen Anh Quynh fcd1b44a3f cstool: update README with more details 2016-10-11 00:21:20 +08:00
Nguyen Anh Quynh 14978f878f update .gitignore 2016-10-11 00:05:33 +08:00
Nguyen Anh Quynh 5664998f4c cstool: compile for next branch 2016-10-11 00:04:46 +08:00
Nguyen Anh Quynh 6ccfcab154 cstool: make it compile with GCC on Linux 2016-10-11 00:03:19 +08:00
Nguyen Anh Quynh 797a637a86 cstool: fix Makefile 2016-10-11 00:02:08 +08:00
Nguyen Anh Quynh 815b94a452 cstool: add VERSION and reformat to use tabs for indentation 2016-10-11 00:01:57 +08:00
Nguyen Anh Quynh c2887082a2 cstool: fix Makefile 2016-10-11 00:01:46 +08:00
Nguyen Anh Quynh f36b3f426e cstool: compile/clean/install/uninstall from Makefile 2016-10-11 00:01:29 +08:00
echotyh 51c8c5082a 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
Richo Healey bbf6a1eebd Workaround unicorn handing back bytearrays 2016-10-06 14:40:37 +08:00
Benno Fünfstück e199eb9cfe python-bindings: fix setup.py for wheel installation
When the python bindings are installed using the new wheels
infrastructure, data_files are relative to the site-packages directory
even if using absolute paths.

The following example demonstrates the bug fixed by this commit: (ran on archlinux)

```bash
$ pip install wheel       # if this package is installed, wheel installation is made the default
Collecting wheel
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
    100% |################################| 71kB 124kB/s
Installing collected packages: wheel
Successfully installed wheel-0.29.0

$ pip install capstone    # this will use the wheel installation method now
Collecting capstone
  Using cached capstone-3.0.4.tar.gz
Building wheels for collected packages: capstone
  Running setup.py bdist_wheel for capstone ... done
  Stored in directory: /root/.cache/pip/wheels/7c/d1/d0/db6e2c5ef1063aabb9de2dd8b92b4c27ee6f9fd213240099b8
Successfully built capstone
Installing collected packages: capstone
Successfully installed capstone-3.0.4

$ find /usr/lib/ -name "libcapstone.so"
/usr/lib/python3.5/site-packages/usr/lib/python3.5/site-packages/capstone/libcapstone.so
```

So the path `SITE_PACKAGES` in the `data_files` specification of the
setup.py file was interpreted relative to the python site-packages
directory. The fix for this is simple: use `/capstone` instead of an
absolute path for `SITE_PACKAGES`.
2016-10-03 10:50:08 +08:00
Nguyen Anh Quynh bd8e5ba370 python: cast skipdata function inside binding to simplify the API 2016-10-02 01:35:28 +08:00
Nguyen Anh Quynh d41c06c628 python: fix CS_SKIPDATA_CALLBACK prototype 2016-10-01 01:31:24 +08:00
Nguyen Anh Quynh c6e7a9e0eb Merge pull request #781 from tandasat/next
PR #779 plus more warning suppression and compile error fix
2016-09-29 08:49:03 +08:00