From patchwork Fri Apr 26 04:35:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Doron X-Patchwork-Id: 1091274 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GY9LrQ8I"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44r20n69DBz9s47 for ; Fri, 26 Apr 2019 14:59:53 +1000 (AEST) Received: from localhost ([127.0.0.1]:39269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJsxj-0003wZ-RR for incoming@patchwork.ozlabs.org; Fri, 26 Apr 2019 00:59:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJsmp-0000dE-QC for qemu-devel@nongnu.org; Fri, 26 Apr 2019 00:48:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJsan-0004At-D1 for qemu-devel@nongnu.org; Fri, 26 Apr 2019 00:36:11 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:47038) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJsan-00049A-6F for qemu-devel@nongnu.org; Fri, 26 Apr 2019 00:36:09 -0400 Received: by mail-wr1-x443.google.com with SMTP id t17so2382916wrw.13 for ; Thu, 25 Apr 2019 21:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4Mki3u5Axs2FRS0efXqNNApR2bF0/XeWqjcomZbqTxU=; b=GY9LrQ8IXGtICPBhlkwWI1Xv0AGIkzI93Bea1Qe+6wuRhePkBO0RchOaQOQhb5+thX O4vExu7u4rJos4hsfUxZbuzf+AHEybcLYzp+fDxJOPBOkr1uIXn2hEraEYrT5fasOktq t2W2CAP52p1Wb/UHvWPx9JdRNC/XogYWFoyjWzRtWFS96sLTltFVJ9SALPOOHYafYXsr mCmCYIjoqIRHEF7xOQhJQYZphr8UngKqavxjRF6TECNTdQSiq0T7bRzYPxzNjtsAmc8F Tj1GLR3gIhkv/J+HEoXesJJsdcb6MxNxqMOouklNn/2pDQquahdlt6BFNw4DaXiBiawv 3Jfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4Mki3u5Axs2FRS0efXqNNApR2bF0/XeWqjcomZbqTxU=; b=A6qafwQ/R33WgYxltt6vX93PVDjUhBAKoNW8c9UDxiaCQwUvBwPsI7eaMmCLejMBdE RIMGCPn2mLaGRM8CfzO/VLgDELh3eVEAtcNz9kF0PMguyL4js8RRZ/ho9RTFdG93uDsw 47HFR24vb50LoVyb8i2+OxCwq6URpeT8A5tX8UOpc/aHmAcjGFHIqfxJ/LiTsQ1NqGpB wXLyP4hxXpYnRaChsNTH/RLulzvaV23YI9Kn5/UB0rTkiu9+N1iRD8wGFU3EjfQIElQx FNPI4bvlKqMDjGUbu0crTSTdno+OO+s8BEsgr0oB8Pq0BCY32H6Ym7Ox94zNthdqj85H z2Iw== X-Gm-Message-State: APjAAAXiUVvm32lPe2EfGFctOZj0WY1rbIdwBaVqDpZHdIJx/8tLHaWq CPrRjRhvOzD0CX+ia/8uqN8ujc5B X-Google-Smtp-Source: APXvYqy4l75JK9ebm/d+exmSLvOQROFD05CGum7rENOo39xEaxPQCEHpRo6ynEBK0A2GP/gHiWKHWQ== X-Received: by 2002:adf:db8a:: with SMTP id u10mr15817205wri.82.1556253366949; Thu, 25 Apr 2019 21:36:06 -0700 (PDT) Received: from localhost.localdomain (bzq-79-178-247-46.red.bezeqint.net. [79.178.247.46]) by smtp.gmail.com with ESMTPSA id h5sm3467088wmf.38.2019.04.25.21.36.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Apr 2019 21:36:06 -0700 (PDT) From: Jon Doron To: qemu-devel@nongnu.org Date: Fri, 26 Apr 2019 07:35:37 +0300 Message-Id: <20190426043558.6888-1-arilou@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH v7 00/21] gdbstub: Refactor command packets handler 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: alex.bennee@linaro.org, Jon Doron Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This patch series refactors the old gdbstub command packets handler with a new infrastructure which should ease extending and adding new and missing gdb command packets. version 7 changes: - Fixed few checkpatch complaints - Feedback from Alex Bennee version 4-6 changes: - mostly feedback from Richard Henderson version 3 changes - Split the single patch to many individual patches for easier reviewing version 2 changes - Code convention fixes Jon Doron (21): gdbstub: Add infrastructure to parse cmd packets gdbstub: Implement deatch (D pkt) with new infra gdbstub: Implement thread_alive (T pkt) with new infra gdbstub: Implement continue (c pkt) with new infra gdbstub: Implement continue with signal (C pkt) with new infra gdbstub: Implement set_thread (H pkt) with new infra gdbstub: Implement insert breakpoint (Z pkt) with new infra gdbstub: Implement remove breakpoint (z pkt) with new infra gdbstub: Implement set register (P pkt) with new infra gdbstub: Implement get register (p pkt) with new infra gdbstub: Implement write memory (M pkt) with new infra gdbstub: Implement read memory (m pkt) with new infra gdbstub: Implement write all registers (G pkt) with new infra gdbstub: Implement read all registers (g pkt) with new infra gdbstub: Implement file io (F pkt) with new infra gdbstub: Implement step (s pkt) with new infra gdbstub: Implement v commands with new infra gdbstub: Implement generic query (q pkt) with new infra gdbstub: Implement generic set (Q pkt) with new infra gdbstub: Implement target halted (? pkt) with new infra gdbstub: Clear unused variables in gdb_handle_packet gdbstub.c | 1671 +++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 1185 insertions(+), 486 deletions(-)