From patchwork Mon Mar 14 04:17:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1604888 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=pAnkExv1; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KH3DW1B3Gz9sGN for ; Mon, 14 Mar 2022 15:18:02 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KH3DM6vhRz30HX for ; Mon, 14 Mar 2022 15:17:55 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=pAnkExv1; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1033; helo=mail-pj1-x1033.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=pAnkExv1; dkim-atps=neutral Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4KH3DF4Vxxz2xTn for ; Mon, 14 Mar 2022 15:17:47 +1100 (AEDT) Received: by mail-pj1-x1033.google.com with SMTP id mm23-20020a17090b359700b001bfceefd8c6so9993149pjb.3 for ; Sun, 13 Mar 2022 21:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lXO2A4SpherZyt2VLvh2qY/si7tBZmkdmNh246/4ReA=; b=pAnkExv1yt+Vg3xk42WCkjjMy/UkUCAt88MiTk4noNzL2/Un9ZHaqzLxRFzpbsGd/n 0G12/ysmo+pQKgmQpMl+SEAQXXLDqp00xfnJg7ZNQCypdhve/pyCoiBOEG5+DSqMmh6d Bek5zSAvCH8lzDr36Lw45s8LaEJy7Rk+0P53D2XRTimJcnKbJLdYlDtRsUFX+r+XypF1 w5AOrXLU3WtvazyAAF4r9EYrD6ADPGfc1v7uR94FQQFQ4NPP/IOB9F90422yJDhbkwzS jMufh2sioHuPMAec/UxXdrxhlyx9n6L1m3MOeXnRxYSWoM7K8xlrCNdeSc6xRF1QgmaL eCig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lXO2A4SpherZyt2VLvh2qY/si7tBZmkdmNh246/4ReA=; b=MGy81q6bFOTS02c4b/L8MGmjvBjoRAQkoZRnmMyPOyw9Aaw2v/Hud+nw4IkNdTO4LY uq6d95EpUZEturvi9E86HvvpLMQVikFtK+GgG2zaylzoj7QOPhrZQ179Wx+bW/IU/zM3 LAlWTOWR41pNShkJmBqxGk7cDtBBhOA1NVsvGaW4wFdXJGrf14cjPrlEfaX/0jziIMEu NkBXoIFLGCIqsCj0JHAR+rCWSUtrdWyv1jwM81o3eyq6aJcraf07SQkuSfnRVwlt2c73 AVUq4KZzjW9GLW74VrbQc/QK/Bf1NmdAANdQah86j3LOsQooMfnj6DG7TL9B+SosTSPA s/rw== X-Gm-Message-State: AOAM533YVNHNIqUuqCNH0ntkahLS2fQzLShAKbkTmnoJ67hqyI1fh9+e ouwcNE6pZ96X5Xdr0Ud7RNz0AbNawbY= X-Google-Smtp-Source: ABdhPJwMbP+F0xJbCE2eHjKleYI3HokbiOCPjE/IxjR2A5R7TzMEo1iG6ANU22ffJTnNytBeFIqZYA== X-Received: by 2002:a17:902:d509:b0:152:54d1:bb6e with SMTP id b9-20020a170902d50900b0015254d1bb6emr21172430plg.133.1647231463092; Sun, 13 Mar 2022 21:17:43 -0700 (PDT) Received: from bobo.ibm.com (110-175-148-108.static.tpgi.com.au. [110.175.148.108]) by smtp.gmail.com with ESMTPSA id d16-20020a056a00245000b004f771b48736sm14283018pfj.194.2022.03.13.21.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Mar 2022 21:17:42 -0700 (PDT) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Mon, 14 Mar 2022 14:17:20 +1000 Message-Id: <20220314041735.542867-1-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Pdbg] [PATCH 00/14] gdbserver fixes and POWER10 support X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicholas Piggin Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" POWER10 seems to work nicely with sbefifo (modulo the start SBE command being buggy with stop states -- make sure you stop and start using -b kernel backend when testing this). gdbserver itself was due for a bit of attention. It still really needs proper all-stop multi threaded support that can take over all threads and start/stop them. Because all threads on a chiplet have to be stopped to debug it, but if we only control one thread with the debugger then continuing execution is rarely useful outside controlled special cases. Thanks, Nick Nicholas Piggin (14): gdbserver: update gdb_parser_precompile.c, rename detach command gdbserver: include argument in command line help text gdbserver: print some client/server info gdbserver: Make command static gdbserver: use standard compatibility test calls gdbserver: fix read buffer overflow gdbserver: fix interrupt double response libpdbg: thread_regs don't print regs gdbserver: lexer fixes gdbserver: implement NoAckMode libpdbg: Remove enable_attn target command gdbserver: disable attn after breaking gdbserver: use read-modify-write for put_mem that is not 8-byte aligned gdbserver: Add POWER10 support libpdbg/chip.c | 2 - libpdbg/hwunit.h | 1 - libpdbg/p8chip.c | 31 --- libpdbg/thread.c | 7 +- src/gdb_parser.rl | 76 +++++--- src/gdb_parser_precompile.c | 378 +++++++++++++++++++++--------------- src/main.c | 2 +- src/pdbgproxy.c | 130 ++++++++++--- src/pdbgproxy.h | 2 +- src/thread.c | 2 + 10 files changed, 378 insertions(+), 253 deletions(-)