[RFC] Make target_read_string faster over high-latency links.
Paul Pluzhnikov
ppluzhnikov@google.com
Fri Jul 22 17:01:00 GMT 2011
On Fri, Jul 22, 2011 at 9:43 AM, Joel Brobecker <brobecker@adacore.com> wrote:
>> Paul> 1. is it ok to read strings 128 bytes at a time, or are there
>> Paul> scenarios (JTAG?) where the latency is low but throughput is also
>> Paul> low (and so reading "unnecessary" data is expensive) ?
>>
>> I don't know, but I assume so.
>
> I think that the risk is to attempt a read that gets past the
> readable memory region.
That shouldn't be a risk (I think): target_read will (is supposed to)
return partial results.
>> What about making it possible for gdbserver to do the string-reading
>> itself, with a fallback to the existing code for older versions? Then
>> you don't need a parameter or any tuning.
>
> Seems like a good idea to me.
FWIW, additional discussion here:
http://sourceware.org/ml/gdb-patches/2011-07/msg00546.html
--
Paul Pluzhnikov
More information about the Gdb-patches
mailing list