From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6EEFNcjWCWjV0QIAWB0awg (envelope-from ) for ; Thu, 24 Apr 2025 02:14:32 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=OX2//tlC; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D66221E0C3; Thu, 24 Apr 2025 02:14:32 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 8C5931E0C0 for ; Thu, 24 Apr 2025 02:14:32 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 40D263857BB6 for ; Thu, 24 Apr 2025 06:14:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 40D263857BB6 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=OX2//tlC Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 4C4BC3857823 for ; Thu, 24 Apr 2025 06:09:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4C4BC3857823 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4C4BC3857823 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745474961; cv=none; b=Jq5mda+w3zPPwdrKAwVrS/2KIuccc4B7El0ylGHbN2xlsT1i9vAfthgbFfulyfc4otoOi3GnEAGbUg2BYtgE7tl869Nu2eKmmuqKGphvrIbMQRBxyx7cdmSfXA8DvjZbf+lKl6vahxvYgSDMiPN0gGWU6mN4OAnIxRVQyr47Lxs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745474961; c=relaxed/simple; bh=nF94Pws21GE4dQKlXgdapISk4jgYlQwBlgucLiMNtWk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=tJDphNaN4IahP+NtZipBDRDv1PjIWZwngU3f0nM1F62x2UofE8YNa+s/9zqg6nFMQLTAjn9B78sU69TlgXkK5gN7uEWftB7CoC6yIN98AoBC1rQ6GG6q3KpJtUG/QWoo0nRwldNhOxJs0lmWVX0UIftvS7S3N0AfXRATuGf2U4I= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C4BC3857823 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1745474961; 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=VObWeKxJTQK0hd2VfOhBRgul9m6W4dBC7DBBsQVaWOU=; b=OX2//tlC1NIrmKkZmNyTEtJJeiBy4N/15R64OQAvyt9HhuS3HdVQakGsLLBBUuZCBnJyXS RT4GXNXXD7DKKLOwdKc70h+u2Q/XYn5PEm7fpGCTiTWp30E0e9iMShSEqZ63UXcfT+qEzR Ak1YFeh41ueFdJP8eCxDddTDmvisWpo= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-507-8ZCmcekgMFWuijd3AeguwQ-1; Thu, 24 Apr 2025 02:09:19 -0400 X-MC-Unique: 8ZCmcekgMFWuijd3AeguwQ-1 X-Mimecast-MFC-AGG-ID: 8ZCmcekgMFWuijd3AeguwQ_1745474958 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (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 mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5921019560B2 for ; Thu, 24 Apr 2025 06:09:18 +0000 (UTC) Received: from f42-1.lan (unknown [10.22.80.67]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8611719560A3; Thu, 24 Apr 2025 06:09:17 +0000 (UTC) From: Kevin Buettner To: gdb-patches@sourceware.org Cc: Kevin Buettner Subject: [PATCH v7 02/11] Allow TLS access to work in gdb.server/no-thread-db.exp Date: Wed, 23 Apr 2025 23:03:47 -0700 Message-ID: <20250424060852.3299179-3-kevinb@redhat.com> In-Reply-To: <20250424060852.3299179-1-kevinb@redhat.com> References: <20250424060852.3299179-1-kevinb@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: hbdxtvR0FCzkIyUZ9umigZJ8jsNyMDMRIOb7g_N3gTc_1745474958 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org The patches later in the series add GDB-internal TLS support for certain targets. This commit updates the "print foo" test in gdb.server/no-thread-db.exp to accept either a TLS failure (when libthread_db isn't available) or printing the correct answer, which will occur when GDB's internal TLS address resolution can be used. I'm making this change prior to the commits which actually add the GDB-internal TLS support in order to avoid tripping regression testers. --- gdb/testsuite/gdb.server/no-thread-db.exp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.server/no-thread-db.exp b/gdb/testsuite/gdb.server/no-thread-db.exp index cc2470834ba..9fd209030b5 100644 --- a/gdb/testsuite/gdb.server/no-thread-db.exp +++ b/gdb/testsuite/gdb.server/no-thread-db.exp @@ -57,6 +57,8 @@ gdb_breakpoint ${srcfile}:[gdb_get_line_number "after tls assignment"] gdb_continue_to_breakpoint "after tls assignment" # Printing a tls variable should fail gracefully without a libthread_db. +# Alternately, the correct answer might be printed due GDB's internal +# TLS support for some targets. set re_exec "\[^\r\n\]*[file tail $binfile]" gdb_test "print foo" \ - "Cannot find thread-local storage for Thread \[^,\]+, executable file $re_exec:\[\r\n\]+Remote target failed to process qGetTLSAddr request" + "= 1|(?:Cannot find thread-local storage for Thread \[^,\]+, executable file $re_exec:\[\r\n\]+Remote target failed to process qGetTLSAddr request)" -- 2.49.0