From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kM3DFMSMz2oLJgkAWB0awg (envelope-from ) for ; Wed, 14 Oct 2026 10:08:04 -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=LMQLxMG6; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 38EEE1E04E; Wed, 14 Oct 2026 10:08:04 -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_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 64CC61E04E for ; Wed, 14 Oct 2026 10:08:03 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 85DD24BA23D0 for ; Wed, 14 Oct 2026 14:07:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85DD24BA23D0 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=LMQLxMG6 Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) by sourceware.org (Postfix) with ESMTPS id D27784BA23CE for ; Wed, 14 Oct 2026 14:07:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D27784BA23CE 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 D27784BA23CE Authentication-Results: sourceware.org; arc=none smtp.remote-ip=35.89.44.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791986851; cv=none; b=boH1fCNUGpu5N8OP90JZNlW9BkEkZu13oHKN7IE3c+iwLSJrS5PwSiaw5b0hjSDp/nFj/GlByzFBmHnPMPSlj3IA/NwoK7eI5W6rqfVFbvLvRpK+m25cSFB3ZGzGuht5LFeC5ycl8pTfKSxXaC2ENQb7cBcUcrHEd1zH7kxylkw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791986851; c=relaxed/simple; bh=Jq65Y2sPaTdQp7l7hV8IZz6Rmn4SOR0c3PROh3VbKRY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=VFgf02hEORIl/Yi/6ivrgB7CO5NnjS22OojVbxLx98zSrX5nksh65bRcGVAVRY0GdWsAzauyKYRlAZ8cH66jZXYvbXWex/RJKZPVZ6fvcXjSigh+fCZxLjVZoqvdAo8SxbtyjVtB7ZgqYSHAXPpmUDqLdURjTK8IdHeCJumtBMk= 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=LMQLxMG6 reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D27784BA23CE Received: from eig-obgw-6004b.ext.cloudfilter.net ([10.0.30.210]) by cmsmtp with ESMTPS id GvPpxyKgIaC0UGzdhxxKmA; Wed, 14 Oct 2026 14:07:29 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id GzdXxAwXMouFZGzdXxsDsd; Wed, 14 Oct 2026 14:07:19 +0000 X-Authority-Analysis: v=2.4 cv=Zd4dNtVA c=1 sm=1 tr=0 ts=6acf8ca0 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=660iZSQnnn4A:10 a=ItBw4LHWJt0A:10 a=wvR_LMFifNcAxYsMxyUA:9 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type: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=cgfTcFh+zIWiYJuaF0RjcLfwMvFiM8hIMJ1WoqZtsAs=; b=LMQLxMG6q+5zBoqJKdkSrVcrI4 cbwmG3ubmojaS0KYpVmwTPTpsH8dLG7vJxka8l0C+c0xOfxCME3ULn8A0JtACM9Em715CM8ietGFL 3aBrco0HcPimaOgkLEn12p6ce; Received: from 97-122-110-129.hlrn.qwest.net ([97.122.110.129]:59834 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xGzdW-000000000wC-44Xk; Wed, 14 Oct 2026 08:07:19 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Use bool in gdbpy_breakpoint_object Date: Wed, 14 Oct 2026 08:07:12 -0600 Message-ID: <20261014140712.840201-1-tom@tromey.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 1xGzdW-000000000wC-44Xk X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-129.hlrn.qwest.net (localhost.localdomain) [97.122.110.129]:59834 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: MS4xfNDx8r7YXxrzp+yO1N4/cibcK7KnYa2LRT+YWwx/J+oOYKl/jIF7uWxnhzvqBS6ysRESz2Z4PEmKdXDKE3XPoOGYZ+85mqPtNKx4wN+6j1vBj1BxOarY Xl13O5i3HpnTmn9i/h+9cwbctfaksWEgFxpALFjZlT7/b3agxsMBpSFl/zGgN+SSlFBYyKge29PzhCk4EoRfDiiQuF/YZBdKkUw= 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 gdbpy_breakpoint_object::is_finish_bp to be of type bool. --- gdb/python/py-breakpoint.c | 2 +- gdb/python/py-finishbreakpoint.c | 2 +- gdb/python/python-internal.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index b1615db1be3..7b561384230 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -1253,7 +1253,7 @@ gdbpy_breakpoint_created (struct breakpoint *bp) newbp->number = bp->number; newbp->bp = bp; newbp->bp->py_bp_object = newbp; - newbp->is_finish_bp = 0; + newbp->is_finish_bp = false; ++bppy_live; } else diff --git a/gdb/python/py-finishbreakpoint.c b/gdb/python/py-finishbreakpoint.c index e81a9156ae6..b0634c4caed 100644 --- a/gdb/python/py-finishbreakpoint.c +++ b/gdb/python/py-finishbreakpoint.c @@ -325,7 +325,7 @@ bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs) } self_bpfinish->bp->frame_id = frame_id; - self_bpfinish->is_finish_bp = 1; + self_bpfinish->is_finish_bp = true; self_bpfinish->initiating_frame = get_frame_id (frame); /* Bind the breakpoint with the current program space. */ diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 763504dfc46..25c94e18594 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -425,8 +425,8 @@ struct gdbpy_breakpoint_object : public PyObject deleted. */ struct breakpoint *bp; - /* 1 is this is a FinishBreakpoint object, 0 otherwise. */ - int is_finish_bp; + /* True is this is a FinishBreakpoint object, false otherwise. */ + bool is_finish_bp; }; static_assert (gdb::is_python_allocatable_v); -- 2.49.0