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.
- From: Tom Tromey <tromey at redhat dot com>
- To: ppluzhnikov at google dot com (Paul Pluzhnikov)
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 18 Jul 2011 11:09:03 -0600
- Subject: Re: [RFC] Make target_read_string faster over high-latency links.
- References: <20110715180748.A0390190BC2@elbrus2.mtv.corp.google.com>
>>>>> "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