This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Fix target_xfer_memory_partial() mode failure return value
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH]: Fix target_xfer_memory_partial() mode failure return value
- From: jtc at redback dot com (J.T. Conklin)
- Date: 25 Jan 2001 18:29:07 -0800
- Reply-To: jtc at redback dot com
I'll be checking in the enclosed change. All it does it return
failure (-1) when the memory access mode mode doesn't allow the
requested transfer. Not a big deal, but I wanted to get it out
of the way...
--jtc
2001-01-25 J.T. Conklin <jtc@redback.com>
* target.c (target_xfer_memory_partial): Return -1 on failure due
to invalid access mode attribute.
Index: target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.18
diff -c -r1.18 target.c
*** target.c 2001/01/23 22:48:56 1.18
--- target.c 2001/01/26 02:25:30
***************
*** 991,997 ****
if (write_p)
{
*err = EIO;
! return 0;
}
break;
--- 991,997 ----
if (write_p)
{
*err = EIO;
! return -1;
}
break;
***************
*** 999,1005 ****
if (write_p)
{
*err = EIO;
! return 0;
}
break;
}
--- 999,1005 ----
if (write_p)
{
*err = EIO;
! return -1;
}
break;
}
--
J.T. Conklin
RedBack Networks