aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfatalc <cnfatal@gmail.com>2022-04-25 12:06:10 +0800
committerAntonio Borneo <borneo.antonio@gmail.com>2022-04-30 17:53:30 +0000
commit12d1ad0c75298d56827debcacc83c679bfbe9ac2 (patch)
tree445652506763b541ee16bbadc934a874ea594de5
parent8789513fa94ff54f08eaffedce0cc6c38f44311d (diff)
downloadriscv-openocd-12d1ad0c75298d56827debcacc83c679bfbe9ac2.zip
riscv-openocd-12d1ad0c75298d56827debcacc83c679bfbe9ac2.tar.gz
riscv-openocd-12d1ad0c75298d56827debcacc83c679bfbe9ac2.tar.bz2
target/disassembler: update capstone include path to <capstone.h>
on macos (homebrew base) `pkg-config --cflags capstone` output with `-I/opt/homebrew/Cellar/capstone/4.0.2/include/capstone` gcc not find headers on parent "include" path, causes build error `fatal error: 'capstone/capstone.h' file not found` it's ok to change to <capstone.h> for all platforms. Signed-off-by: fatalc <cnfatal@gmail.com> Change-Id: Ia2e2058024d4fc1a57a8b4ea847c664d74f67efb Reviewed-on: https://review.openocd.org/c/openocd/+/6946 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r--src/target/a64_disassembler.c2
-rw-r--r--src/target/arm_disassembler.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/target/a64_disassembler.c b/src/target/a64_disassembler.c
index bd78129..58ddf60 100644
--- a/src/target/a64_disassembler.c
+++ b/src/target/a64_disassembler.c
@@ -26,7 +26,7 @@
#if HAVE_CAPSTONE
-#include <capstone/capstone.h>
+#include <capstone.h>
static void print_opcode(struct command_invocation *cmd, const cs_insn *insn)
{
diff --git a/src/target/arm_disassembler.c b/src/target/arm_disassembler.c
index 6618593..d3d27a9 100644
--- a/src/target/arm_disassembler.c
+++ b/src/target/arm_disassembler.c
@@ -27,7 +27,7 @@
#include <helper/log.h>
#if HAVE_CAPSTONE
-#include <capstone/capstone.h>
+#include <capstone.h>
#endif
/*