gdb M packet parsing fix (Thomas Petazzoni)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1227 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2005-01-17 22:03:16 +00:00
parent ca954f6d90
commit b328f873ab

View File

@ -420,7 +420,7 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf)
if (*p == ',')
p++;
len = strtoul(p, (char **)&p, 16);
if (*p == ',')
if (*p == ':')
p++;
hextomem(mem_buf, p, len);
if (cpu_memory_rw_debug(env, addr, mem_buf, len, 1) != 0)