Investigate the possible use of a remote-gdb jtag protocol, which is optimised: http://www.embecosm.com/appnotes/ean4/embecosm-howto-rsp-server-ean4-issue-2.html