From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QVSZJ+nN82oPrwAAWB0awg (envelope-from ) for ; Tue, 10 Nov 2026 21:07:37 -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=vi2T+JRP; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 8E80C378002; Tue, 10 Nov 2026 21:07:37 -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 5DBB51E06A for ; Tue, 10 Nov 2026 21:07:36 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7ADC14BA7987 for ; Wed, 11 Nov 2026 02:07:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7ADC14BA7987 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=vi2T+JRP Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 4442F4BA2E25 for ; Wed, 11 Nov 2026 02:07:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4442F4BA2E25 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 4442F4BA2E25 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794362820; cv=none; b=Xzvh1T5n6q6R+FLJw1EJxTuMLvvz1gjNWBVJzyDM9bci7UjUPfH3YP9yo5hXBv9JgqvicL9TViBmQMIVaifX1u+QOGFUI2wVxfxdhNTlvqthkMG6B9RN6cJPaf54g+48NisUSyNCap85iGmYcKF/SYy0gycmRfpV3/JQBehcO+I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794362820; c=relaxed/simple; bh=WIY7zJzVeTrNwqedSDYyQDCkOg9zmN+GJiEibMKZNgc=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=BHAsY1naIEoqY5RTMcjDXZQBOsHuU6I5rWxF/K26dQsyOO2UxDnWjza0vd4/XN1Y/cpsR55jMMS1axLmeMIt00u+wPuKCjwDMK+clIyV9rB3v2PKfo8pdTHAEeVknKnEI1+6+892ts/PRZqP7Q1LCObvnTavDIY97LWQgianA4M= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=vi2T+JRP reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4442F4BA2E25 Received: from eig-obgw-5007b.ext.cloudfilter.net ([10.0.29.167]) by cmsmtp with ESMTPS id QtuJxEkUlOOJnQxjmxLPXE; Wed, 11 Nov 2026 02:06:58 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id Qxjlxhgd2xqjjQxjlxtTdS; Wed, 11 Nov 2026 02:06:57 +0000 X-Authority-Analysis: v=2.4 cv=bZxrUPPB c=1 sm=1 tr=0 ts=6af3cdc1 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=E6KDHVrzJh-bYHpa30gA: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-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CEtdNtZIipo/ctiQReIS8jMUQxV0iF5YKfB5/f+aPzs=; b=vi2T+JRPryUGDEKs3yxrAwJZfd G4bxcy2TWDLbZbwNkFDTN0gba3XFXTwafZcKNk/kjV2iVcOY8/9qEOf+WCyR7QMVvPpC/e4gROwZi S2kX52tcPHztv08ihL1akiQPZ; Received: from 97-122-110-129.hlrn.qwest.net ([97.122.110.129]:38316 helo=[192.168.122.1]) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xQxjl-00000000IPM-05pR; Tue, 10 Nov 2026 19:06:57 -0700 From: Tom Tromey Subject: [PATCH 0/5] Minor updates to program space and setting the exec file Date: Tue, 10 Nov 2026 19:06:54 -0700 Message-Id: <20261110-minor-assert-v1-0-bb33660ca557@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAL7N82oC/x3MwQrCMAyA4VcZORtsy2jFVxEP2ZZtOSyVZIgw9 u5Wj9/h/w9wNmGHe3eA8VtcqjbESwfjSrowytQMKaQcYwy4iVZD8tbtWPKcS07xVvoALXkZz/L 57x7P5oGccTDScf1Nqskiet3IdzY4zy8j5aWmfgAAAA== X-Change-ID: 20261110-minor-assert-76f676218740 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.122.110.129 X-Source-L: No X-Exim-ID: 1xQxjl-00000000IPM-05pR X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-129.hlrn.qwest.net ([192.168.122.1]) [97.122.110.129]:38316 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfPW4vHfwNrJC1MxR7PI2psVAJ5zntylmcKvSky81M5Dx7vCliqqZGo6Z8L6LSSYzehJYNNrdjXKOmPdZZx7Q9b8widQTFcJUiviMRBO5oWsvZC7oLR1X Q8CVfgdE90uztiIRmzcb34B4Jgx6aaKNJquKNEGc5c8R0qB+JH1Wp5Uo6M3AtkFXsSSAxzIBmba2s9/kP/qH9GTuNkpslXs2PSw= 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 I was looking into some program space logic recently and ran across a few minor things that could be improved. Regression tested on x86-64 Fedora 40. Signed-off-by: Tom Tromey --- Tom Tromey (5): Reject null pointers in program_space::set_exec_bfd Hoist call to gdb_bfd_check_format_matches in exec.c Have program_space::set_exec_bfd do more work Mark two program_space fields as private Add some uses of bool to progspace and exec_file_attach gdb/breakpoint.c | 4 ++-- gdb/corefile.c | 4 ++-- gdb/exec.c | 54 ++++++++++++++++++++++-------------------------------- gdb/infrun.c | 2 +- gdb/progspace.c | 26 ++++++++++++++++++++------ gdb/progspace.h | 35 ++++++++++++++++++----------------- gdb/source-cache.c | 2 +- 7 files changed, 66 insertions(+), 61 deletions(-) --- base-commit: da76bc467dcfaf1df603b3e2bf9e50c6a3ceae2c change-id: 20261110-minor-assert-76f676218740 Best regards, -- Tom Tromey