Niels Boehm
06cc17d41c
Fix typo in m68k constant for immediate operand.
2016-06-15 08:25:59 +02:00
Niels Boehm
78893a5473
Add m68k to the general Python tests.
2016-06-14 13:35:02 +02:00
Niels Boehm
901928e28d
Add missing architectures to test_lite.py.
...
The code constants and the all_tests tuple is now analogous to
test_basic.py.
2016-06-14 13:28:14 +02:00
Niels Boehm
0f4ecc6ccc
Use and test syntax against None in all_tests.
...
Comparing against 0 or just testing the truthiness is suboptimal, as you
lose the ability to explicitly set the syntax to CS_OPT_SYNTAX_DEFAULT
or 0.
Also, using None to mean "don't change" or other "here is no value"
interpretations is much more pythonic than the C-idiomatic 0.
2016-06-13 12:25:24 +02:00
Nguyen Anh Quynh
e3f94ac4ab
fix merging conflict
2016-05-22 08:58:33 +08:00
Nguyen Anh Quynh
7b03323b8c
Merge pull request #682 from ibabushkin/next
...
Reduced confusion caused by the m68k test being out of date
2016-05-14 18:19:36 +08:00
Nguyen Anh Quynh
820d7d02c7
Merge pull request #669 from zachriggle/next-mips
...
Add MIPS_GRP_INT and MIPS_GRP_CALL
2016-05-14 09:36:49 +08:00
Inokentiy Babushkin
bdb1d2988c
Further refinements to the tests + python test fix for M68K
2016-05-13 18:39:32 +02:00
Inokentiy Babushkin
e488a7ed8e
Fixed ordering in files
2016-05-12 08:57:25 +02:00
Inokentiy Babushkin
1b0779b97a
Fixed python bindings to align with struct changes
2016-05-12 08:50:05 +02:00
Zach Riggle
1b3f07ad12
Add MIPS_GRP_XXX aliases for generic types.
2016-05-03 07:30:31 -07:00
Pranith Kumar
4a3af7b1c8
Handle python test failure properly
2016-04-30 13:12:16 -04:00
Nguyen Anh Quynh
6858c0f590
binding: remove cx_x86_op::fp following the change in the core
2016-04-24 00:16:08 +08:00
Sean Heelan
83cd155db2
__getattr__ should raise AttributeError, not return None, on failure
...
Fix for issue #624
2016-04-18 18:21:24 +08:00
Nguyen Anh Quynh
5c85a75d40
m68k: fix conflicts when merging with #625
2016-04-12 19:58:29 +07:00
Nguyen Anh Quynh
7fff673415
bindings: update after recent changes on some M68k enums
2016-04-12 18:47:19 +08:00
Nguyen Anh Quynh
c6397bf354
python: add access field for ARM64
2016-04-12 13:42:07 +08:00
Nicolas PLANEL
a66b4b425c
update generated bindings
2016-04-11 23:05:11 +10:00
Nicolas PLANEL
c086c904d3
fixup indentation, mix of spaces and tabs
2016-04-11 23:03:45 +10:00
Daniel Collin
0bcb2e546c
Various fixes
...
* Fixed a break indentation
* Fixed incorrect enum value for M68K_GRP_IRET
* Fixed so groups_count is set to 0 at init
* Added group_count printing in python example
2016-04-10 16:16:28 +02:00
jmechnich
52294728e5
bugfix: removed leading ./ from OBJDIR to avoid corrupting setup.py install
2016-03-25 22:31:13 +01:00
Nguyen Anh Quynh
a23f9d37ed
add CS_OPT_UNSIGNED option to print immediate in unsigned form. only ARM is supported for now (issue #585 )
2016-03-14 13:52:23 +08:00
Nguyen Anh Quynh
c69b6a921d
Merge branch 'next' of https://github.com/aquynh/capstone into next
2016-03-06 21:28:16 +08:00
Nguyen Anh Quynh
3766ed1282
python: add __version__
2016-03-06 21:27:55 +08:00
Michael Cohen
32923cf004
Added a missed dependency to MANIFEST.in to allow packaging of C src in the sdist.
2016-03-04 08:06:05 -08:00
Michael Cohen
40a42b4939
Fix setup.py to use setuptools and put the libcapstone.so in the right place.
2016-02-15 02:34:32 +01:00
Nguyen Anh Quynh
31f239f920
python: implement setter for skipdata_setup. this fixes issue 564 so it is now possible to redefine skipdata's mnemonic
2015-12-06 01:00:21 +07:00
Raijinili
6ea7ec83ad
Python 3: CsError.__str__
...
Choose `CsError.__str__` implementation based on Python version.
2015-12-02 12:19:11 +07:00
Nguyen Anh Quynh
7fc95e82bb
python: perform the last dylib loader only if it fails before that (for El Capitan)
2015-10-19 20:03:45 +08:00
Tim Strazzere
73c255a0cf
Add OSX 10.11 dylib load fix
...
El Capitan does not guaranteed that
(DY)LD_LIBRARY_PATH will exist, so force
one last check for the default install
directory that the install script uses.
2015-10-17 11:08:58 +08:00
Nicolas PLANEL
051140f3ba
[binding][python] print the string value of CsError
...
Print the string error of CsError.
2015-10-08 16:48:26 +11:00
Nicolas PLANEL
3593749e29
[python] test_m68k sync with C implementation
...
Sync the sample test to have the same output than the C implementation.
2015-10-06 16:08:33 +11:00
Nicolas PLANEL
b2e3ff296f
[binding][python] fixup M68KOpMem structure
...
Fixup the structure, to be in sync with the C implementation.
2015-10-06 16:05:09 +11:00
Nicolas PLANEL
0db56e33da
[binding][python] fixup python 3 compatibility
...
In Python 3.x dict.keys() return a dict_keys object not a list.
2015-10-03 21:11:17 +10:00
Daniel Collin
2ee675c10a
This adds M68K support to Capstone
2015-10-02 20:47:00 +02:00
Nguyen Anh Quynh
4d7d5c13a1
python: support newly added MASM syntax
2015-08-09 10:52:43 -07:00
learn_more
07a7f6c8aa
Add missing const for arm64
...
update suite/test_group_name
2015-08-02 14:21:55 +02:00
Nguyen Anh Quynh
cc7434c57e
python: do not copy msvc/headers directory in setup.py
2015-07-15 17:38:12 +08:00
Alex Chernetz
38094b1098
[Python binding] Fix setup.py to allow installing in a virtualenv
...
In a virtualenv:
- site.getusersitepackages() won't import
- get_python_lib() will return the directory inside the virtualenv
- the "--user" option can therefore be safely ignored.
2015-06-19 23:18:52 -07:00
w4kfu
3dcb8fbc49
remove the redundant detail copy
2015-06-18 11:44:12 +02:00
w4kfu
7a4e5f7305
remove duplicate detail info, modify all access to _detail to _raw.detail.contents
2015-06-18 11:07:05 +02:00
w4kfu
5ffd2f0761
fix issue #398 (Python binding no deep copy of detail pointer)
2015-06-17 17:25:56 +02:00
Nguyen Anh Quynh
2737135350
python: rename test to test_basic in test_all.py
2015-06-08 17:21:27 +08:00
neuromancer
a210229a0f
Allow local installations of the python bindings
...
These changes will allow a pypi user to locally install capstone using the --user flag. If it possible, please update the correspondent package (https://pypi.python.org/pypi/capstone/3.0.3 )
2015-06-04 21:46:09 +08:00
Nguyen Anh Quynh
3808eec033
python: shared library can be unloaded from under our feet. issue reported by @joelpx
2015-06-04 11:37:45 +08:00
Nguyen Anh Quynh
1319f0c6d7
python: rename test.py to test_basic.py
2015-06-03 22:14:59 +08:00
Nguyen Anh Quynh
147729e8d7
python: change PpcOpValue.imm type to c_int64 after the recent change in the core
2015-05-16 09:29:02 +08:00
Nguyen Anh Quynh
38d3f661aa
python: update README.pypi-src
2015-05-15 17:02:47 +08:00
Nguyen Anh Quynh
87ba408aff
python: update PyPi packages installation doc
2015-05-15 16:59:09 +08:00
Zach Riggle
73537ceeaf
Add reverse lookup for top-level Capstone constants
2015-05-13 11:54:22 +08:00