Commit Graph

2438 Commits

Author SHA1 Message Date
Andrew Dutcher
aa07e1c7f3 Python: remove special case for cygwin build 2016-10-25 12:56:10 -07:00
Andrew Dutcher
b7f4930ad7 Python: Make cython work with extreme prejudice 2016-10-25 12:56:10 -07:00
Andrew Dutcher
85cd24b562 Python: Clean up the capstone-windows stuff with extreme prejudice 2016-10-25 12:56:10 -07:00
Andrew Dutcher
ced66e3b77 Python: make setup work as expected 2016-10-25 12:56:10 -07:00
Nguyen Anh Quynh
f585a84966 add CS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:23:55 +08:00
Nguyen Anh Quynh
680080a7ac Merge branch 'master' into test 2016-10-23 02:19:35 +08:00
Nguyen Anh Quynh
88edace09c improve dependency on header files *.h, and remove clean from make.sh. see PR #793 2016-10-23 02:02:51 +08:00
Nguyen Anh Quynh
648b39839e improve dependency on header files *.h, and remove clean from make.sh. see PR #793 2016-10-23 02:00:47 +08:00
Nguyen Anh Quynh
591d651604 python: name capitalized 2016-10-22 23:56:33 +08:00
Nguyen Anh Quynh
20f5e40245 Merge branch 'master' into test 2016-10-22 23:40:07 +08:00
Nguyen Anh Quynh
1601b15f07 cstool: cleanup 2016-10-22 23:38:00 +08:00
Nguyen Anh Quynh
ffbb083f31 bindings: update some consts 2016-10-22 23:32:13 +08:00
Nguyen Anh Quynh
d5fdb26fc9 Merge branch 'feat/better_python_setup' of https://github.com/angr/capstone into angr-feat/better_python_setup 2016-10-22 23:27:24 +08:00
Andrew Dutcher
978ee87c16 Python: Spelling/capitalization/contact fixes in readme 2016-10-22 03:40:06 -07:00
Andrew Dutcher
cade4fb2d2 Minor english fixes 2016-10-21 03:39:22 -07:00
Andrew Dutcher
10a9c3ac86 Python: remove special case for cygwin build 2016-10-21 03:30:53 -07:00
Andrew Dutcher
3a5c10686b Python: Make cython work with extreme prejudice 2016-10-21 03:30:50 -07:00
Andrew Dutcher
90bd230274 Python: Clean up the capstone-windows stuff with extreme prejudice 2016-10-21 03:30:44 -07: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
Nguyen Anh Quynh
5091d6de20 Merge branch 'master' of https://github.com/echotyh/capstone into echotyh-master 2016-10-21 16:12:12 +08:00
YUHANG TANG
6fab6cf7c4 cstool: convert space to tab 2016-10-21 16:03:35 +08:00
Nguyen Anh Quynh
fbd3bcbcb2 cstool: prepare for multiple C sources 2016-10-19 23:01:31 +08:00
YUHANG TANG
469b4addd4 Delete platform.h and fix wrong identation. 2016-10-19 22:28:05 +08:00
Nguyen Anh Quynh
69f4206413 tests: cleanup 2016-10-17 14:41:26 +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
Andrew Dutcher
7ff79aabc9 Python: make setup work as expected 2016-10-14 05:06:30 -07: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
7c945cd3d3 update .gitignore 2016-10-11 00:06:07 +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
Nguyen Anh Quynh
a5ff4bd263 update CREDITS.TXT 2016-10-10 15:21: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
Nguyen Anh Quynh
ccece7403b Merge pull request #787 from richo/richo-bytearray
Workaround unicorn handing back bytearrays
2016-10-06 14:38:31 +08:00
Richo Healey
72daee3d07 Workaround unicorn handing back bytearrays 2016-10-05 22:47:40 -07:00
Nguyen Anh Quynh
d7b7b74754 Merge pull request #783 from bennofs/fix-setuppy-wheel
python-bindings: fix setup.py for wheel installation
2016-10-03 10:49:27 +08:00
Benno Fünfstück
23fe9f3662 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-02 15:25:13 +02:00
Nguyen Anh Quynh
5b80627a5d python: cast skipdata function inside binding to simplify the API 2016-10-02 01:36:03 +08:00
Nguyen Anh Quynh
0662879d35 python: fix CS_SKIPDATA_CALLBACK prototype 2016-10-01 01:33:09 +08:00
Nguyen Anh Quynh
97e383853f Merge pull request #779 from tandasat/original
Fix typo, style, suppress MSVC PREfast warnings, ignore residual files on project upgrade
2016-09-28 12:15:28 +08:00