This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix length arg in call to breakpoint_xfer_memory


On 02/21/2014 09:05 PM, Andreas Arnez wrote:
> @@ -1348,7 +1348,7 @@ memory_xfer_partial (struct target_ops *ops, enum target_object object,
>  				   xfered_len);
>  
>        if (res == TARGET_XFER_OK && !show_memory_breakpoints)
> -	breakpoint_xfer_memory (readbuf, NULL, NULL, memaddr, res);
> +	breakpoint_xfer_memory (readbuf, NULL, NULL, memaddr, *xfered_len);

Ah, it should be "*xfered_len" instead of "res".  The patch looks good
to me, but I can't approve it.

-- 
Yao (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]