From patchwork Mon Mar 14 04:17:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1604893 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=oTMQDez0; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 4KH3Df12ppz9sG2 for ; Mon, 14 Mar 2022 15:18:10 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KH3Dd70g1z30Hq for ; Mon, 14 Mar 2022 15:18:09 +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=oTMQDez0; 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::42b; helo=mail-pf1-x42b.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=oTMQDez0; dkim-atps=neutral Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (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 4KH3DN1r8wz30Hr for ; Mon, 14 Mar 2022 15:17:56 +1100 (AEDT) Received: by mail-pf1-x42b.google.com with SMTP id s11so13145067pfu.13 for ; Sun, 13 Mar 2022 21:17:56 -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=oTu8Ykfg8kYPZz0Emy5+Ntw4elstj3qe1ojulAnWhgg=; b=oTMQDez0Kr1db2Eu6iSn3Ct2VImFngLpVZP9MwfSfQ0X1YU8KMsivMILHQmg7N8kO9 DudLaF+5/Sy3XiHSYRhQQ6OU9zn/EqRKvG7FI5AFxFMBCQbx06SoNFuIxYjQz93Q7wRA clNK/B3uvoKEypKkFSk21MQv190XLZJ4xRCdHtuqAI9FV4F+xIgOIICR3smsx/DpUGKO OGePnp1HB+CjcsHpvNQYUM3TqrH6/DYdv/gWYFa9TRa28KOmUDw7Qg9u4i/tTH1e7BIz ZSZ+D6vKNonF7j0o4ziNNmvFTrkX+yo5H9u7lBHx5Ir+LVtvlGDdcp91gVmqZ3xV/y8R se/A== 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=oTu8Ykfg8kYPZz0Emy5+Ntw4elstj3qe1ojulAnWhgg=; b=sPyRYYmLiGbG5NlUDFL4wUZXoo+YYFTCIws+n7gQzJx1x9VTnc1exfnB9wjD99hk/s XoQT+ZeWyu0SJVXHfASn8PBhSkK0QR8s1aPiQP8lLjzIbF7yXmetZMCWBpdg1GlwmUgS ZqTHRzMV3fM/h0JDhlHubs8EYceE8hGLEsnYE9z4FRQKNpkwtNyt6mOJyyPrNscE+EDN w1+7buBWxNwXX8P+aD5LlQPOcC3UWEjGXWnGnPmKWHr4fmq2+rRN+j7O7mB6DYusMMsa cJoO6nTmwUSO1MI3bJp+kEsb04oGvNJVN6vbtvjsCSLDLOsvM8zLHRJvHPORicQYODwO D7Hw== X-Gm-Message-State: AOAM533o/YVVZ9g0GJNyICnYNrYR+yDsA75k1a5ApyttYdlisdUlLnPo ZFmNuyy7QDIH9SWU66T+kWzXUOX1lhQ= X-Google-Smtp-Source: ABdhPJz5J898rbJt2b/JYr8/ttp17gHlxND3qFqyuUuTAxov+1Wlf2i45y1XwdmCNA/8Po3f954r0w== X-Received: by 2002:a63:2fc7:0:b0:381:15fb:3072 with SMTP id v190-20020a632fc7000000b0038115fb3072mr11635098pgv.340.1647231474609; Sun, 13 Mar 2022 21:17:54 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Mar 2022 21:17:54 -0700 (PDT) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Mon, 14 Mar 2022 14:17:26 +1000 Message-Id: <20220314041735.542867-7-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220314041735.542867-1-npiggin@gmail.com> References: <20220314041735.542867-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 05/14] gdbserver: use standard compatibility test calls 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" Signed-off-by: Nicholas Piggin --- src/pdbgproxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pdbgproxy.c b/src/pdbgproxy.c index 5a8b5f9..906ed2f 100644 --- a/src/pdbgproxy.c +++ b/src/pdbgproxy.c @@ -532,8 +532,8 @@ static int gdbserver(uint16_t port) // // Temporary until I can get this working a bit smoother on p9 - if (strcmp(thread->compatible, "ibm,power8-thread")) { - PR_ERROR("GDBSERVER is only tested on POWER8\n"); + if (!pdbg_target_compatible(thread, "ibm,power8-thread")) { + PR_ERROR("GDBSERVER is only available on POWER8\n"); return -1; }