From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id FOp4OenN82oOsAAAWB0awg (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=kOwFZtVf; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C73DB1E043; 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 4D6C61E043 for ; Tue, 10 Nov 2026 21:07:34 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7106B4BA798E for ; Wed, 11 Nov 2026 02:07:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7106B4BA798E 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=kOwFZtVf Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 2E66D4BA2E28 for ; Wed, 11 Nov 2026 02:07:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2E66D4BA2E28 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 2E66D4BA2E28 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794362821; cv=none; b=l6pAeWYXe1dVcV4yP67RfKxp5LkAeq0Cf8Eg2pGz77ijOElwo2HV5VzLqjTYeo+Y/NT7dPgLuChvI66pqr8MrRE0mh6EwxVR4LUPc3xInXUO6LdEk6hK8ZWzIzb3ZZ/hU2Xf5cq6Kb+nX6KwN4nBf+hQFJaBvbYiCcpapgQbqQA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794362821; c=relaxed/simple; bh=+Dq5B/trBi1DdDd+G6M+P576EYqn9oG2XYSyhbraMEY=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=TtKeo1VjQaBhnpTeXMqu09qnvbzxK/8Flroe6r1O6p1B99huwI1GpB+qfPOayswhuUIN8xrdArYu5FMwShkq1o/E1pOqhdsYXEskJ/LpMKfqLF8Bpe3QRy+l+n5XtDeKhoxUkmEhQnk19pocyInXINgKV3tmuQH4gI2704JFLlE= 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=kOwFZtVf reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E66D4BA2E28 Received: from eig-obgw-6002b.ext.cloudfilter.net ([10.0.30.203]) by cmsmtp with ESMTPS id Qs2Axdvw6JFmFQxjnxOlJl; Wed, 11 Nov 2026 02:06:59 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id Qxjmxv4OW8cn4QxjnxoFa0; Wed, 11 Nov 2026 02:06:59 +0000 X-Authority-Analysis: v=2.4 cv=Qrde3Uyd c=1 sm=1 tr=0 ts=6af3cdc3 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=ItBw4LHWJt0A:10 a=CuA3Be06fyQNxqukTqAA:9 a=QEXdDO2ut3YA:10 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=X8btDjMKvfXDpt4i9r8tdaaH7lmLNeklntfX2brOLcw=; b=kOwFZtVf+kr29kvMU6rA6eLJBY 1pp8IvYojam8IyWRoUMM3+wKSiuFvXv+X4uy3OAlCNdyr+ptX0wNAIirry5XfqQsCeP2T1eYGtWrb o/Vc6wxs4/utyvjYEwJ9rMeME; 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 1xQxjm-00000000IPM-2mEh; Tue, 10 Nov 2026 19:06:58 -0700 From: Tom Tromey Date: Tue, 10 Nov 2026 19:06:59 -0700 Subject: [PATCH 5/5] Add some uses of bool to progspace and exec_file_attach MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261110-minor-assert-v1-5-bb33660ca557@tromey.com> References: <20261110-minor-assert-v1-0-bb33660ca557@tromey.com> In-Reply-To: <20261110-minor-assert-v1-0-bb33660ca557@tromey.com> 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: 1xQxjm-00000000IPM-2mEh 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: 6 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfCC5W4tOpeNhLl9AgNJU/Ewo5/3+Cn8pGxxLSbBL3IRN/Db9D8/BiKnUtrRg5x6Yldoq0lpluO7XSKazxeJP/vHJcG6ygKg6uGhtvMSBmBDlFinhHElf TTwF/p2929ISu47NPtZDZTpoRlWb7Nx4e1wJcE1MfwVznzbzhu9lCEuKT99nITmIWDTXP6G9/8+dwn/AL+DRQoKWzfvoYvc2m5g= 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 the program_space fields 'executing_startup' and 'breakpoints_not_allowed' to be bool; and changes exec_file_attach to use bool. These are just some minor cleanups I noticed while working on this series. --- gdb/breakpoint.c | 4 ++-- gdb/exec.c | 4 ++-- gdb/infrun.c | 2 +- gdb/progspace.h | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index a23f5998b20..7a1be7f01f8 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -8693,14 +8693,14 @@ enable_watchpoints_after_interactive_call_stop (void) void disable_breakpoints_before_startup (void) { - current_program_space->executing_startup = 1; + current_program_space->executing_startup = true; update_global_location_list (UGLL_DONT_INSERT); } void enable_breakpoints_after_startup (void) { - current_program_space->executing_startup = 0; + current_program_space->executing_startup = false; breakpoint_re_set (); } diff --git a/gdb/exec.c b/gdb/exec.c index 000b1170145..9e5495ed953 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -400,7 +400,7 @@ exec_file_attach (const char *filename, int from_tty) } else { - int load_via_target = 0; + bool load_via_target = false; const char *scratch_pathname, *canonical_pathname; int scratch_chan; char **matching; @@ -410,7 +410,7 @@ exec_file_attach (const char *filename, int from_tty) if (target_filesystem_is_local ()) filename += strlen (TARGET_SYSROOT_PREFIX); else - load_via_target = 1; + load_via_target = true; } gdb::unique_xmalloc_ptr canonical_storage, scratch_storage; diff --git a/gdb/infrun.c b/gdb/infrun.c index 08fac30e9e8..a2ea1e39e58 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1235,7 +1235,7 @@ handle_vfork_done (thread_info *event_thread) gdb_assert (event_thread->inf->thread_waiting_for_vfork_done == event_thread); event_thread->inf->thread_waiting_for_vfork_done = nullptr; - event_thread->inf->pspace->breakpoints_not_allowed = 0; + event_thread->inf->pspace->breakpoints_not_allowed = false; /* On non-stop targets, we stopped all the inferior's threads in follow_fork, resume them now. On all-stop targets, everything that needs to be resumed diff --git a/gdb/progspace.h b/gdb/progspace.h index a5e5f0ea3f5..9b97b932eac 100644 --- a/gdb/progspace.h +++ b/gdb/progspace.h @@ -392,11 +392,11 @@ struct program_space targets, or for PIE executables, until we connect and ask the target for the final relocation offsets, the symbols we've used to set breakpoints point at the wrong addresses. */ - int executing_startup = 0; + bool executing_startup = false; /* True if no breakpoints should be inserted in this program space. */ - int breakpoints_not_allowed = 0; + bool breakpoints_not_allowed = false; /* The object file that the main symbol table was loaded from (e.g. the argument to the "symbol-file" or "file" command). */ -- 2.49.0