From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kb1iCV6Tj2luvzkAWB0awg (envelope-from ) for ; Fri, 13 Feb 2026 16:10:54 -0500 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=H6ROzrvH; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 222851E0DD; Fri, 13 Feb 2026 16:10:54 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no 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 7C37F1E08D for ; Fri, 13 Feb 2026 16:10:53 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 0DDE84BAD160 for ; Fri, 13 Feb 2026 21:10:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0DDE84BAD160 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=H6ROzrvH Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 3DA2C4B9DB66 for ; Fri, 13 Feb 2026 21:09:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3DA2C4B9DB66 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 3DA2C4B9DB66 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771016985; cv=none; b=AbFjaeM+RN7V9vJ/S3mPnIfMxkNnWaFj/dveDw/XGF8M+8mkKBCsAtX20KSwbZI+2S31jdL9XG0QI2KOm/sGvefD81e1MtzzJtN3RyVtf9s4dk77Z6QCearIiZa29cg4xQ2eA1W9iF543o+VPj0GaPbDxgCHzdbS9WNfI0CBUJE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771016985; c=relaxed/simple; bh=10wCZcDXtIi8Coi1COiov+AfgeoQDdD2tsm/+McIbCk=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=B3tpYOrjAkuAp2j1AYMauDp7NZ78TFgMrYylrpUWtNm3kb2k/2CQ/FeCj3sJbaerfYujG1ckc2V7jz4VU6z2imCG06tAoLGvdrHXDxYgWEbvAHcICV94ukQzuIut27s+6CSLEhiQGB0Qb8rt5RPIDgW4Xu+BgalcJeCquYMM9cE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DA2C4B9DB66 Received: from eig-obgw-6004b.ext.cloudfilter.net ([10.0.30.210]) by cmsmtp with ESMTPS id qXEhvcgagSkcfr0Q4vfpsL; Fri, 13 Feb 2026 21:09:45 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id r0Q3vijSjK8vzr0Q4vLnw6; Fri, 13 Feb 2026 21:09:44 +0000 X-Authority-Analysis: v=2.4 cv=cJDgskeN c=1 sm=1 tr=0 ts=698f9318 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=gl0PSmn-2hTdAGw1UDQA:9 a=QEXdDO2ut3YA:10 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=Cc:To:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7WF8M/WD3XWMG5KiYk6IiY4h0uOh2c6/3lsACLl9v5g=; b=H6ROzrvH/zFgsdv4Bma68qgsQs K2lu2IVmj6mRKT9lIfnfRKuNaMQG25nf8HFZma2gnTZxyDeQkU8XvDxnJ+WmdMDoiC33XjCiZHdyN QWLbkuVyPRJncYbJmGCwZsmUJ; Received: from 97-118-49-200.hlrn.qwest.net ([97.118.49.200]:47424 helo=[192.168.122.1]) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vr0Q3-00000003pCY-2iEt; Fri, 13 Feb 2026 14:09:43 -0700 From: Tom Tromey Subject: [PATCH 0/3] Change some functions to methods of program_space Date: Fri, 13 Feb 2026 14:09:40 -0700 Message-Id: <20260213-random-methods-v1-0-59bdac57c3e1@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABWTj2kC/x3MPQ6DMAxA4asgz7UaAqI/V0EdAjbEQ5LKRlUlx N0bOn7DezsYq7DBs9lB+SMmJVe0lwbmGPLKKFQN3vnB+bZDDZlKwsRbLGTol0c/+N7R7U5Qo7f yIt//cHxVT8EYpxrN8dwUlVXyNQXbWOE4fpNRfOWAAAAA X-Change-ID: 20260213-random-methods-2f946240d78d To: gdb-patches@sourceware.org Cc: Tom Tromey X-Mailer: b4 0.14.3 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: 97.118.49.200 X-Source-L: No X-Exim-ID: 1vr0Q3-00000003pCY-2iEt X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-118-49-200.hlrn.qwest.net ([192.168.122.1]) [97.118.49.200]:47424 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfD8sEE99bgA6pKvMiiiOmlTl4ucz9SOkXGjQ5nf0hyAXHKjHv3kkfYWn9sJYt01YC6zi5rgZrLdBf3PfF2DzFwlmKAgBgBqUhJFh+ldnmXtO5+rr/gOu y5/no4i9cLyLoULLGpjmYlvtv+PE98KZqnmujzjjiLFs5pPWZLyMdTyyAdWWoB6WCisY9ssi6FNOv1ijrxL3TYzZjTdg3D/iHW4= 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 This changes a few functions to become methods of program_space. It also moves them to progspace.[ch], where they belong. Regression tested on x86-64 Fedora 40. Signed-off-by: Tom Tromey --- Tom Tromey (3): Move entry point functions to program_space Use std::optional in entry_point_address_query Change have_*_symbols functions to methods of program_space gdb/ada-exp.y | 4 ++-- gdb/arc-tdep.c | 2 +- gdb/arch-utils.c | 2 +- gdb/c-exp.y | 4 ++-- gdb/cli/cli-cmds.c | 4 ++-- gdb/d-exp.y | 4 ++-- gdb/frame.c | 8 +++---- gdb/go-exp.y | 4 ++-- gdb/infcall.c | 2 +- gdb/linespec.c | 10 ++++---- gdb/objfiles.c | 65 ---------------------------------------------------- gdb/objfiles.h | 22 ------------------ gdb/p-exp.y | 4 ++-- gdb/parse.c | 4 ++-- gdb/progspace.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ gdb/progspace.h | 20 ++++++++++++++++ gdb/solib-frv.c | 9 ++++---- gdb/source.c | 4 ++-- gdb/symfile.c | 8 +++---- gdb/symtab.c | 8 +++---- gdb/tui/tui-disasm.c | 4 ++-- 21 files changed, 125 insertions(+), 129 deletions(-) --- base-commit: 51b7445c65ff06a6d9740fc635be73287527a0a5 change-id: 20260213-random-methods-2f946240d78d Best regards, -- Tom Tromey