From patchwork Wed May 20 14:05:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 186985 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp654115ilb; Wed, 20 May 2020 07:11:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXaqMBY+NfY57fHWkMJKYT+31EmCNI0xGkpl8lxeYEfOk8I4jg4T+k3X+E848vboG1sfFu X-Received: by 2002:aed:2a11:: with SMTP id c17mr5377918qtd.178.1589983863751; Wed, 20 May 2020 07:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589983863; cv=none; d=google.com; s=arc-20160816; b=Pi91YrTtJhFAF4/qcYoTD4yHsKHSkoasHaEUZ3aUhqJpZ+ng4ZQN04tx9LanWG8f1s HbznhGD/fxF8tZVCFNUC4m591P47S4NBFU3g6dUzHmSJzGbA1ZbcEa2LvY0UmBjZF01O xYKuTK87CQTs4Qg0op78JAACHTi9yqVsieowUPpPgZmwaKhkqhmfTqhDzzvbOLu2l541 ykpxjA55waElctq3p3ZGlr5q/q3z/NlblCZ6DClM3hIXHIuahe7VH4CqaOJ6ePBYcYKF vwoBoaiGW7MaslCbWljmZmAIhekM9/cCQbjh2aDhmp5CWJqJ0Axn2IVyifkpGlaU09kA K0sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=sKR6q5Rw9VEFb3A0dJqchg5Eh5EneIbh7z8JPrBYd9A=; b=Mv1M6J2RS2xuLhQsstJbmmK3Oq4bbGFZQnuR/2n3cG/YLk8qZ/owV5YdNdtIBsc0Ux g12txYH4pLosycJRg6H71g3Rpv95ErollnILSh+yuW8r6AGtdwv+UROoG6XFVvD6x/B2 RSYgDZH3BUE6xgHVShaMV4fphTQNZX1f22tn3LAS90nV4DSesL45wcaBh13fwSaLkPtE Wzg1djPQsEWzn6zyrjQOtGJsAcxkHCfegdP/7qMdD8RFu7us1w9QteQtq/sWz7bNsVg6 ttLDll+oQ/QCGoA45PBirkwJOd9eJrgLViwOJfdaHgz9PWiaXd/jr3OzIasuEN5QMJCp QtKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Px0ECHj9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w29si892787qkw.325.2020.05.20.07.11.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 May 2020 07:11:03 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Px0ECHj9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbPR1-0007Kj-9L for patch@linaro.org; Wed, 20 May 2020 10:11:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbPM5-0000Aw-Mh for qemu-devel@nongnu.org; Wed, 20 May 2020 10:05:57 -0400 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]:43045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbPM4-0001z9-0o for qemu-devel@nongnu.org; Wed, 20 May 2020 10:05:57 -0400 Received: by mail-ed1-x544.google.com with SMTP id g9so3163979edw.10 for ; Wed, 20 May 2020 07:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sKR6q5Rw9VEFb3A0dJqchg5Eh5EneIbh7z8JPrBYd9A=; b=Px0ECHj9eowUQxmO4+i+eHa76wcPHGUG4sI98PHR+lxiuyvOlZPwizeOIZZlSdQ69u TmXOTKm+Ajw/NZ0zzXagykvbQ1gryE35h17wsKCbXal7Zy7U8ttt3NlNS5HphgGaSvqb CYYwsQo3skGaqF62R6VBu3NREu7EGCznLoj3J5GxGozx1ZRMWwsslp4eYkzQRaUb+6kz V5NBJCjE992qvhFjW9Te8W6N1EXU8qb3OgowVOijudUCkPofIwrclH9E6/NPDlSXu6Vs VyQRXZI/OOR+SiEK2ZsiyhnR6Hi7QwyAcTUFWehBwaf++O1CyMszL4hTpVlELN+THMfb a0Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sKR6q5Rw9VEFb3A0dJqchg5Eh5EneIbh7z8JPrBYd9A=; b=JzntNJLN6J/ehHV6QBeSbZw74xxWC2O/olNAVpwHGwofep05JtnSIu7NqgBIZxKxuI FUTW3TAJ3LRIcrfQY6EKPGRAtzDSm16Jt/po/kET2QLvQYS/6p2T896sQPFHG8IIcNJO bhF+IUb+R02lOn9g9aJPynmVbk7sozy3KKtM/7mFSwb4UCuiO52cNj7Cqdi2Wg5sFFfl OXZs+AX9jT9EgznMSxbQvjyK8YNHEEY6vXh4Stf8DVSMeB7JhwkCDStxFs5dgE5qxJ0q i++5f7Jd+p1l2zEYW8ZOIdEBdGSo7NnSrHvn6RMr26thLB6wAenHqzV1hIqBFRqMu6gG jq+g== X-Gm-Message-State: AOAM531KQhb584ihNGr/wx8PO7BV0UtVOtkcC/GSWj7ImxEVIQ7Qa6rZ DH1ykJrGuXCC9LW74JODYlufPNx4PaI= X-Received: by 2002:aa7:d590:: with SMTP id r16mr1627020edq.304.1589983554663; Wed, 20 May 2020 07:05:54 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id x8sm1998151edj.53.2020.05.20.07.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 07:05:49 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CBB751FF93; Wed, 20 May 2020 15:05:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 07/15] tests/tcg: better detect confused gdb which can't connect Date: Wed, 20 May 2020 15:05:33 +0100 Message-Id: <20200520140541.30256-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200520140541.30256-1-alex.bennee@linaro.org> References: <20200520140541.30256-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::544; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x544.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" While we may gamely give the right information it can still confuse the wide range of GDBs out there. For example ppc64abi32-linux-user reports: warning: Selected architecture powerpc:common is not compatible with reported target architecture powerpc:common64 warning: Architecture rejected target-supplied description but still connects. Add a test for a 0 pc and exit early if that is the case. This may actually be a bug we need to fix? Signed-off-by: Alex Bennée Cc: Richard Henderson --- tests/tcg/multiarch/gdbstub/sha1.py | 4 ++++ 1 file changed, 4 insertions(+) -- 2.20.1 Reviewed-by: Richard Henderson diff --git a/tests/tcg/multiarch/gdbstub/sha1.py b/tests/tcg/multiarch/gdbstub/sha1.py index 734553b98bb..2bfde49633c 100644 --- a/tests/tcg/multiarch/gdbstub/sha1.py +++ b/tests/tcg/multiarch/gdbstub/sha1.py @@ -65,6 +65,10 @@ except (gdb.error, AttributeError): print("SKIPPING (not connected)", file=sys.stderr) exit(0) +if gdb.parse_and_eval('$pc') == 0: + print("SKIP: PC not set") + exit(0) + try: # These are not very useful in scripts gdb.execute("set pagination off")