aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>2001-01-26 02:30:15 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>2001-01-26 02:30:15 +0000
commit873406a684d000a976614d9c4e5378a93cf85051 (patch)
treef4ef337a3ce08eddd1288c778137331fecf6632e /gdb/target.c
parent* win32-nat.c (_initialize_core_win32): Prototype correctly. (diff)
downloadbinutils-gdb-873406a684d000a976614d9c4e5378a93cf85051.tar.gz
binutils-gdb-873406a684d000a976614d9c4e5378a93cf85051.tar.bz2
binutils-gdb-873406a684d000a976614d9c4e5378a93cf85051.zip
* target.c (target_xfer_memory_partial): Return -1 on failure due
to invalid access mode attribute.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c4
1 files changed, 2 insertions, 2 deletions
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;
}