From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +a+yFe5v8GeiGycAWB0awg (envelope-from ) for ; Fri, 04 Apr 2025 19:49:02 -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=gDjXB3Gp; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4AE741E0C3; Fri, 4 Apr 2025 19:49:02 -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 E653E1E0C0 for ; Fri, 4 Apr 2025 19:49:01 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 90B78384A449 for ; Fri, 4 Apr 2025 23:49:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90B78384A449 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=gDjXB3Gp Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id AB94B3856DEE for ; Fri, 4 Apr 2025 23:44:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AB94B3856DEE 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 AB94B3856DEE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1743810242; cv=none; b=ODGqLBPltTfKETj6E3H27pDaO7Fgz5XLSPX1CMqnRc/7AWri70zEhwY5gTaC8Uj2IYGUiS5aAiLuz7B8IRVO2Vb6szAmOmRA/9UDJLmlivYoyg1NdlAsKxnw11jNgFRG9q2CnpEQTvZykCMCDxvOVZFQu72/x8WlzckuOKKItH4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1743810242; c=relaxed/simple; bh=9Ij196EZKbRhDH19GNXVOgR44hKEz7FggHIPgKGIpAU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=LpjYFQj99ISLTGtSmyvXn9L8YpzNxCntJRIkaMF/h76x+sdrUCWEOu8R2Q91DPm+XjXR+8VGlgICKsjmx62LY1LSz8ztzXTLny6bKd2/WhB0j8v3X9lQofobJHXzZjnNDfSbpWMy6/0i1gs5utBLQoKv920PuZpjip5Xm2CGfv0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB94B3856DEE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743810242; 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=8L/+8sJ7AWCWw2UK7uM8TVHWOEa/y+3orDbN4QcPDiI=; b=gDjXB3Gpm5U9drCL1CVbBhjyTvORBx0/so3nkISVkGi47C7bpdZ9/wYH7fGbQmaiWJdmZO t7PedvQFx6R1EY2acyTtwb5GDONg0bJlJEGoS5RXGgoe24YiCmMRvAZLcRyspqs0eNwpfl apeEdWa9s2mLE3OsAL0+6Jp5F7jC5r8= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-280-MPTH6BlEOcWrmQUJd-lVHQ-1; Fri, 04 Apr 2025 19:44:01 -0400 X-MC-Unique: MPTH6BlEOcWrmQUJd-lVHQ-1 X-Mimecast-MFC-AGG-ID: MPTH6BlEOcWrmQUJd-lVHQ_1743810240 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 504D21800259 for ; Fri, 4 Apr 2025 23:44:00 +0000 (UTC) Received: from f42-1.lan (unknown [10.22.88.7]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5BB331955BC2; Fri, 4 Apr 2025 23:43:59 +0000 (UTC) From: Kevin Buettner To: gdb-patches@sourceware.org Cc: Kevin Buettner Subject: [PATCH v6 02/11] Allow TLS access to work in gdb.server/no-thread-db.exp Date: Fri, 4 Apr 2025 16:37:33 -0700 Message-ID: <20250404234324.1931302-3-kevinb@redhat.com> In-Reply-To: <20250404234324.1931302-1-kevinb@redhat.com> References: <20250404234324.1931302-1-kevinb@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: gIbV3QW7sepjxGQ_hp4wvc4fTPhyEYcK5LsS5pqZxHs_1743810240 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 656fad1a560..baad81b0f8e 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.48.1