Capstone disassembly/disassembler framework: Core (Arm, Arm64, BPF, EVM, M68K, M680X, MOS65xx, Mips, PPC, RISCV, Sparc, SystemZ, TMS320C64x, Web Assembly, X86, X86_64, XCore) + bindings. (bloaty 依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Nguyen Anh Quynh 18336b7039 bindings: update Java, Ocaml & Python bindings after the last Mips update 10 years ago
..
capstone bindings: update Java, Ocaml & Python bindings after the last Mips update 10 years ago
.gitignore
Makefile
README
Test.java java: add close() method to avoid some unknown crash caused by finallize() on Ubuntu 14.04. FIXME 10 years ago
TestArm.java java & ocaml: update these bindings following the addition of lshift field to arm_op_mem of Arm engine 10 years ago
TestArm64.java java: add close() method to avoid some unknown crash caused by finallize() on Ubuntu 14.04. FIXME 10 years ago
TestMips.java java: add close() method to avoid some unknown crash caused by finallize() on Ubuntu 14.04. FIXME 10 years ago
TestPpc.java java: add close() method to avoid some unknown crash caused by finallize() on Ubuntu 14.04. FIXME 10 years ago
TestSparc.java java: add close() method to avoid some unknown crash caused by finallize() on Ubuntu 14.04. FIXME 10 years ago
TestSystemz.java java: add close() method to avoid some unknown crash caused by finallize() on Ubuntu 14.04. FIXME 10 years ago
TestX86.java java: add close() method to avoid some unknown crash caused by finallize() on Ubuntu 14.04. FIXME 10 years ago
TestXcore.java java: add close() method to avoid some unknown crash caused by finallize() on Ubuntu 14.04. FIXME 10 years ago
run.sh

README

This has been tested with OpenJDK version 6 & 7 on Ubuntu-12.04 and
Arch Linux-3.11, 64-bit.

- OpenJDK is required to compile and run this test code.
For example, install OpenJDK 6 with:

$ sudo apt-get install openjdk-6-jre-headless openjdk-6-jdk libjna-java

- To compile and run this Java test code:

$ make
$ ./run.sh


This directory contains some test code to show how to use Capstone API.

- Test.java
This code shows the most simple form of API where we only want to get basic
information out of disassembled instruction, such as address, mnemonic and
operand string.

- Test_<arch>.java
These code show how to retrieve architecture-specific information for each
architecture.