提交 905f20b1 编写于 作者: B bellard

fixed gdb error reporting (Paul Brook)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1407 c046a42c-6fe2-441c-8c8c-71466251a162
上级 ff1afc72
...@@ -489,7 +489,7 @@ static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf) ...@@ -489,7 +489,7 @@ static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf)
p++; p++;
hextomem(mem_buf, p, len); hextomem(mem_buf, p, len);
if (cpu_memory_rw_debug(env, addr, mem_buf, len, 1) != 0) if (cpu_memory_rw_debug(env, addr, mem_buf, len, 1) != 0)
put_packet(s, "ENN"); put_packet(s, "E14");
else else
put_packet(s, "OK"); put_packet(s, "OK");
break; break;
...@@ -507,7 +507,7 @@ static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf) ...@@ -507,7 +507,7 @@ static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf)
put_packet(s, "OK"); put_packet(s, "OK");
} else { } else {
breakpoint_error: breakpoint_error:
put_packet(s, "ENN"); put_packet(s, "E22");
} }
break; break;
case 'z': case 'z':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册