From patchwork Mon Mar 14 04:17:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1604892 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=jtuhzMSA; 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 4KH3Dd1fYqz9sG2 for ; Mon, 14 Mar 2022 15:18:09 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KH3Dd0Zztz30NB 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=jtuhzMSA; 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::434; helo=mail-pf1-x434.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=jtuhzMSA; dkim-atps=neutral Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) (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 4KH3DL6GPpz2xY3 for ; Mon, 14 Mar 2022 15:17:54 +1100 (AEDT) Received: by mail-pf1-x434.google.com with SMTP id h2so9186001pfh.6 for ; Sun, 13 Mar 2022 21:17:54 -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=jtuhzMSAoYYk7V+xn7OaP61vxoqynWQrLPCj2ggWfo8ZdykHpVrE6hsQo4H4k9ddRT 9H34Ckpk9QCDMpvyYuscZsvaPP5G79RXHm9+rxCFN/IkJTT+/orlA00MbHHjS3ijzX8x 8PuwPLdwIBHsh8kboQjg8Q90zybTmqbqCSb31zdYojjFyXQwnI9E86ZYSdOQPRze+aeV 7F/+zOmmRFdO4f1AU6UMovHxqrPL0Fp0UiIb7VuAjyv9cpfhvO8AQYTcEskwchPOTujo b4e3B8+VRieBI0CQNT6dj8YPKeAVPgRg5vbT/i9XlGCf5OMuDD/N6H+uTWm7jPHS/0UD xghQ== 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=aFDf32DTb4u10d9Mc3MJISBsiwOVbVC8UyRMlm5l1akXFho7afvHYNM3No6RoNaHRw EEUiGJKk4aAHqfhQ3Kc+H/QgBmCszJ0htpxFrDJ4Hc1DymuT9eDhLTSHa1unhqfXz7O2 39E2Lixp805h7+czfpErFKJuoEo2iz1WPDI5U8LDrjGKlkwUnIHB69MKfBXt91QeDEOY lF0kdJzpuQ7zAp8zF7OykAa0/usO3ICU7nA2JvHaCNLg/J5APXXZfcUHUAHG9M7j6lXw jxb4PgLgnZKUoILCUQR98N70Zij7Wvput/RFGs1cyNL2YBAmNhqLuRG0v4Bpoj8Dk291 MNAA== X-Gm-Message-State: AOAM531npsLmN7yjAMF9DA0nTn8k/u28adXI/CPwr0Qr4fL7Qj/SocK3 /DyR+aRVxFBxfiCYcBNkIr6pfEEJiso= X-Google-Smtp-Source: ABdhPJyZTkH4lJtqDFda8hTaly2X8aRSeE+f1TjS+VKCsxBeyeQL1zm3LKCGpbawpSbr0vpwnRExwQ== X-Received: by 2002:a65:654f:0:b0:378:b8f6:ebe4 with SMTP id a15-20020a65654f000000b00378b8f6ebe4mr18272406pgw.399.1647231472711; Sun, 13 Mar 2022 21:17:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Mar 2022 21:17:52 -0700 (PDT) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Mon, 14 Mar 2022 14:17:25 +1000 Message-Id: <20220314041735.542867-6-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] gdbclient: 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; }