From ad449b59cb87eb3f78c13786adb85d1fe65817ea Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Fri, 24 Oct 2014 00:36:48 +0800 Subject: [PATCH] suite: compile test_arm_regression.c with proper include & change cs_disasm_ex() to cs_disasm() --- suite/arm/Makefile | 2 +- suite/arm/test_arm_regression.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/suite/arm/Makefile b/suite/arm/Makefile index ab19cc781..aaf4d05d7 100644 --- a/suite/arm/Makefile +++ b/suite/arm/Makefile @@ -6,7 +6,7 @@ test_arm_regression: test_arm_regression.o ${CC} $< -O3 -Wall -l$(LIBNAME) -o $@ %.o: %.c - ${CC} -c $< -o $@ + ${CC} -c -I../../include $< -o $@ clean: rm -rf *.o test_arm_regression diff --git a/suite/arm/test_arm_regression.c b/suite/arm/test_arm_regression.c index 3e093bb3a..adab5bb9f 100644 --- a/suite/arm/test_arm_regression.c +++ b/suite/arm/test_arm_regression.c @@ -206,7 +206,7 @@ static void test_invalids() free(hex_str); - count = cs_disasm_ex(handle, + count = cs_disasm(handle, invalid_code->code, invalid_code->size, address, 0, &insn ); @@ -335,7 +335,7 @@ static void test_valids() valid->platform_comment, hex_str, valid_code->start_addr, valid_code->comment, valid_code->expected_out); - count = cs_disasm_ex(handle, + count = cs_disasm(handle, valid_code->code, valid_code->size, valid_code->start_addr, 0, &insn );