From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KI0CNNS35GrpuRYAWB0awg (envelope-from ) for ; Fri, 30 Oct 2026 11:29:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1793374164; bh=9ZOn9XmQifoiXBYY5jEvj8m6woN8b2rr7rbsoIHA2Lo=; h=Date:Subject:To:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=DaPKHSBSVhHpj+REuFERQYI68hW0pPmKLwkQgTO9cyhJ0+cOCjoJSqlhivGFMMap4 KPBuhLBBBfih/3wpuO07tEwh7shdaSthBuDQMPakkkmeAxbJLJZi3j7riyNjDD2hk1 SPzI5VuWZtpEomKUEv08tZ9iAB71BXyXKlsfvue8= Received: by simark.ca (Postfix, from userid 112) id B3AD9378002; Fri, 30 Oct 2026 11:29:24 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=Z3cQsu8p; dkim-atps=neutral Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 06AE11E023 for ; Fri, 30 Oct 2026 11:29:24 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8E65B4BA903E for ; Fri, 30 Oct 2026 15:29:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E65B4BA903E Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=Z3cQsu8p Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id D185B4BA23CB for ; Fri, 30 Oct 2026 15:29:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D185B4BA23CB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D185B4BA23CB Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793374140; cv=none; b=vlFT2lEmW1BRBClfGZeiMd36u2dfIJWCWRRnFpRk5eGhSZiHmCCN4z8DQ0Z5LbQgeKej0eiT31iethONjtJ1Fb50wl8YCWfFCg1ShM1Y6kLDjJD2cidz/ByTZAP1iDfWsvL1cb96QjQ3YLSHHWCG46xu9yNIavdU9QA/5SRMpO4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793374140; c=relaxed/simple; bh=9ZOn9XmQifoiXBYY5jEvj8m6woN8b2rr7rbsoIHA2Lo=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=uQCwQn7c64UGhI2Ky7vjlejfaQJZte1+YQxmThvZaEBXW/9P3rjXmsZ66Tty/t6mZUhzgx3upIYvKOjgMFjVys7fFwIhYLNdLFxaMLp799GrS39LCAgLik8IU2QggHEH8z9n+OMJ+9hnQ1iMc2Vx7g3lEdx7t9T21REqwHkgFYw= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=Z3cQsu8p DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D185B4BA23CB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1793374139; bh=9ZOn9XmQifoiXBYY5jEvj8m6woN8b2rr7rbsoIHA2Lo=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Z3cQsu8p9/2HEM95fVYAvDSKQVHLGhTCd9Zp0UUK+ksusAsRc0+taD+c54Ikyhn0Z mVnKABDxB/aF7SljsX1mlRr3HtxWr5xfwpfF1czp6TRvv2i5OfgLXyw0IKz2dJ43Wl jr2l+8G2X5HMcD7lonypGJnx3bdWYfwvewGMI8uI= Received: by simark.ca (Postfix) id 1B95B1E023; Fri, 30 Oct 2026 11:28:59 -0400 (EDT) Message-ID: Date: Fri, 30 Oct 2026 11:28:58 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCHv10 1/5] gdb: more 'const' in the multi-so-lib progspace code To: Andrew Burgess , gdb-patches@sourceware.org References: Content-Language: fr From: Simon Marchi In-Reply-To: Content-Type: text/plain; charset=UTF-8 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 10/29/26 6:20 AM, Andrew Burgess wrote: > This is a small tweak to some of the code added in commit: > > commit 822c4cd732ce0b6a76f5b4c3317f6aaa5dca09c6 > Date: Fri Aug 7 09:52:28 2026 -0400 > > gdb: multiple solib_ops per program space > > that makes some of the new methods more 'const'. There are two > methods that I change here program_space::solib_ops and > program_space::find_solib_ops. > > A later commit in this series needs to call the solib_ops method from > a const member function. I initially added a solib_ops overload that > was const, but then I realised none of the existing users actually > need the method to be non-const, so I figure lets just make the > existing method const, and we can add a non-const overload later, when > there's an actual need. > > For find_solib_ops this was me just looking at the 822c4cd732ce0b6a > commit again and spotting that this method could also be const. This > change isn't needed by any of my follow on commits, so this part could > be dropped if there's push back. > > There should be no user visible changes after this commit. LGTM, I think this can be pushed right away regardless of the state of the rest of the series. Approved-By: Simon Marchi Simon