From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id RT1HEMmmz2qCuwkAWB0awg (envelope-from ) for ; Wed, 14 Oct 2026 11:59:05 -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=D5OHIf9D; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 22C5E1E04E; Wed, 14 Oct 2026 11:59:05 -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.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 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 4D6011E04E for ; Wed, 14 Oct 2026 11:59:04 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F3DE74BA23D8 for ; Wed, 14 Oct 2026 15:59:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3DE74BA23D8 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=D5OHIf9D Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id BD2004BA2E0C for ; Wed, 14 Oct 2026 15:58:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BD2004BA2E0C 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 BD2004BA2E0C Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791993517; cv=none; b=D/lQrYGw+ZLYX9C72e7ZgSglCqf7MZeZONFffb3TSOnAf6cX8uHhB2u/CvLwZ7wDIhunTePuG0gRHp6UBtVAM0w5aEPazm4Ix4qTAUd311kVcQDXPlMONanVR1KJY4IvdmbJja51+eFgOcN/z5ApL+vYtqq/OB45Yr0rMzOcoV8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791993517; c=relaxed/simple; bh=pW+LeQ6huMmfbj/GGRYfpr4vdCP2652jXSQPjXYDpB8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=m93DC1QaLK8CzEy64MK5OY7LaIu88AqiM2BCiG4c60N4j9IxQuKgfh7jhMn2HlhEouaM3Fih6B03RfSwpTEldrrGlIM5sPAoPWa3I19QYuKKay0PHDd1Vfw7Huy1n/8JT4QUX+8jAectjUTsKKpraLX1EwZI5sThjWFtQFjTG1I= 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=D5OHIf9D reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD2004BA2E0C Received: from eig-obgw-5005b.ext.cloudfilter.net ([10.0.29.189]) by cmsmtp with ESMTPS id H10cxHLvOLvgbH1NFxD4KO; Wed, 14 Oct 2026 15:58:37 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id H1NDxUwMl369DH1NExbZnU; Wed, 14 Oct 2026 15:58:36 +0000 X-Authority-Analysis: v=2.4 cv=EPgG00ZC c=1 sm=1 tr=0 ts=6acfa6ac a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=20KFwNOVAAAA:8 a=s4I7WRIiZ5T359QJ_cAA:9 a=QEXdDO2ut3YA:10 a=ul9cdbp4aOFLsgKbc677:22 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:Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To:Subject:Cc:To: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=LitHGYk+lXsMqhcOQxOS2/ZHYwC5VhIjXdec0+PDyTM=; b=D5OHIf9DQHe6raB7PSz2a0BEkc osMIT5CxLGIFSLt7JdITzzJTHDI+o4qtzJO4+mJSZSrPCNxMajqQFK0XTVB3hsLbEyRVzYBhzQWK0 ZUWNUgfSl7FKhA6y+uNGYU8yo; Received: from 97-122-110-129.hlrn.qwest.net ([97.122.110.129]:40506 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xH1ND-00000002yqf-1RGh; Wed, 14 Oct 2026 09:58:35 -0600 From: Tom Tromey To: =?utf-8?B?VG9tw6HFoSBIcm7EjWlhcg==?= Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] gdb/python: add allow_pending parameter to gdb.Breakpoint constructor In-Reply-To: <20261013074751.754142-1-thrnciar@redhat.com> (=?utf-8?B?IlRv?= =?utf-8?B?bcOhxaEgSHJuxI1pYXIiJ3M=?= message of "Tue, 13 Oct 2026 09:47:50 +0200") References: <20261013074751.754142-1-thrnciar@redhat.com> X-Attribution: Tom Date: Wed, 14 Oct 2026 09:58:34 -0600 Message-ID: <877bjk46l1.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 1xH1ND-00000002yqf-1RGh X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-129.hlrn.qwest.net (bapiya) [97.122.110.129]:40506 X-Source-Auth: tom+tromey.com X-Email-Count: 14 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfNYOt29GfMNe7d6VazP7cp+33cfEF4Ib0DiuDalXiyk8mTy9G0BTWWawSQNLzc3KTrydKR2R95hcHVvXa0s3ZqlQLxVEzb4FqIIW27h80Bllv84LhB12 4Z5hEBbR6b3mn8L3mSGqkdxY9u1LIsbpoIpTr7XUtdGIIySopIpbKXRzEIjbmV0L0YSprPil5Kr/o3VuRR4OT+O3S+IuPVprrXg= 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 >>>>> "Tom=C3=A1=C5=A1" =3D=3D Tom=C3=A1=C5=A1 Hrn=C4=8Diar writes: Tom=C3=A1=C5=A1> Add a new allow_pending parameter to the gdb.Breakpoint co= nstructor. Tom=C3=A1=C5=A1> Setting the new parameter to False causes GDB to raise an = error instead Tom=C3=A1=C5=A1> of creating a pending breakpoint. By default this paramet= er is True, Tom=C3=A1=C5=A1> which allows pending breakpoints to be created, preserving= the existing Tom=C3=A1=C5=A1> behaviour. Hi. Thanks for the patch. This is PR python/12816 so please add this tag to the commit message: Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D12816 Tom=C3=A1=C5=A1> + ** The gdb.Breakpoint constructor now takes an optional Tom=C3=A1=C5=A1> + 'allow_pending' argument. Setting it to False cause= s GDB to raise Tom=C3=A1=C5=A1> + an error instead of creating a pending breakpoint. I wonder about calling the new argument 'pending' instead. I tend to think that's a bit nicer since we already match the parameter and attribute name for 'temporary'. thanks, Tom