s12z/disassembler: call memory_error_func when appropriate
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 7 Oct 2021 16:48:28 +0000 (17:48 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 11 Oct 2021 13:07:03 +0000 (14:07 +0100)
commitba7c18a48457d949df1f817c46482c5a09ac627d
treed2f450f6f5f9eded15a3206138e945cd821cc1c3
parentc2c8a427888192f3f438cd3b23cfb372df846270
s12z/disassembler: call memory_error_func when appropriate

If a call to the read_memory_func fails then we should call the
memory_error_func to notify the user of the disassembler of the
address that was a problem.

Without this GDB will report all memory errors as being at address
0x0.

opcodes/ChangeLog:

* s12z-disc.c (abstract_read_memory): Call memory_error_func if
the read_memory_func call fails.
opcodes/s12z-dis.c