Merge branch 'master' into v3
This commit is contained in:
commit
60b6f9e0f0
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include "SStream.h"
|
||||
#include "cs_priv.h"
|
||||
#include "inttypes.h"
|
||||
#include "myinttypes.h"
|
||||
#include "utils.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#ifdef CAPSTONE_HAS_ARM64
|
||||
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
|
||||
#include "ARMAddressingModes.h"
|
||||
#include "ARMBaseInfo.h"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <stdio.h> // DEBUG
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
|
||||
#include "ARMInstPrinter.h"
|
||||
#include "ARMAddressingModes.h"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
|
||||
#include "../../utils.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#ifdef CAPSTONE_HAS_MIPS
|
||||
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h> // debug
|
||||
#include <string.h>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h> // debug
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
|
||||
/// printInstruction - This method is automatically generated by tablegen
|
||||
/// from the instruction set description.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h> // debug
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
|
||||
|
||||
/// printInstruction - This method is automatically generated by tablegen
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h> // debug
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
|
||||
|
||||
/// printInstruction - This method is automatically generated by tablegen
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
|
||||
#include "SystemZInstPrinter.h"
|
||||
#include "../../MCInst.h"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#if defined(CAPSTONE_HAS_X86) && !defined(CAPSTONE_DIET) && !defined(CAPSTONE_X86_ATT_DISABLE)
|
||||
|
||||
#include <ctype.h>
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#ifdef CAPSTONE_HAS_X86
|
||||
|
||||
#include "../../inttypes.h" // debug
|
||||
#include "../../myinttypes.h" // debug
|
||||
#include <string.h>
|
||||
|
||||
#include "../../cs_priv.h"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#ifdef CAPSTONE_HAS_X86
|
||||
|
||||
#include <ctype.h>
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h> // debug
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
|
||||
|
||||
/// printInstruction - This method is automatically generated by tablegen
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
|
||||
#include "XCoreInstPrinter.h"
|
||||
#include "../../MCInst.h"
|
||||
|
|
|
@ -13,13 +13,21 @@ install:
|
|||
rm -rf $(OBJDIR) src/
|
||||
rm -rf prebuilt/win64/capstone.dll
|
||||
rm -rf prebuilt/win32/capstone.dll
|
||||
python setup.py build -b $(OBJDIR) install
|
||||
if test -n "${DESTDIR}"; then \
|
||||
python setup.py build -b $(OBJDIR) install --root="${DESTDIR}"; \
|
||||
else \
|
||||
python setup.py build -b $(OBJDIR) install; \
|
||||
fi
|
||||
|
||||
install3:
|
||||
rm -rf $(OBJDIR) src/
|
||||
rm -rf prebuilt/win64/capstone.dll
|
||||
rm -rf prebuilt/win32/capstone.dll
|
||||
python3 setup.py build -b $(OBJDIR) install
|
||||
if test -n "${DESTDIR}"; then \
|
||||
python3 setup.py build -b $(OBJDIR) install --root="${DESTDIR}"; \
|
||||
else \
|
||||
python3 setup.py build -b $(OBJDIR) install; \
|
||||
fi
|
||||
|
||||
# NOTE: Newer cython can be installed by: sudo pip install --upgrade cython
|
||||
install_cython:
|
||||
|
|
|
@ -183,7 +183,7 @@ typedef struct x86_op_mem {
|
|||
typedef struct cs_x86_op {
|
||||
x86_op_type type; // operand type
|
||||
union {
|
||||
unsigned int reg; // register value for REG operand
|
||||
x86_reg reg; // register value for REG operand
|
||||
int64_t imm; // immediate value for IMM operand
|
||||
double fp; // floating point value for FP operand
|
||||
x86_op_mem mem; // base/index/scale/disp value for MEM operand
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "../../inttypes.h"
|
||||
#include "../../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// This sample code demonstrates the APIs cs_malloc() & cs_disasm_iter().
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "../inttypes.h"
|
||||
#include "../myinttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue