From b4cea6e4026895e9ebebeabf6f57bdcbd64de867 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 3 Jan 2012 21:37:59 +0100 Subject: [PATCH] winedbg: Added support for qAttached query packet. --- programs/winedbg/gdbproxy.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c index 1a30947e37f..9205badef11 100644 --- a/programs/winedbg/gdbproxy.c +++ b/programs/winedbg/gdbproxy.c @@ -1785,6 +1785,16 @@ static enum packet_return packet_query(struct gdb_context* gdbctx) return packet_done; } break; + case 'A': + if (strncmp(gdbctx->in_packet, "Attached", gdbctx->in_packet_len) == 0) + { + char buf[2]; + + buf[0] = '1'; + buf[1] = 0; + return packet_reply(gdbctx, buf, -1); + } + break; case 'C': if (gdbctx->in_packet_len == 1) {