plugins/api: expose symbol lookup to plugins
commit7c4ab60f18f5257d37164df0ae0951ece4425b02
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 23 Jun 2021 10:27:48 +0000 (23 11:27 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 25 Jun 2021 09:08:37 +0000 (25 10:08 +0100)
tree46ce2c450d490590c506c5422700f3b24f391756
parentf101c9fe29cfb009a7e20b68142a575b3384a4d0
plugins/api: expose symbol lookup to plugins

This is a quality of life helper for plugins so they don't need to
re-implement symbol lookup when dumping an address. The strings are
constant so don't need to be duplicated. One minor tweak is to return
NULL instead of a zero length string to show lookup failed.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
Message-Id: <20210608040532.56449-2-ma.mandourr@gmail.com>
Message-Id: <20210623102749.25686-8-alex.bennee@linaro.org>
include/qemu/qemu-plugin.h
plugins/api.c