16 Commits

Author SHA1 Message Date
Nguyen Anh Quynh e02e86c583 python: fix library versioning 2020-06-13 02:00:40 +08:00
Andrew Benson a5d2b15eef bindings/python: attempt to load versioned library (#466)
Some platforms split *.so into -devel, which then requires the python library
to be patched to load libkeystone.so.0 instead of libkeystone.so.
2020-06-12 15:56:54 +08:00
Nguyen Anh Quynh 644b64c9c0 python: attempt to load libkeystone.so from /usr/local for Linux, too 2019-12-31 10:07:19 +08:00
Nguyen Anh Quynh 80d46cee40 add Ethereum VM architecture 2018-03-31 00:08:28 +08:00
Segev Finer 1123976377 Add asm(..., as_bytes=True) to Python bindings (#327)
When enabled, the assembled code will be returned as bytes (str on
Python 2) instead of a list of integers, this is more memory efficient,
faster (It's created using ctypes.string_at instead of a loop in
Python), and more convenient since that's the type that most code that
works with bytes in Python expects (That includes capstone).

Defaults to `False` for backwards compatibility, since changing the
return type is a breaking change.
2017-11-29 22:29:04 +08:00
Nguyen Anh Quynh ba96155275 add KS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:52:19 +08:00
Nguyen Anh Quynh f7f71f6318 python: delay import distutils until really need that 2016-10-13 22:54:27 +08:00
Nguyen Anh Quynh 40c477a79d update bindings to add KS_OPT_SYM_RESOLVER. Python binding now supports this option. see sample.py for example 2016-10-02 13:56:10 +08:00
Nguyen Anh Quynh 3664a62666 bindings: fix a debug print in keystone.py 2016-09-01 20:21:47 +08:00
Nguyen Anh Quynh 961c2c869d python: expose stat_count returned from ks_asm() when error occur. see issue #228 2016-07-27 00:24:33 +08:00
Nguyen Anh Quynh 2678d30b85 python: extra version info 2016-07-17 09:57:46 +08:00
Nguyen Anh Quynh 7dc48f50a9 python: remove redundant Windows dependency 2016-07-14 16:00:03 +08:00
Sascha Schirra e391c08bed python 2/3 compatibility in KsError.__str__ and Ks.asm 2016-06-17 21:43:15 +02:00
Adrian Herrera 41c9d1c977 Changed argument type for the ks_free function
* ks_free: The 'p' argument should have type unsigned char* to match the type of the 'encoding' argument to ks_asm
2016-06-05 17:06:33 +10:00
Nguyen Anh Quynh d9e2003aca python: add some debug print to loading shared library 2016-05-14 15:32:21 +08:00
Nguyen Anh Quynh 9f1a353f68 import 2016-04-28 21:06:49 +08:00