disas: use result of ->read_memory_func
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 29 Sep 2022 11:42:14 +0000 (12:42 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 6 Oct 2022 10:53:40 +0000 (11:53 +0100)
commit90bbf9d9dbbbc3956fd0e9a641e724d210190757
tree491f91773048ac56ba4304918869f16c4336852a
parent4332099f0e69b938fa968a98e130845010ec6fe2
disas: use result of ->read_memory_func

This gets especially confusing if you start plugging in host addresses
from a trace and you wonder why the output keeps changing. Report when
read_memory_func fails instead of blindly disassembling the buffer
contents.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220929114231.583801-35-alex.bennee@linaro.org>
disas.c
disas/capstone.c