aboutsummaryrefslogtreecommitdiff
path: root/sim/arm
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-09-21 09:02:25 +0100
committerYao Qi <yao.qi@linaro.org>2017-09-21 09:02:25 +0100
commit88240b186d224d634633d9996832f1235364b6d4 (patch)
treee070bfa5fcaa2a1f25dc9599d9511cc5cec50c31 /sim/arm
parentd1b0a7bfd3df05fd2009b62b19b7535bbc6555c0 (diff)
downloadgdb-88240b186d224d634633d9996832f1235364b6d4.zip
gdb-88240b186d224d634633d9996832f1235364b6d4.tar.gz
gdb-88240b186d224d634633d9996832f1235364b6d4.tar.bz2
[SIM, ARM] Fix build failure
This patch fixes the build failure by using disassembler to get disassemble function pointer, and do the disassembly, because print_insn_little_arm is no longer visible outside opcodes/ binutils-gdb/sim/arm/wrapper.c:98:10: error: implicit declaration of function 'print_insn_little_arm' [-Werror=implicit-function-declaration] size = print_insn_little_arm (0, & info); ^ sim/arm: 2017-09-21 Yao Qi <yao.qi@linaro.org> * wrapper.c (print_insn): Use disassembler instead of print_insn_little_arm.
Diffstat (limited to 'sim/arm')
-rw-r--r--sim/arm/ChangeLog5
-rw-r--r--sim/arm/wrapper.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
index 55c592e..db530b7 100644
--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -1,3 +1,8 @@
+2017-09-21 Yao Qi <yao.qi@linaro.org>
+
+ * wrapper.c (print_insn): Use disassembler instead of
+ print_insn_little_arm.
+
2017-09-06 John Baldwin <jhb@FreeBSD.org>
* configure: Regenerate.
diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c
index 01f88d1..d234178 100644
--- a/sim/arm/wrapper.c
+++ b/sim/arm/wrapper.c
@@ -92,10 +92,12 @@ void
print_insn (ARMword instr)
{
int size;
+ disassembler_ftype disassemble_fn;
opbuf[0] = 0;
info.application_data = & instr;
- size = print_insn_little_arm (0, & info);
+ disassemble_fn = disassembler (bfd_arch_arm, 0, 0, NULL);
+ size = disassemble_fn (0, & info);
fprintf (stderr, " %*s\n", size, opbuf);
}