Subject: CVS commit: pkgsrc/devel
From: Taylor R Campbell
Date: 2020-08-18 22:20:46
Message id: 20200818202047.10872FB28@cvs.NetBSD.org

Log Message:
devel/capstone: Update to 4.0.2

3.0.5
July 18, 2018

Release 3.0.5 is a stable release version, with important fixes in the core \ 
& several bindings against v3.0.5-rc3.
Library

    Fix the include path for Android builds when building cstool.
    Add posibility to disable universal build for Mac OS.
    cstool: Separate instruction bytes by spaces.
    Fix code path of pkg-config in Cmake.
    Update XCode project for XCode 9.1.
    Add Cortex-M support to cstool.
    Cmake forces to be build using MT with MSVC.
    Better support for Mac OS kernel.

X86

    Fix some issues in handling EVEX & VEX3 instructions.
    Fix immediate operand for AND instruction in ATT mode.
    Fix ATT syntax when imm operand is 0.
    Better handle XACQUIRE/XRELEASE.
    Fix imm operand of RETF.

Arm

    Fix an integer overlow bug.

Arm64

    Bug fix for incorrect operand type in certain load/store instructions.

Mips

    Mode CS_MODE_MIPS32R6 automatically sets CS_MODE_32

PowerPC

    Fix endian check.

Sparc

    Fix an integer overlow bug.

SystemZ

    Fix an integer overlow bug.

Python binding

    Raise error on accessing irrelevant data fields if skipdata & detail \ 
modes are enable.

4.0
December 18, 2018

Release 4.0 is a stable release version, with important fixes in the core & \ 
several bindings against v3.0.5.
Core

    New APIs: cs_regs_access()
    Add new options for cs_option(): CS_OPT_MNEMONIC & CS_OPT_UNSIGNED & \ 
CS_OPT_SYNTAX_MASM.
    Various updates & bugfixes for all architectures.
    Add 4 new architectures: EVM, M68K, M680X & TMS320C64x.
    Add new group types: CS_GRP_PRIVILEGE & CS_GRP_BRANCH_RELATIVE.
    Add new error types: CS_ERR_X86_MASM.

X86

    Add XOP code condition type in x86_xop_cc.
    Add some info on encoding to cs_x86 in cs_x86_encoding.
    Add register flags update in cs_x86.{eflags, fpu_flags}
    Change cs_x86.disp type from int32_t to int64_t.
    Add new groups: X86_GRP_VM & X86_GRP_FPU.
    Lots of new instructions (AVX)

Arm64

    Add instruction ARM64_INS_NEGS & ARM64_INS_NGCS.

Mips

    Add mode CS_MODE_MIPS2.

PowerPC

    Change cs_ppc_op.imm type from int32_t to int64_t.
    Add new groups: PPC_GRP_ICBT, PPC_GRP_P8ALTIVEC, PPC_GRP_P8VECTOR & \ 
PPC_GRP_QPX.
    Lots of new instructions (QPX among them)

Sparc

    Change cs_sparc_op.imm type from int32_t to int64_t.

Bindings

    New bindings: PowerShell & VB6

4.0.1
January 10, 2019

Release 4.0.1 is a stable release version, with minor bugfixes in the core & \ 
Python binding.
Core

    Fix some issues for packaging (Debian, Gentoo, etc).
    Better support for building with Mingw.
    cstool has new option -s to turn on skipdata mode.
    cstool -v now report build settings of the core.
    Add suite/capstone_get_setup.c so users can integrate with their own code to \ 
retrieve Capstone settings at build time.

Arm

    Fix 4.0 regression: the tbh [r0, r1, lsl #1] instruction sets the \ 
operand.shift.value back again.
    Remove ARM_REG_PC group for BX instruction.

X86

    endbr32 and endbr64 instructions are now properly decoded in both CS_MODE_32 \ 
and CS_MODE_64.

M680X

    Fix some issues reported by clang-analyzer.

Python binding

    Fix skipdata setup.
    Add getter/setter for skipdata_mnem & skipdata_callback.

4.0.2
May 8, 2020

Release 4.0.2 is a stable release version, with minor bugfixes in the core & \ 
some bindings.
Core

    Windows kernel-mode driver support
    Fix installation path on FreeBSD and DragonFly

Cstool

    Add armv8, ppc32 & thumbv8 modes
    Print instruction ID

X86

    Support CS_OPT_UNSIGNED for ATT syntax
    Fix operand size for some instructions
    Fix LOCK prefixes
    Recognize xacquire/xrelease prefix
    Fix call/jmp access mode of mem operand
    Add ENDBR32, ENDBR64 to reduce mode
    Other minor fixes

Arm

    Update writeback for STR_POST_REG

ARM64

    Support CS_OPT_UNSIGNED
    Fix register access flags for memory instructions
    Fix UMOV vess

M68K

    Store correct register value in op.reg_pair

PowerPC

    BDZLA is absolute branch

SystemZ

    Fix truncated 64bit imm operand
    Fix base/index printing

Python binding

    Fix skipdata struct being destroyed
    Add repr for capstone.CsInsn

Java binding

    Fix Java bindings to use pointers instead of longs

Ocaml binding

    Fix x86_op record

Files:
RevisionActionfile
1.5modifypkgsrc/devel/capstone/Makefile.common
1.3modifypkgsrc/devel/capstone/PLIST
1.13modifypkgsrc/devel/capstone/distinfo
1.2modifypkgsrc/devel/capstone/patches/patch-bindings_python_capstone_____init____.py
1.2modifypkgsrc/devel/capstone/patches/patch-bindings_python_setup.py
1.3modifypkgsrc/devel/capstone/patches/patch-cstool_Makefile
1.4modifypkgsrc/devel/py-capstone/PLIST