Re: [patch] gdbserver: Detect and return errors reading memory

Daniel Jacobowitz
2004-03-05T02:59:13Z

On Mon, Mar 01, 2004 at 03:55:54PM -0500, Nathan J. Williams wrote:
>
> As I promised last week, here is a patch to check for errors reading
> memory in gdbserver and propagate that error back to the host gdb.

This is OK, thanks very much! Do you have CVS access or shall I commit
it?

[I think some of the files may also need copyright year updates.]

>
> - Nathan
>
> 2004-03-01 Nathan J. Williams <nathanw@wasabisystems.com>
>
> * linux-low.c (linux_read_memory): Change return type to
> int. Check for and return error from ptrace().
> * target.c (read_inferior_memory): Change return type to int. Pass
> back return status from the_target->read_memory().
> * target.h (struct target_ops): Adapt *read_memory() prototype.
> Update comment.
> (read_inferior_memory): Adapt prototype.
> * server.c (main): Return an error packet if
> read_inferior_memory() returns an error.