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: [RFC] Make target_read_string faster over high-latency links.


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


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