Hi, This patch fixes a couple of problems with the remote protcol handling 1) remote_fetch_registers checks to see things have not got out of sync, but it does not deal with upper case hex characters and so can get confused 2) remote_write_bytes attempts to honour get_memory_write_packet_size's limit, but fails in two ways when that is a very small number. a) it can end up with a negative byte count. b) it deducts the number of chars in the *maximal* length count, not the number of chars in the actual length count. This can result in packets sending 1 or 2 bytes fewer than they are limited to. built & tested on i686-pc-linux-gnu and an unreleased architecture. ok? nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk