cstool: fix compilation bug

This commit is contained in:
Nguyen Anh Quynh 2016-10-21 17:03:27 +08:00
parent 32238dc8c5
commit 2897a80caf
8 changed files with 10 additions and 9 deletions

View File

@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <capstone.h>
#include <capstone/capstone.h>
void print_string_hex(char *comment, unsigned char *str, size_t len);

View File

@ -4,7 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <capstone.h>
#include <capstone/capstone.h>
void print_string_hex(char *comment, unsigned char *str, size_t len);

View File

@ -4,7 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <capstone.h>
#include <capstone/capstone.h>
void print_string_hex(char *comment, unsigned char *str, size_t len);

View File

@ -1,9 +1,10 @@
/* Capstone Disassembler Engine */
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> */
#include <inttypes.h>
#include <stdio.h>
#include <capstone.h>
#include <capstone/capstone.h>
void print_string_hex(char *comment, unsigned char *str, size_t len);
@ -58,7 +59,7 @@ void print_insn_detail_ppc(csh handle, cs_insn *ins)
printf("\t\toperands[%u].type: REG = %s\n", i, cs_reg_name(handle, op->reg));
break;
case PPC_OP_IMM:
printf("\t\toperands[%u].type: IMM = 0x%x\n", i, op->imm);
printf("\t\toperands[%u].type: IMM = 0x%"PRIx64"\n", i, op->imm);
break;
case PPC_OP_MEM:
printf("\t\toperands[%u].type: MEM\n", i);

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <capstone.h>
#include <capstone/capstone.h>
void print_string_hex(char *comment, unsigned char *str, size_t len);

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <capstone.h>
#include <capstone/capstone.h>
void print_string_hex(char *comment, unsigned char *str, size_t len);

View File

@ -4,7 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <capstone.h>
#include <capstone/capstone.h>
void print_string_hex(char *comment, unsigned char *str, size_t len);

View File

@ -2,7 +2,7 @@
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
#include <stdio.h>
#include <capstone.h>
#include <capstone/capstone.h>
void print_string_hex(char *comment, unsigned char *str, size_t len);