* target.c (memory_xfer_partial): Pass correct length to dcache_update.
authorDoug Evans <dje@google.com>
Tue, 15 Sep 2009 16:16:40 +0000 (16:16 +0000)
committerDoug Evans <dje@google.com>
Tue, 15 Sep 2009 16:16:40 +0000 (16:16 +0000)
gdb/ChangeLog
gdb/target.c

index 57caa24a790447004429551d9552217366193bdb..32f6ac0d7887bf2367a24d401646b30ee69ee0be 100644 (file)
@@ -1,3 +1,7 @@
+2009-09-15  Doug Evans  <dje@google.com>
+
+       * target.c (memory_xfer_partial): Pass correct length to dcache_update.
+
 2009-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix gcc-4.5 HEAD warnings for enum ada_operator.
index ed7ccdc9997cdb8c4dbc689f70e5ade86068db50..e5d14fd1039a2c5deaf660cdf897e21e3dc3b01d 100644 (file)
@@ -1333,7 +1333,7 @@ memory_xfer_partial (struct target_ops *ops, enum target_object object,
       && stack_cache_enabled_p
       && object != TARGET_OBJECT_STACK_MEMORY)
     {
-      dcache_update (target_dcache, memaddr, (void *) writebuf, reg_len);
+      dcache_update (target_dcache, memaddr, (void *) writebuf, res);
     }
 
   /* If we still haven't got anything, return the last error.  We