From 7d4f32d36af917e1f2662f204146b808bbbbf8f2 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 15 Sep 2009 16:16:40 +0000 Subject: [PATCH] * target.c (memory_xfer_partial): Pass correct length to dcache_update. --- gdb/ChangeLog | 4 ++++ gdb/target.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 57caa24a790..32f6ac0d788 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-09-15 Doug Evans + + * target.c (memory_xfer_partial): Pass correct length to dcache_update. + 2009-09-15 Jan Kratochvil Fix gcc-4.5 HEAD warnings for enum ada_operator. diff --git a/gdb/target.c b/gdb/target.c index ed7ccdc9997..e5d14fd1039 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 -- 2.30.2