* 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.
This commit is contained in:
parent
d81510055c
commit
c3e735a6a3
5 changed files with 32 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
/* Target operations for the remote server for GDB.
|
||||
Copyright 2002
|
||||
Copyright 2002, 2004
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Contributed by MontaVista Software.
|
||||
|
@ -57,11 +57,13 @@ set_desired_inferior (int use_general)
|
|||
current_inferior = found;
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
|
||||
{
|
||||
(*the_target->read_memory) (memaddr, myaddr, len);
|
||||
int res;
|
||||
res = (*the_target->read_memory) (memaddr, myaddr, len);
|
||||
check_mem_read (memaddr, myaddr, len);
|
||||
return res;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue