* target.c (target_xfer_memory_partial): Return -1 on failure due
authorJ.T. Conklin <jtc@acorntoolworks.com>
Fri, 26 Jan 2001 02:30:15 +0000 (02:30 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Fri, 26 Jan 2001 02:30:15 +0000 (02:30 +0000)
to invalid access mode attribute.

gdb/ChangeLog
gdb/target.c

index d003c5812c4eff1c6888a1389ef42283b33db25e..cc5d9588718a39f3fd109ede0bd0325a76a8d598 100644 (file)
@@ -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.
index 8c76f076868f0e20ef16baf9b78cb3c9a441002d..87d392b703f366b51d5aa07f27805646ffb1ea16 100644 (file)
@@ -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;
     }