This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]