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: duplicated code in gdb and gdbserver


On Wed, Jan 12, 2011 at 10:30 AM, Paul Koning <paul_koning@dell.com> wrote:
>> I should add that these days packet size is often far less of an issue
>> than latency.
>
> I strongly disagree with that claim.
>
> While the remote protocol often runs across TCP connections on LANs, it also often runs over UART ports, at speeds of 9600 baud or so. ?Packet size is absolutely a very serious issue here.

[One can never have too many "For completeness sake ..." :-).]

Note that I said "often". I did *not* say "always".

> For example, I ended up optimizing a kernel gdb stub for MIPS to generate T messages (extended stop messages, with a few registers included) to avoid the expense of the large "g" packet. ?For that matter, I've found it very much worth while to implement the run-length encoding option in the protocol.
>
> Latency too matters, but this is one of those protocols where saving bytes is a major consideration.


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