From nobody Tue Feb 10 20:14:13 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1508246144730465.5473578619375; Tue, 17 Oct 2017 06:15:44 -0700 (PDT) Received: from localhost ([::1]:39177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4RiX-0007fd-UY for importer@patchew.org; Tue, 17 Oct 2017 09:15:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4Rdt-00040j-3O for qemu-devel@nongnu.org; Tue, 17 Oct 2017 09:10:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4Rdp-0005Zi-4i for qemu-devel@nongnu.org; Tue, 17 Oct 2017 09:10:45 -0400 Received: from mail.ispras.ru ([83.149.199.45]:56860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4Rdo-0005ZU-T6 for qemu-devel@nongnu.org; Tue, 17 Oct 2017 09:10:41 -0400 Received: from Misha-PC.lan02.inno (unknown [85.142.117.226]) by mail.ispras.ru (Postfix) with ESMTPSA id 3250C54006B; Tue, 17 Oct 2017 16:10:40 +0300 (MSK) From: Mihail Abakumov To: qemu-devel@nongnu.org Date: Tue, 17 Oct 2017 16:10:37 +0300 Message-ID: <150824583761.6816.16744916033263507022.stgit@Misha-PC.lan02.inno> In-Reply-To: <150824572545.6816.5099701189660002212.stgit@Misha-PC.lan02.inno> References: <150824572545.6816.5099701189660002212.stgit@Misha-PC.lan02.inno> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 83.149.199.45 Subject: [Qemu-devel] [PATCH v2 19/43] windbg: implemented windbg_process_control_packet X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sw@weilnetz.de, lprosek@redhat.com, dovgaluk@ispras.ru, rkagan@virtuozzo.com, pbonzini@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/windbgstub.c b/windbgstub.c index dc9eba3e3c..b2d4881ee8 100755 --- a/windbgstub.c +++ b/windbgstub.c @@ -129,7 +129,31 @@ static void windbg_process_data_packet(ParsingContext = *ctx) {} =20 static void windbg_process_control_packet(ParsingContext *ctx) -{} +{ + switch (ctx->packet.PacketType) { + case PACKET_TYPE_KD_ACKNOWLEDGE: + break; + + case PACKET_TYPE_KD_RESET: + { + SizedBuf buf =3D kd_gen_load_symbols_sc(qemu_get_cpu(0)); + + windbg_send_data_packet(buf.data, buf.size, + PACKET_TYPE_KD_STATE_CHANGE64); + windbg_send_control_packet(ctx->packet.PacketType); + windbg_state->ctrl_packet_id =3D INITIAL_PACKET_ID; + SBUF_FREE(buf); + break; + } + default: + WINDBG_ERROR("Caught unsupported control packet 0x%x", + ctx->packet.PacketType); + + windbg_state->ctrl_packet_id =3D 0; + windbg_send_control_packet(PACKET_TYPE_KD_RESEND); + break; + } +} =20 static void windbg_ctx_handler(ParsingContext *ctx) {