summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-14 18:56:41 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-14 18:56:41 +0000
commita74d91141269b5567c9a2832877dcbefccfa1e1e (patch)
tree9ec44e93fc2010910368810d662a9feded4f5f0d /src/target
parent651cb917e71379c574a2806c5f15d4f376af1428 (diff)
downloadopenocd+libswd-a74d91141269b5567c9a2832877dcbefccfa1e1e.tar.gz
openocd+libswd-a74d91141269b5567c9a2832877dcbefccfa1e1e.tar.bz2
openocd+libswd-a74d91141269b5567c9a2832877dcbefccfa1e1e.tar.xz
openocd+libswd-a74d91141269b5567c9a2832877dcbefccfa1e1e.zip
dump_image now works for addresses not divisible by 4
git-svn-id: svn://svn.berlios.de/openocd/trunk@1785 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c
index a0cbf85c..c1031a02 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -2133,7 +2133,7 @@ static int handle_dump_image_command(struct command_context_s *cmd_ctx, char *cm
u32 size_written;
u32 this_run_size = (size > 560) ? 560 : size;
- retval = target->type->read_memory(target, address, 4, this_run_size / 4, buffer);
+ retval = target_read_buffer(target, address, this_run_size, buffer);
if (retval != ERROR_OK)
{
break;