* [Qemu-devel] [patch] GDB error return codes
@ 2005-03-20 18:46 Paul Brook
0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2005-03-20 18:46 UTC (permalink / raw)
To: qemu-devel
The gdb remote protocol uses the response "ENN" to report an error, where NN
is an errno code, not a literal string.
Patch below fixes this.
Paul
Index: gdbstub.c
===================================================================
RCS file: /cvsroot/qemu/qemu/gdbstub.c,v
retrieving revision 1.23
diff -u -p -r1.23 gdbstub.c
--- gdbstub.c 17 Jan 2005 22:03:16 -0000 1.23
+++ gdbstub.c 20 Mar 2005 18:39:09 -0000
@@ -424,7 +479,7 @@ static int gdb_handle_packet(GDBState *s
p++;
hextomem(mem_buf, p, len);
if (cpu_memory_rw_debug(env, addr, mem_buf, len, 1) != 0)
- put_packet(s, "ENN");
+ put_packet(s, "E14");
else
put_packet(s, "OK");
break;
@@ -442,7 +497,7 @@ static int gdb_handle_packet(GDBState *s
put_packet(s, "OK");
} else {
breakpoint_error:
- put_packet(s, "ENN");
+ put_packet(s, "E22");
}
break;
case 'z':
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-20 19:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-20 18:46 [Qemu-devel] [patch] GDB error return codes Paul Brook
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.