Hi,

Find attached a patch for review that adds support for rle packets to gdb
support.

This simply reduces repeated chars when sent from openocd - register packet
and
memory reads generally will increase in speed as the packet len is reduced.

an example of gdb reg packet
without rle
2800000004000000210100002101000000009cf8e0000000ffffffffffffffffffffffffffff
ffffc800002084080020ffffffff700800205c0d0040d4080040000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000001f000080

with rle
280*"040*"21010* 21010*"009cf8e0*"0f*<c80*
2084080020f*"ff700800205c0d0040d4080040*}0*}0*"01f0* 80

I have also changed gdb_put_packet_inner to use a shared buffer, we should
never get any packet bigger than GDB_BUFFER_SIZE.

if everyone is happy i will commit.

Cheers
Spen

Attachment: gdbserver.patch
Description: Binary data

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to