This is an automated email from Gerrit.

Sergey A. Borshch ([email protected]) just uploaded a new patch set 
to Gerrit, which you can find at http://openocd.zylin.com/1678

-- gerrit

commit a83ae122570faf1d7a353c4574c59de162f80893
Author: Sergey A. Borshch <[email protected]>
Date:   Thu Oct 3 19:31:16 2013 +0300

    target: fix mem2array/array2mem
    
     if data size is bigger than transfer buffer, all portions are
     transferred from/to the same target address - address advance
     after successful transmission missed.
    
    Change-Id: Icb2c531cdda081284846540ad01ae874935ff98f
    Signed-off-by: Sergey A. Borshch <[email protected]>

diff --git a/src/target/target.c b/src/target/target.c
index 0eb5788..68303bc 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -458,7 +458,6 @@ int target_poll(struct target *target)
                /* Fail silently lest we pollute the log */
                return ERROR_FAIL;
        }
-
        retval = target->type->poll(target);
        if (retval != ERROR_OK)
                return retval;
@@ -3767,6 +3766,7 @@ static int target_mem2array(Jim_Interp *interp, struct 
target *target, int argc,
                                new_int_array_element(interp, varname, n, v);
                        }
                        len -= count;
+            addr += count;
                }
        }
 
@@ -3960,6 +3960,7 @@ static int target_array2mem(Jim_Interp *interp, struct 
target *target,
                        e = JIM_ERR;
                        break;
                }
+        addr += count;
        }
 
        free(buffer);

-- 

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to