[PATCH] winedbg: gdbproxy: quietly handle qSupported and qTStatus
Paul Bolle
pebolle at tiscali.nl
Mon Aug 30 06:34:37 CDT 2010
When launched, gdb will, among other things, send a qSupported and a
qTStatus packet to the gdb stub. These packets will both be answered
with an empty packet (which is fine) but the stub will also print
warnings:
Unknown or malformed query Supported:xmlRegisters=i386;qRelocInsn+
Unknown or malformed query TStatus
Since these packets are neither unknown nor malformed let's handle these
packets quietly.
Signed-off-by: Paul Bolle <pebolle at tiscali.nl>
---
programs/winedbg/gdbproxy.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c
index 885ff86..2cb0293 100644
--- a/programs/winedbg/gdbproxy.c
+++ b/programs/winedbg/gdbproxy.c
@@ -1830,8 +1830,9 @@ static enum packet_return packet_query(struct gdb_context* gdbctx)
case 'S':
if (strncmp(gdbctx->in_packet, "Symbol::", gdbctx->in_packet_len) == 0)
return packet_ok;
- if (strncmp(gdbctx->in_packet, "Supported", gdbctx->in_packet_len) == 0)
+ if (strncmp(gdbctx->in_packet, "Supported", 9) == 0)
{
+ /* no features supported */
packet_reply_open(gdbctx);
packet_reply_close(gdbctx);
return packet_done;
@@ -1854,6 +1855,13 @@ static enum packet_return packet_query(struct gdb_context* gdbctx)
packet_reply_close(gdbctx);
return packet_done;
}
+ if (strncmp(gdbctx->in_packet, "TStatus", 7) == 0)
+ {
+ /* Tracepoints not supported */
+ packet_reply_open(gdbctx);
+ packet_reply_close(gdbctx);
+ return packet_done;
+ }
break;
}
if (gdbctx->trace & GDBPXY_TRC_COMMAND_ERROR)
--
1.7.2.1
More information about the wine-patches
mailing list