This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] gdbserver: Detect and return errors reading memory
- From: Daniel Jacobowitz <drow at false dot org>
- To: "Nathan J. Williams" <nathanw at wasabisystems dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 4 Mar 2004 21:59:11 -0500
- Subject: Re: [patch] gdbserver: Detect and return errors reading memory
- References: <mtullmks2w5.fsf@contents-vnder-pressvre.mit.edu>
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.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer