[RFA] i386-tdep.c, check target_read_memory for error.
Jan Kratochvil
jan.kratochvil@redhat.com
Sun Mar 6 14:56:00 GMT 2011
On Fri, 04 Mar 2011 22:37:52 +0100, Michael Snyder wrote:
> Call error if target_read_memory fails.
[...]
> - target_read_memory (pc, &op, 1);
> + if (target_read_memory (pc, &op, 1))
> + error (_("Couldn't read memory at pc (%s)"),
> + paddress (gdbarch, pc));
There is the function `read_memory' for such purpose.
Thanks,
Jan
More information about the Gdb-patches
mailing list