plugin: add qemu_plugin_insn_disas helper
commitcbafa2362ab8d96af39d6b01a79ea4ed16d47dda
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 22 May 2019 09:27:14 +0000 (22 10:27 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 28 Oct 2019 15:12:38 +0000 (28 15:12 +0000)
tree57c3f69e05f35e4fd9c0f5aa11a5ad7a3685de1d
parent5901b2e15b673720b050fc88e7912e33f0e53604
plugin: add qemu_plugin_insn_disas helper

Give the plugins access to the QEMU dissasembler so they don't have to
re-invent the wheel. We generate a warning when there are spare bytes
in the decode buffer. This is usually due to the front end loading in
more bytes than decoded.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
disas.c
include/disas/disas.h
include/qemu/qemu-plugin.h
plugins/api.c
plugins/qemu-plugins.symbols