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.
int status = (*mra->info->read_memory_func) (mra->memaddr + offset,
bytes, n, mra->info);
+ if (status != 0)
+ (*mra->info->memory_error_func) (status, mra->memaddr + offset,
+ mra->info);
return status != 0 ? -1 : 0;
}