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.


>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:

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.

Paul> 1a. If yes, would it be acceptable to make this size a
Paul> runtime-configurable parameter?

Yes.

Paul> 2. Current target_read_string aligns reads on a 4-byte boundary. Code
Paul>    could be simplified quite a bit if it didn't do that.
Paul>    Are there targets where such alignment is required?

I don't know this either, sorry.

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.

Tom


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