Commit Graph

155 Commits

Author SHA1 Message Date
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 44b0589fa2
Create CPack for RPM and DEB packaging (#2596) 2025-01-15 16:07:41 +00: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
Duncan Ogilvie 041ec636dc
Add back support for relocatable packages (#2447) 2024-08-19 10:51:26 +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
PerikiyoXD 911b15c0e7
Update CMakeLists.txt version (See #2310) (#2311)
Update CMakeLists.txt version to 5.0.1
Fix #2310
2024-04-22 11:58:43 +08:00
billow 6c3a899646
Add operands access support for TriCore 2023-05-30 12:27:38 +08:00
Rot127 b0e7417207
Pull auto-sync's changes from 2ab11ad9bd 2023-05-30 11:08:18 +08:00
billow 20bdadb22f Fix ctest build 2023-05-14 06:34:30 +08:00
billow cfea9303da
fix 2023-04-14 00:34:57 +08:00
billow d5227582c5
add `tricore` to `cstest` 2023-04-14 00:34:56 +08:00
billow c6138aca25
Fix build and test 2023-04-14 00:34:28 +08:00
billow 6b4d73191d
Fix rebase error 2023-04-14 00:34:27 +08:00
Sidney Pontes Filho 6374a774d4
Modify Makefiles for TriCore architecture 2023-04-14 00:34:08 +08:00
Rot127 c91e016fdb
Move "add_compile_options" behind project() command. 2023-04-06 03:58:09 -05:00
Wu ChenXu 0a03edb202
Merge branch 'next' into sh-build-warnings 2023-03-08 23:23:31 +08:00
kabeor e294aea403 fix ci lib path 2023-03-07 12:38:41 +08:00
Rot127 2e15189632
[SH] Fix several unused variable warnings. 2023-03-06 21:35:22 -05:00
Alexey Vishnyakov d0f06744b3 sh: add missing include for CMake install step 2023-03-06 16:48:42 +03:00
Rot127 3b0934fb09
Add MSVC options. 2023-02-24 14:19:53 -05:00
Rot127 e2e2834993
[SH] Fix parantheses and int-in-bool-context build warnings. 2023-02-24 13:53:26 -05:00
Yoshinori Sato 39f10cc243 Merge remote-tracking branch 'origin/next' into superh 2022-10-13 12:30:15 +09:00
Yoshinori Sato fb25d7fcbf sh: testcase
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
2022-10-12 20:11:19 +09:00
Yoshinori Sato c68acf3540 SH: Add superh support for common part.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
2022-10-12 20:11:05 +09:00
lazymio ba21990427
Enforce C99 explicitly 2022-10-12 11:51:15 +02:00
MACHIZAUD Andréa ed45255bca
Merge branch 'next' into fix-install-pkgconfig 2022-04-15 11:17:20 +02:00
MACHIZAUD Andréa 691b80afb4 Fix pkgconfig not installed when CAPSTONE_BUILD_CSTOOL is false 2022-04-13 11:39:30 +02:00
MACHIZAUD Andréa 54726a1d90 Add `cstool` to the `capstone-targets` 2022-04-03 11:33:47 +02:00
Duncan Ogilvie c8172e4c10 Modernize CMake and switch to CMake 3.15 2022-02-25 20:39:30 +01:00
kabeor a74386e7ce add cmake uninstall option 2022-01-27 14:22:43 +08:00
Nguyen Anh Quynh c7c665f8f3 CMake: retain VERSION_xxx macros 2022-01-13 00:17:31 +08:00
Rwitaban Goswami 487cde56f2
Update CMakeLists.txt to bump CMake version to 2.8.12 (#1817)
* Update CMakeLists.txt

* Fix depcrecated warning on CMP0048

* Fix CMP0048 policy
2022-01-13 00:13:57 +08:00
Keegan Saunders aff05e613a
Option to generate install target (#1700)
Co-authored-by: meme <meme@users.noreply.github.com>
2020-10-28 23:34:48 +08:00
Matthias C. M. Troffaes 852c075723
Add cmake config and export targets. (#1637)
These additions simplify using capstone in cmake projects:

find_package(capstone CONFIG REQUIRED)
add_executable(main main.cpp)
target_link_libraries(main PRIVATE capstone::capstone-static)
2020-06-02 20:58:33 +08:00
Schrijvers Luc 7a2357ec3b Use GNUInstallDirs for the headers too (#1570) 2019-12-16 00:37:22 +08:00
Travis Finkenauer 0574f899e5 [RISCV] Use CS_ASSERT (#1493)
* makefile: set CAPSTONE_DEBUG for debug build

Also fix long longs

* riscv: replace assert with CS_ASSERT

* cmake: add CAPSTONE_DEBUG option
2019-05-23 08:25:36 +07:00
Nguyen Anh Quynh 0c31f14db1 ppc: print condition register bits. issue #1469 2019-05-08 13:56:40 +08:00
Nguyen Anh Quynh dbefe3a6d5 ppc: add some new .inc files 2019-04-30 13:52:23 +08:00
Nguyen Anh Quynh 11206deb78 ppc: sync with llvm 7.0.1 2019-04-30 13:50:42 +08:00
JornVernee f4fd2d925c Add cmake option to tell whether architectures should be included by default (#1463) (#1466) 2019-04-29 19:20:01 +07:00
Nguyen Anh Quynh ec672f9388 fuzz: update CMakeLists.txt after the last refactor 2019-04-13 15:27:54 +08:00
Nguyen Anh Quynh 25b6704978 merge next-arm64 to next 2019-04-10 17:46:07 +08:00
Nguyen Anh Quynh 9d292268a9 arm64: sync with LLVM 7.0.1 2019-04-10 14:17:08 +08:00
z f1e49f6ce6 add riscv cmake support & using static array contain temp string for riscv (#1435)
* add TableGen patch whcih fix riscv asmwrter.inc memory leak

* add riscv for cmake suporrt and change asmwriter using static array container

* add missing .inc files for riscv cmake support
2019-03-20 23:19:26 +08:00
Nguyen Anh Quynh 831ea98bdd arm: remove ARMRegisterName.inc from CMakeLists.txt 2019-03-16 18:12:54 +08:00
Nguyen Anh Quynh 124f91b303 arm: sync with llvm 7.0.1 2019-03-16 15:22:15 +08:00
z a012f75754 RISCV support ISRV32/ISRV64 (#1401)
* Added RISCV dir to contain the RISCV architecture engine code. Adding the TableGen files generated from llvm-tblgen. Add Disassembler.h

* Started working on RISCVDisassembler.c - RISCV_init(), RISCVDisassembler_getInstruction, and RISCV_getInstruction

* Added all functions to RISCVDisassembler.c and needed modifications to RISCVGenDisassemblerTables.inc. Add and modified RISCVGenSubtargetInfo.inc. Start creation of RISCVInstPrinter.h

* Finished RISCVGenAsmWriter.inc. Finished RISCVGenRegisterInfo.inc. Minor fixes to RISCVDisassembler.c. Working on RISCVInstPrinter

* Finished RISCVInstPrinter, RISCVMapping, RISCVBaseInfo, RISCVGenInstrInfo.inc, RISCVModule.c. Working on riscv.h

* Backport it from: 0db412ce3b

* All RISCV files added. Compiled correctly and initial test for ADD, ADDI, AND works properly.

* Add refactored cs.c for RISCV

* Testing all I instructions in test_riscv.c

* Modify the orignal backport for RISCVGenRegisterInfo.inc, capstone.h and test_iter to work w/ the current code strcuture

* Fix issue with RISCVGenRegisterInfo.inc - RISCVRegDesc[] (Excess elements in struct initializer). Added RISCV tests to test_iter.c

* fixed bug related to incorrect initialization of memory after malloc

* fix compile bug

* Fix compile errors.

* move riscv.h to include/capstone

* fix indentation issues

* fix coding style issues

* Fix indentation issues

* fix coding style

* Move variable declaration to the top of the block

* Fix coding indentation

* Move some stuff into RISCVMappingInsn.inc

* Fix code sytle

* remove cs_mode support for RISCV

* update asmwriter-inc to LLVM upstream

* update the .inc files to riscv upstream

* update riscv disassembler function for suport 16bit instructions

* update printer & tablegen inc files which have fixed arguments mismatch

* update headers and mapping source

* add riscv architecture specific test code

* fix all RISCV tons of compiler errors

* pass final tests

* add riscv tablegen patchs

* merge with upstream/next

* fix cstool missing riscv file

* fix root Makefile

* add new TableGen patchs for riscv

* fix cmakefile.txt of missing one riscv file

* fix declaration conflict

* fix incompatible declaration type

* change riscvc from arch to mode

* fix test_riscv warnning

* fix code style and add riscv part of test_basic

* add RISCV64 mode

* add suite for riscv

* crack fuzz test

* fix getfeaturebits test add riscvc

* fix test missing const qualifier warnning

* fix testcase type mismatch

* fix return value missing

* change getfeaturebits test

* add test cs files

* using a winder type contain the decode string

* fix a copy typo

* remove useless mode for riscv

* change cs file blank type

* add repo for update_riscv & fix cstool missing riscv mode

* fix typo

* add riscv for cstool useage

* add TableGen patch for riscv asmwriter

* clean ctags file

* remove black comment line

* fix fuzz related something

* fix missing RISCV string of fuzz

* update readme, etc..

* add riscv *.s.cs file

* add riscv *.s.cs file & clear ctags

* clear useless array declarations at capstone_test

* update to 5e4069f

* update readme change name more formal

* change position of riscv after bpf and modify copyright more uniform

* clear useless ctags file

* change blank with tab in riscv.h

* add riscv python bindings

* add riscv in __init__.py

* fix riscv define value for python binding

* fix test_riscv.py typo

* add missing riscvc in __init__.py of python bindings

* fix alias-insn printer bug, remove useless newline

* change inst print delimter from tab to bankspace for travis

* add riscv tablegen patch

* fix inst output more consistency

* add TableGen patch which fix inst output formal

* crack the effective address output for detail and change register print function

* fix not detail crash bug

* change item declaration position at cs_riscv

* update riscv.py

* change function name more meaningfull

* update python binding makefile

* fix register enum sequence according to riscvgenreginfo.inc

* test function name

* add enum s0/fp in riscv.h & update riscv_const.py

* add register name enum
2019-03-09 08:41:12 +08:00