From: oharboe at B. <oh...@ma...> - 2009-05-14 20:56:42
|
Author: oharboe Date: 2009-05-14 20:56:41 +0200 (Thu, 14 May 2009) New Revision: 1785 Modified: trunk/src/target/target.c Log: dump_image now works for addresses not divisible by 4 Modified: trunk/src/target/target.c =================================================================== --- trunk/src/target/target.c 2009-05-14 18:45:19 UTC (rev 1784) +++ trunk/src/target/target.c 2009-05-14 18:56:41 UTC (rev 1785) @@ -2133,7 +2133,7 @@ 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; |