From: J.T. Conklin Date: Fri, 26 Jan 2001 02:30:15 +0000 (+0000) Subject: * target.c (target_xfer_memory_partial): Return -1 on failure due X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=873406a684d000a976614d9c4e5378a93cf85051;p=binutils-gdb.git * target.c (target_xfer_memory_partial): Return -1 on failure due to invalid access mode attribute. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d003c5812c4..cc5d9588718 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-01-25 J.T. Conklin + + * target.c (target_xfer_memory_partial): Return -1 on failure due + to invalid access mode attribute. + 2001-01-25 Christopher Faylor * win32-nat.c (_initialize_core_win32): Prototype correctly. diff --git a/gdb/target.c b/gdb/target.c index 8c76f076868..87d392b703f 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -991,7 +991,7 @@ target_xfer_memory_partial (CORE_ADDR memaddr, char *myaddr, int len, if (write_p) { *err = EIO; - return 0; + return -1; } break; @@ -999,7 +999,7 @@ target_xfer_memory_partial (CORE_ADDR memaddr, char *myaddr, int len, if (write_p) { *err = EIO; - return 0; + return -1; } break; }