This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Make target_read_string faster over high-latency links.
> 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. I don't remember if GDB is protecting
itself against this sort of thing (by checking the range against
known regions), but I remember having problems on LynxOS for instance,
where we tried to read some data on the stack, tried to read too much
in one go, and ended up getting a failure and no data as a result.
That was a while ago, so may be OBE...
> 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.
--
Joel