From patchwork Tue Mar 29 15:49:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1610699 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=aOAQI6fX; 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 4KSYtP5Ktjz9sFk for ; Wed, 30 Mar 2022 02:50:21 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KSYtP4FQ1z2yPJ for ; Wed, 30 Mar 2022 02:50:21 +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=aOAQI6fX; 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::52b; helo=mail-pg1-x52b.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=aOAQI6fX; dkim-atps=neutral Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (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 4KSYtM2nK0z2yQ6 for ; Wed, 30 Mar 2022 02:50:19 +1100 (AEDT) Received: by mail-pg1-x52b.google.com with SMTP id k14so15207187pga.0 for ; Tue, 29 Mar 2022 08:50:19 -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=GbyATik5cMuoz+eAqajDwOW6a+DVeUzH+vI9iwqoEZk=; b=aOAQI6fXj+din/mqBFvifa1o8LXBYZ0uLtjhWPEUyT60jdph+lDabjKqctYgQ+hRhC xCt3xEKh/+L2uHQEbxS6/SN83tILRXeAsL5N5Hgrkz0nkDJMNXLXes49bzt35THbMDOk H4nh7KTx/Fc3vynO2/tNcnzjOh4NVKsy5E/Iyt9Av6qSyRgDGfY9K4gqQIW/b4Hbrg1D W8Pxw/zgX27JysL8vRWRQrrdUmip0ZqeHAabdOJ+Mw2t+D3ZnUVBQHsnUOODxuY3Kl9M RXslbp4khCrbH7qPGfQMnvBtK/QC5rKFB1fi5j3KkQAjBLyd2IHbssSGbIp195eNlC1V mTVA== 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=GbyATik5cMuoz+eAqajDwOW6a+DVeUzH+vI9iwqoEZk=; b=I+M3QZkAW9hCFUkZQWBKUUqvj82jKbr/wVibyK0mFMpTNgL3Qf6FTTjUx5RNgoxvEF FPXghKK6SSVPKILjwTGrBw/nIzYVqAgSs5dyMH3LPrQdu5EWM/BzT2J3tDjrSXnZU/zs PAPJ+uDwiTRE3RG2O2NaYehM3H8RLtHQ/PQZ7pFLxD9BrD1LA+GECP8w865rFK+8wyGV vzOs/r/HmRFQizZOaHxO7C6ruk1FtCYRegmZ4847dHDLVB2NykIzhA3lu6pd8a1Pxb5B 7Sy3tTQjsItvOOx4ZoObE+fZgoKLYae0evK+SJLIUXryW6VmwDsTqGkLvghyyFgYBTV6 Zb7Q== X-Gm-Message-State: AOAM5303ZUJyBhc2l7sqnObW8HRhgWWmc7+lNwdadewk6eycvY+tE59o +i5cx1rM3yotA92QPhJPET+WGAf76qs= X-Google-Smtp-Source: ABdhPJx7VWzf4wr8os54ANRnT2lYT0pxun2dHXHbgKv38fSAeCnjzD7U+qEJlHPVH6jybt4skkfGfQ== X-Received: by 2002:a63:8ac3:0:b0:398:9e2b:b85 with SMTP id y186-20020a638ac3000000b003989e2b0b85mr418601pgd.32.1648569016704; Tue, 29 Mar 2022 08:50:16 -0700 (PDT) Received: from bobo.ibm.com (58-6-255-110.tpgi.com.au. [58.6.255.110]) by smtp.gmail.com with ESMTPSA id s35-20020a056a001c6300b004fb20b5d6c1sm14163564pfw.40.2022.03.29.08.50.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Mar 2022 08:50:16 -0700 (PDT) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Wed, 30 Mar 2022 01:49:10 +1000 Message-Id: <20220329154931.493851-18-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220329154931.493851-1-npiggin@gmail.com> References: <20220329154931.493851-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 17/38] 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 --- src/pdbgproxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pdbgproxy.c b/src/pdbgproxy.c index 3e27644..99238df 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)) {