From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id SaNnJanj8GkEVAEAWB0awg (envelope-from ) for ; Tue, 28 Apr 2026 12:43:21 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=RKmdSx26; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 94CEE1E0BA; Tue, 28 Apr 2026 12:43:21 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,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 EC1341E067 for ; Tue, 28 Apr 2026 12:43:20 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 8C1354BA2E21 for ; Tue, 28 Apr 2026 16:43:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C1354BA2E21 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=RKmdSx26 Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id 74EB44BA902B for ; Tue, 28 Apr 2026 16:42:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 74EB44BA902B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 74EB44BA902B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777394575; cv=none; b=Sx4U64bhdRmUihI82XJgy3DJa7jyf3h6eISBkzzah+z+o0/koF7FARBwofO25mnb6qh54jZ5BwWq9pekArs5YOM/sAxy6Hu/DlyMypETaZD2RpylRrQhZ8qzWj49+VbMcsedMiDQhOk+hy+77uvgHYmQXdviYYlb9PONuNONZqQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777394575; c=relaxed/simple; bh=zfP65QdchNtN1ijpnlOAeBL7wf+Nm4rPSEeclDhmrVs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=JusMFpMkU/CzQDZ+qoB/q7j5+op5C3ko02DLgSXNeKFbLnWMy7M1+zw0fUnrVg0vU4xUMvE+1eaRI1or9gLsBAfU3yM4resC0FU88r5QZ1Mq44c/uovbzXTaXFyjE1KJ4kxETSk952Oz7OCiZUSSqxBeyEIlDYrRHlWxvZ32YN4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74EB44BA902B Received: from eig-obgw-5004b.ext.cloudfilter.net ([10.0.29.208]) by cmsmtp with ESMTPS id HhhVwv8O7jw8YHlWQw3VD3; Tue, 28 Apr 2026 16:42:54 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id HlWLwkRKIraqeHlWLwybSd; Tue, 28 Apr 2026 16:42:49 +0000 X-Authority-Analysis: v=2.4 cv=UNPdHDfy c=1 sm=1 tr=0 ts=69f0e38e a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=A5OVakUREuEA:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=7d_E57ReAAAA:8 a=zstS-IiYAAAA:8 a=6sCGXE6jvhO5gDfI7vkA:9 a=ul9cdbp4aOFLsgKbc677:22 a=jhqOcbufqs7Y1TYCrUUU:22 a=4G6NA9xxw8l3yy4pmD5M:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zfP65QdchNtN1ijpnlOAeBL7wf+Nm4rPSEeclDhmrVs=; b=RKmdSx26348qvIGLbVnAeZc8yl 9orywyJP0Eeg/b52PlIVs+nRK/VMkTpzAuX3U9F8s1eoqIHt2DwbLypYK++5MVmgEsd317762sb+T HdOiSfWRTaTjZReY7L+wVAJs1; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:40154 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wHlWK-00000003psy-32zc; Tue, 28 Apr 2026 10:42:48 -0600 From: Tom Tromey To: Simon Marchi Cc: gdb-patches@sourceware.org, Simon Marchi Subject: Re: [PATCH 10/11] gdb: change default objfile iteration order to start with current objfile In-Reply-To: <20251209193610.296085-11-simon.marchi@efficios.com> (Simon Marchi's message of "Tue, 9 Dec 2025 14:32:14 -0500") References: <20251209193610.296085-1-simon.marchi@efficios.com> <20251209193610.296085-11-simon.marchi@efficios.com> X-Attribution: Tom Date: Tue, 28 Apr 2026 10:42:47 -0600 Message-ID: <87jytrkpdk.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wHlWK-00000003psy-32zc X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:40154 X-Source-Auth: tom+tromey.com X-Email-Count: 21 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfHCc0wsA9IBtSYnM7tN3rNwpPJvm5NQ/DR87Jxijvr3Qffaw4P0EJEf48ZEqY9hUA9EejkQbhY4hh8lHHFj7uGwauLzbpF3DkXIztOU3AR0k2F3NQZOH qmg2uQRyWLkcJVJxYC4yz0LFk63wMu5mUeUgG9yi+EDnbFb8SB2W+EDYM028ijGWjJTsWtvraZnjyLahQT6o5FP9+oRQpx+V2yA= 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 >>>>> "Simon" == Simon Marchi writes: Simon> The current default objfile search strategy, defined both in Simon> solib_ops::iterate_over_objfiles_in_search_order (when the solib_ops Simon> hasn't overridden it) and in Simon> program_space::iterate_over_objfiles_in_search_order (when there is no Simon> solib_ops in the program space, for some reason), is to scan the objfile Simon> list linearly. I think this is https://sourceware.org/bugzilla/show_bug.cgi?id=17003 Simon> Intuitively, searching the current objfile first makes sense, unless Simon> there is some fancy symbol interposition happening, in which case that Simon> solib_ops should probably implement a custom Simon> iterate_over_objfiles_in_search_order. Agreed. Approved-By: Tom Tromey Tom