aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-09-15 16:16:40 +0000
committerDoug Evans <dje@google.com>2009-09-15 16:16:40 +0000
commit7d4f32d36af917e1f2662f204146b808bbbbf8f2 (patch)
tree38caf41718bf078c34c9ba70d8e3c8ea68a00ef4 /gdb
parent8285870aeb368fe27af00e8be80261fcda320211 (diff)
downloadgdb-7d4f32d36af917e1f2662f204146b808bbbbf8f2.zip
gdb-7d4f32d36af917e1f2662f204146b808bbbbf8f2.tar.gz
gdb-7d4f32d36af917e1f2662f204146b808bbbbf8f2.tar.bz2
* target.c (memory_xfer_partial): Pass correct length to dcache_update.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/target.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 57caa24..32f6ac0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/target.c b/gdb/target.c
index ed7ccdc..e5d14fd 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -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