From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id E082338768BB for ; Fri, 30 Jun 2023 15:54:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E082338768BB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688140458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Tc8aCr2tDRLcMaJeQhRwPyUs0f+sB/w+yRb21WppY90=; b=TIyrCinOyo1Dw9qVIFx6eqoh6W1lAFXkVdrLHI/5stV7VVjVOJdBMIMflDyGk4+67tWIOu 5AGWRibbLepXr0LacnQ6b4uU+Eoy5FSURKupO44DLc2EZCiTDyU6nIlMMbFSg+LAQXnJPu nxAK0oqpxtLz64RUT9MnYF7wi2lVMrM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-235-tsA3keabPyuItEQ3WZbyXg-1; Fri, 30 Jun 2023 11:54:15 -0400 X-MC-Unique: tsA3keabPyuItEQ3WZbyXg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D5BC38C41C0 for ; Fri, 30 Jun 2023 15:54:14 +0000 (UTC) Received: from t14s.localdomain.com (unknown [10.22.18.231]) by smtp.corp.redhat.com (Postfix) with ESMTP id B2AEA14682FA; Fri, 30 Jun 2023 15:54:14 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [pushed 2/2] jit.exp: handle dwarf version mismatch in jit-check-debug-info [PR110466] Date: Fri, 30 Jun 2023 11:54:09 -0400 Message-Id: <20230630155409.183039-2-dmalcolm@redhat.com> In-Reply-To: <20230630155409.183039-1-dmalcolm@redhat.com> References: <20230630155409.183039-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Successfully regrtested on x86_64-pc-linux-gnu. Verified fix on powerpc64le-unknown-linux-gnu (gcc112 in Compile Farm). Pushed to trunk as r14-2223-gc3c0ba5436170e. gcc/testsuite/ChangeLog: PR jit/110466 * jit.dg/jit.exp (jit-check-debug-info): Gracefully handle too early versions of gdb that don't support our dwarf version, via "unsupported". --- gcc/testsuite/jit.dg/jit.exp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/testsuite/jit.dg/jit.exp b/gcc/testsuite/jit.dg/jit.exp index 3568dbb9d63..8bf7e51c24f 100644 --- a/gcc/testsuite/jit.dg/jit.exp +++ b/gcc/testsuite/jit.dg/jit.exp @@ -440,6 +440,10 @@ proc jit-check-debug-info { obj_file cmds match } { send $cmd } expect { + -re "Dwarf Error: wrong version in compilation unit header" { + set testcase [testname-for-summary] + unsupported "$testcase: gdb does not support dwarf version" + } -re $match { pass OK } default { fail FAIL } } -- 2.26.3