Commit graph

738 commits

Author SHA1 Message Date
@Antelox
0bd647456e
Python binding: (#2873)
- Remove xprint dependency from tests
2026-03-02 19:11:55 +00:00
Rot127
52c66920fc
Increase version number and update changelog. (#2854) 2026-02-09 22:30:40 +00:00
Wu ChenXu
accf4df62f
version: update v5 to 5.0.6 (#2655) 2025-03-23 23:48:02 +08:00
Rot127
eb3336373b
V5 - Fix sdist build and add CI job for testing it. (#2623)
* Fix sdist build and add CI job for testing it.

* Temporarily set QEMU version to v8.1.5.
2025-02-07 23:34:56 +08:00
Wu ChenXu
55261253c3
Update version to v5.0.5 (#2606)
* chore(build): fix cmakelist issue when solving conflict

* chore(version): update to v5.0.5

* chore(workflows): update upload-artifact version to v4
2025-01-17 10:24:00 +08:00
Wu ChenXu
00cd20ac7c
Update version to v5.0.4 (#2604)
* chore(bindings): fix const generator syntax error

* chore(version): update version to v5.0.4
2025-01-16 12:18:40 +08:00
Andrew
ea42c2803a
Creating a functional Debian Package for Capstone v5 (#2569) 2024-12-17 13:07:13 +08:00
Wu ChenXu
5cca00533d
Update to v5.0.3 (#2451)
* Prepare for release v5.0.2

* Update ChangeLog for v5.0.2

* Update Python package build action

* [CI] Downgrade upload-artifact tp v3

* update changelog

* [CI] downguard actions/download-artifact to v3

* Update version to v5.0.3

* update python bindings version
2024-08-20 22:41:54 +08:00
Rot127
828268c275
[v5] Wheel build fixes: manylinux1, trigger upload on release, Linux AArch64 (#2443)
* Enable verbose twine upload.

* Add step to show downloaded artifacts for debugging.

* Sync with next

* Sync with next.
2024-08-19 16:32:28 +08:00
Rot127
47f93e90b8
[v5] Updates and fixes to the Python wheel builder workflow (#2440) 2024-08-15 20:58:32 +08:00
Wu ChenXu
c34fc89a45
Prepare for release v5.0.2 (#2425) 2024-08-08 11:55:54 +08:00
david942j
fe7cae3eb7
v5: Fix typo in AArch64 Python binding (#2412) 2024-08-01 11:58:23 +08:00
Kevin Phoenix
1bd2a32f2a
Remove deprecated packaging and cython (#2400)
* Remove deprecated packaging and cython

* Fix some issues after cherry-picking

* Fix CI issues

* Remove test files added for v6

* Also remove test_alpha.py
2024-07-24 14:18:26 +08:00
Rot127
2971910d6e
Revert constant of CS_OP_MEM to v5 value. (#2275) 2024-02-18 13:03:49 +08:00
Sören Tempel
f180e176de
Revert "Update constants from ARM auto-sync patch" (#2240) 2024-01-18 09:43:31 +08:00
Wu ChenXu
16e2b9f942
Prepare for release v5.0.1 (#2143)
* Add Python bindings for WASM

* Update Python bindings for m68k

* Update Python bindings for mos65xx

* Update Python bindings for x86

* Add Python bindings for SH

* Update CS_* constants in Python bindings

* Update constants from ARM auto-sync patch

* Fixing TriCore disasm instructions (#2088)

* allow absolute CMAKE_INSTALL_*DIR (#2134)

This patch fixes Capstone 5 build on NixOS.

NixOS's build infrastructure sets CMAKE_INSTALL_{LIB,INCLUDE}DIR to
absolute paths. If you append it to ${prefix}, you get the wrong path.
NixOS automatically detects it and links this issue:
https://github.com/NixOS/nixpkgs/issues/144170

* Disable swift binding const generate

* update bindings const

* update capstone version

* update ChangeLog

---------

Co-authored-by: Peace-Maker <peace-maker@wcfan.de>
Co-authored-by: Bastian Koppelmann <bkoppelmann@users.noreply.github.com>
Co-authored-by: chayleaf <chayleaf@protonmail.com>
2023-08-21 18:05:18 +08:00
Wu ChenXu
53eaeac809
Cherry-pick from next for v5.0.1 (#2141)
* Add Python bindings for WASM

* Update Python bindings for m68k

* Update Python bindings for mos65xx

* Update Python bindings for x86

* Add Python bindings for SH

* Update CS_* constants in Python bindings

* Update constants from ARM auto-sync patch

* Fixing TriCore disasm instructions (#2088)

* allow absolute CMAKE_INSTALL_*DIR (#2134)

This patch fixes Capstone 5 build on NixOS.

NixOS's build infrastructure sets CMAKE_INSTALL_{LIB,INCLUDE}DIR to
absolute paths. If you append it to ${prefix}, you get the wrong path.
NixOS automatically detects it and links this issue:
https://github.com/NixOS/nixpkgs/issues/144170

---------

Co-authored-by: Peace-Maker <peace-maker@wcfan.de>
Co-authored-by: Bastian Koppelmann <bkoppelmann@users.noreply.github.com>
Co-authored-by: chayleaf <chayleaf@protonmail.com>
2023-08-21 13:34:18 +08:00
Peace-Maker
c9964b0520 Update Cython bindings 2023-06-28 19:02:11 +02:00
Peace-Maker
38e03cd324 Add CS_GRP_BRANCH_RELATIVE to python bindings 2023-06-28 18:35:19 +02:00
Peace-Maker
19a6093a97 Search for correct versioned lib .5 suffix
Always use the major version instead of requiring manual updates to the
file names.
2023-06-28 18:34:14 +02:00
Peace-Maker
47f3692d4f Normalize rc4 version string
/usr/local/lib/python2.7/dist-packages/setuptools/dist.py:476: UserWarning: Normalizing '5.0.0.rc4' to '5.0.0rc4'
  normalized_version,
2023-06-28 18:31:41 +02:00
billow
14ea1ae1d8 Update all *_const.py 2023-06-23 23:46:47 +08:00
billow
49adaac599 Fix const_generator.py and tricore_const.py 2023-06-23 20:47:11 +08:00
Nguyen Anh Quynh
f66d2cb987 bindings: update binding consts 2023-06-18 20:49:05 +08:00
kabeor
8784a6ea0a [bindings] Adapt python2 for setup.py 2023-06-18 19:38:22 +08:00
kabeor
5eb935d64e [bindings] fix twine issue when publish 2023-06-18 18:48:07 +08:00
kabeor
ef44d9e4a6 [bindings] fix twine issue when publish 2023-06-18 18:44:46 +08:00
Wu ChenXu
e9fd6f4800
Merge pull request #2007 from peace-maker/riscv_insn_groups
RISCV: Add call, int and branch_relative instruction groups
2023-06-10 20:08:47 +08:00
Peace-Maker
1da1cbf72d Fix RISCV Python bindings
The structs had changed and the `need_effective_addr` element wasn't exposed.
2023-06-05 15:09:45 +02:00
Peace-Maker
dc7d2be7c3 Fix TriCore Python bindings
The structs were out of sync and were missing a few elements.

The `update_flags` element wasn't exposed at all.
2023-06-05 15:08:32 +02:00
Peace-Maker
d17307e74d Fix Python Bindings after changes to cs_detail
#2034 changed the `regs_read` array size and added a new `writeback`
element to the cs_detail struct.

Those changes weren't reflected in the Python bindings causing details
to be missing.
2023-06-05 15:06:12 +02:00
Peace-Maker
654512f029 Merge branch 'next' into riscv_insn_groups 2023-05-30 16:23:34 +02:00
Peace-Maker
0b1e82ac88 RISCV: add more instruction groups
Add call, ret, int and branch_relative instruction groups to riscv
mappings.
2023-05-01 22:55:26 +02:00
billow
588a3e12da
Upper tricore_const.py 2023-05-01 22:58:19 +08:00
billow
9e15c96497
Fix tricore python binding
- fix HACK.TXT
2023-04-24 22:18:07 +08:00
billow
4033ff0b8c
fix test_corpus.py 2023-04-14 00:36:13 +08:00
billow
98c1a24aad
feat: Refactor and improve triCore platform support 2023-04-14 00:35:47 +08:00
billow
8fc6eccd82
- add tricore to python binding
- try fix `test_corpus.py`
2023-04-14 00:34:59 +08:00
kabeor
824dc5e8fd fix python binding 2023-03-07 13:17:45 +08:00
kabeor
93b13a20f8 fix python binding build 2023-03-07 12:03:47 +08:00
Josh Bundt (tr0gd0r)
3483993a19
Update __init__.py
Fix missing return value `post_index` - same as #1944
2023-03-04 18:13:37 -05:00
HyperSine
409c86e8a0
arm64: fix missing post_index
Signed-off-by: HyperSine <hypersine.git@outlook.com>
2022-12-19 12:58:09 +08:00
ζeh Matt
784aa0fdc9
Add post_index to python bindings 2022-11-22 22:25:49 +02:00
Finn Wilkinson
bc583a7da3 Updated Arm64 python bindings after Armv9.2-a support. 2022-11-07 12:27:34 +00:00
John Ott
b62e69eb47 Remove outdated ctypes requirement
The library ctypes has shipped with the python standard library since
Python 2.5, however this was still added via the `requires` keyword in
setuptools.setup. This results in a spurious requirement being created
in the .whl METADATA file, causing warnings when packaged via tools like
pex:

```
$ python3 -m pex capstone -o capstone.pex
/Users/ott/.venv/lib/python3.9/site-packages/pex/dist_metadata.py:397: PEXWarning: Ignoring 1 `Requires` field in /Users/ott/.pex/installed_wheels/2a4c7a0d4c87aceed3134ae20997a764af1811fee8e151cf5da90e0462822893/capstone-4.0.2-py3-none-macosx_12_arm64.whl metadata:
1.) Requires: ctypes

You may have issues using the 'capstone' distribution as a result.
More information on this workaround can be found here:
  https://github.com/pantsbuild/pex/issues/1201#issuecomment-791715585
```

Since this requirement is outdated, it can just be removed.
2022-08-24 11:29:48 -07:00
Richard Patel
01f36b92dc Add Python test for CS_MODE_PS 2022-07-23 10:49:13 +02:00
Richard Patel
60518cc67b Sync eBPF and PowerPC bindings 2022-07-23 10:46:03 +02:00
Richard Patel
ae3314b6ee Update bindings (PPC PS support) 2022-07-23 08:50:47 +02:00
Adam Seitz
3e23b60af0 Combine aarch64 sys operand enums 2022-03-18 14:15:46 -04:00
kabeor
aba8a06716 replace missing option CMAKE_BUILD_SHARED for python setup.py 2022-02-28 00:01:09 +08:00