From patchwork Wed Apr 20 06:49:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1619344 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=mboTBxa3; 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)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kjrt71PGdz9sG0 for ; Wed, 20 Apr 2022 16:51:11 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Kjrt70Zyyz2yZf for ; Wed, 20 Apr 2022 16:51:11 +1000 (AEST) 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=mboTBxa3; 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::632; helo=mail-pl1-x632.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=mboTBxa3; dkim-atps=neutral Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (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 4Kjrt522s5z2xKT for ; Wed, 20 Apr 2022 16:51:09 +1000 (AEST) Received: by mail-pl1-x632.google.com with SMTP id n18so977500plg.5 for ; Tue, 19 Apr 2022 23:51:09 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=YtHoLXkTw6t/JlRnAsF+NpiEiduJaHC2fP51oWYDbz4=; b=mboTBxa37pfxjQZNHnLJf3jS+x49g/zs3kHv206LNL1qgkNZp2E+hW1OgfPytGx/pG vH5/50d1jxb5XihPMVUoMcQsK//mRCNNUEpcdBp3dxRBNiTn7vgHGvdQp7jQCkRXz+nI dX3qwL3ggp0kUZDuKTsX1qybmxJ9s09Sc8oHElT+YYXxHdNJ90U2fv4v7XC7purQImd/ 4qrTneUphx1+TlYT3P1dNTRdukO2R2UjV5wM9OJKHjJMBAvU5EDevcGIVb9I3Adv1I+z CWWmTjBSgEfO0k7nyVqDCQaTnJeExoc5xNgCCPCYl84uPqzSArxS9/SMeS7xvBmMA2DB YTHw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=YtHoLXkTw6t/JlRnAsF+NpiEiduJaHC2fP51oWYDbz4=; b=sn5X7lIR3DzUMyoGBdpui5n+5fSksn98RsQMh2YPBCgMgg2CPdxzAj4LyXBDctkZTx f8kWvaBV2ZxCnQhGQneql58cEvMqTCmp9NlCChhSIg4DzjQ6BD8nRNGg9qMqp7BBWYuw D9jcZqWI1LSkf8bxzFmOgXg9igYjxzJEKFSYzlUU/huo9YFsB9xmwvQ2QvTw8/mpzOz0 hpKF8plQIeKg1U1ZLlVWm9vIZ2i3K/w5iz7tHG5VrvMTS1c2wTPuFrCxj8appI6FrlS4 FmdU0TJerOeH5sfKpSBFjgAnfgG56K8lmdkptzi5wBLBZf2+DVsQxDN7+eRedR3vvCT2 iO8Q== X-Gm-Message-State: AOAM533L4wnE3hrKJAeupTGzcghORCG9oeE+R1u3Rp/Ay3CSNTFcES4o hH4axT7WQdhSQMn5Z0OweIS826+wnUSuGg== X-Google-Smtp-Source: ABdhPJwjQc5STeo9T+BDkJPzB27ZJSlCUXaPGyxiDcl6klZdCWo2gmGzySfKwO1yf0QZ4KYnlBx1Yw== X-Received: by 2002:a17:90b:4b01:b0:1d2:abf5:c83f with SMTP id lx1-20020a17090b4b0100b001d2abf5c83fmr2682651pjb.93.1650437466958; Tue, 19 Apr 2022 23:51:06 -0700 (PDT) Received: from bobo.ozlabs.ibm.com ([203.221.203.144]) by smtp.gmail.com with ESMTPSA id x20-20020aa79574000000b005061f4782c5sm18481235pfq.183.2022.04.19.23.51.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 23:51:06 -0700 (PDT) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Wed, 20 Apr 2022 16:49:52 +1000 Message-Id: <20220420065013.222816-19-npiggin@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220420065013.222816-1-npiggin@gmail.com> References: <20220420065013.222816-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 18/39] gdbserver: disable attn after breaking 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" Rather than leave attn enabled, disable it when breaking to idle state if it was enabled. This helps prevent attn from getting left on after the debugger is detached or when no breakpoints are enabled. Signed-off-by: Nicholas Piggin Reviewed-by: Joel Stanley --- src/pdbgproxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pdbgproxy.c b/src/pdbgproxy.c index 7267fd8a..9729eaa1 100644 --- a/src/pdbgproxy.c +++ b/src/pdbgproxy.c @@ -382,6 +382,8 @@ static void poll(void) if (!(status.quiesced)) break; + set_attn(false); + state = IDLE; poll_interval = VCONT_POLL_DELAY; if (!(status.active)) {