]> git.sur5r.net Git - openocd/commit
gdb server: Fix bug. Parse 'M' packet error.
authorHsiangkai Wang <hsiangkai@gmail.com>
Tue, 23 Apr 2013 10:42:07 +0000 (18:42 +0800)
committerFreddie Chopin <freddie.chopin@gmail.com>
Sun, 28 Apr 2013 07:34:34 +0000 (07:34 +0000)
commit992059b8985cccfa19e0579ba5835f343b1179e5
tree78fd6817dc064b0603432811012cc35da4858ff4
parente12989a84b2c9f59e231af080e7dfcc9d2845eb2
gdb server: Fix bug. Parse 'M' packet error.

The format of 'M' packet is 'M addr,length:XX...'. The data
follows ':' immediately. No need to '+2' to SEPARATOR in
unhexify(), because SEPARATOR points to data correctly.

Change-Id: I15b5758b540816cc727752e7bf68cd45e623f603
Signed-off-by: Hsiangkai Wang <hsiangkai@gmail.com>
Reviewed-on: http://openocd.zylin.com/1360
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/server/gdb_server.c