diff options
author | J.T. Conklin <jtc@acorntoolworks.com> | 2001-01-26 02:30:15 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@acorntoolworks.com> | 2001-01-26 02:30:15 +0000 |
commit | 873406a684d000a976614d9c4e5378a93cf85051 (patch) | |
tree | f4ef337a3ce08eddd1288c778137331fecf6632e | |
parent | 0613c4019ce28b37a569a20ce996cc7ceec75854 (diff) | |
download | gdb-873406a684d000a976614d9c4e5378a93cf85051.zip gdb-873406a684d000a976614d9c4e5378a93cf85051.tar.gz gdb-873406a684d000a976614d9c4e5378a93cf85051.tar.bz2 |
* target.c (target_xfer_memory_partial): Return -1 on failure due
to invalid access mode attribute.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/target.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d003c58..cc5d958 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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. + 2001-01-25 Christopher Faylor <cgf@cygnus.com> * win32-nat.c (_initialize_core_win32): Prototype correctly. diff --git a/gdb/target.c b/gdb/target.c index 8c76f07..87d392b 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; } |