From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id vEdTG+rfZ2lhcwMAWB0awg (envelope-from ) for ; Wed, 14 Jan 2026 13:26:50 -0500 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=AEuZFlBl; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5DEF71E0DD; Wed, 14 Jan 2026 13:26:50 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.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,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 C03C61E08D for ; Wed, 14 Jan 2026 13:26:49 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 1F7024BA2E27 for ; Wed, 14 Jan 2026 18:26:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F7024BA2E27 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=AEuZFlBl 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 DE55F4BA2E04 for ; Wed, 14 Jan 2026 18:26:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DE55F4BA2E04 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 DE55F4BA2E04 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=1768415179; cv=none; b=j8jciK4DfSgQN2dKMwKbJMOCo+thAbgsrbs8dOkd7wr5bJATpYvBwRVCB7bxZNFRBCZraLN89OOB15DPPzRYmFU92YnZt9TUcaPX73CIvwmNmW5FKvfHWVF8RQAo2TlOMP/I0W+fsAovUR2CGkYrNdUicM9QxIbXlpb8H15YyOU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768415179; c=relaxed/simple; bh=8Hb49i8mwM8BNhGs3wK9+Jf+SUMf8H9YvQHE7vXsLGg=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=pLgxHtbdf6bCHPkXho4PtJ0T3GEWFquVDRtQX+5VX+vOdibAnPm1B9203NgqdYREPpkt0+EyOxRYMqxmj1w+pY6pkoEC9Y8enKzSCjQLVZoPzBMJVo39GCD7a9nGr0NZBnbqDKVpoHA89juYn0ofxnpKjEBHbY752DO6JAS9Om8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE55F4BA2E04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1768415178; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RkcYIMU94CQ+GaQjvkyhTJkzqJjGHbzzMLot3Ej9yk4=; b=AEuZFlBlJl/l4EdcZZXYdXTplQg5WIdHsQKeyMvpi9Y/Rn6t3TsWAPpquJSrvMguc/uwM+ 3CJtqAPoZG++bCLJCeMLKPlSrCjrabzqVqtE7g1DSUp9h9p91Q1II9AWPxBIEkYMR2CgWS 6YsTWU3sT323ontdBnHletYcv7XiEG0= 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-695-qFLymxrnO4-rrbklJe6PiQ-1; Wed, 14 Jan 2026 13:26:17 -0500 X-MC-Unique: qFLymxrnO4-rrbklJe6PiQ-1 X-Mimecast-MFC-AGG-ID: qFLymxrnO4-rrbklJe6PiQ_1768415176 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 724C218005AF for ; Wed, 14 Jan 2026 18:26:16 +0000 (UTC) Received: from f42-mesa-1 (unknown [10.22.80.42]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E1CCB1956048 for ; Wed, 14 Jan 2026 18:26:15 +0000 (UTC) Date: Wed, 14 Jan 2026 11:26:13 -0700 From: Kevin Buettner To: gdb-patches@sourceware.org Subject: Re: [PATCH] [gdb/testsuite] Speed up gdb.base/tls-dlobj.exp Message-ID: <20260114112613.39cb4e6c@f42-mesa-1> In-Reply-To: <20260110095224.4041403-1-tdevries@suse.de> References: <20260110095224.4041403-1-tdevries@suse.de> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: uRW6eBRLJBABjQauQ5PLDASENqZ1sMm1-S2Esqkpvr0_1768415176 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Sat, 10 Jan 2026 10:52:24 +0100 Tom de Vries wrote: > In test-case gdb.base/tls-dlobj.exp we use breakpoints to step through the > executable. The breakpoints are used only once, but they are permanent, > so we end up with 11 breakpoints, 10 of which of the form $srcfile:$n. > > The executable loads and unloads shared libraries, triggering solib > events in gdb, which will re-set the breakpoints. > > Setting a breakpoint of the form $srcfile:$n triggers a filename search > that iterates over all CUs in all objfiles for which we have debuginfo. > > In case glibc debuginfo is installed, and in case we have a slow gdb, for > instance because of building with -O0 and Address Sanitizer, this might > become noticeable. > > While it's a good idea to try to speed up this search (see for instance > PR33781), measuring this speed is not the point of this test-case, so fix > this by making the breakpoints temporary. > > Tested on x86_64-linux. I like this better than the earlier approach. Approved-by: Kevin Buettner