From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QQ/wEJyNz2qxKQkAWB0awg (envelope-from ) for ; Wed, 14 Oct 2026 10:11:40 -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=n7sAPQon; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 40D6C1E050; Wed, 14 Oct 2026 10:11:40 -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 7F75F1E04E for ; Wed, 14 Oct 2026 10:11:39 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1738D4BA23EE for ; Wed, 14 Oct 2026 14:11:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1738D4BA23EE 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=n7sAPQon Received: from omta033.useast.a.cloudfilter.net (omta033.useast.a.cloudfilter.net [44.202.169.32]) by sourceware.org (Postfix) with ESMTPS id 0CA9F4BA23D0 for ; Wed, 14 Oct 2026 14:09:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0CA9F4BA23D0 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 0CA9F4BA23D0 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.32 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791986959; cv=none; b=DWYILGpgBNvQOfceIYh3c0ILSSzVdYPRHy88dbGGD4xKrZtMEVyY2TWKTfRIYb7NA+V8r18KWHXaNvQIJks1AQ3wC/sG5Ke9EAIgPHUdGa1/p4OZRPir8xa9MGUC+21B421yrRmI1Qy01x0YQCIYClqz0GnBy4HGyCm95Y/sH7k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791986959; c=relaxed/simple; bh=2QmKN/Xz8FsSzZEVpbMvbKTMBC1/3X5AnlD6AyUHFpo=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=J6hO94pBqjQbKszXZ3F71c/JPaKdp+Idux/5e08FQDvcLnFrwvTie9LIaPoAIb+YT/xTxnvb5h2Nqg4hAohF624J1yK8YFWR0atOv3DHmReMO9aggvpVuhCfhU5+pHRbQoEdn0FuKRQbzhUW5s7Czdcs2B3mX2NUc+OyOdfVJmc= 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=n7sAPQon reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0CA9F4BA23D0 Received: from eig-obgw-5001b.ext.cloudfilter.net ([10.0.29.181]) by cmsmtp with ESMTPS id Gz8rxpanUPG7QGzfNxvbQV; Wed, 14 Oct 2026 14:09:13 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id Gzf1xmH9oP7wgGzf1xywkh; Wed, 14 Oct 2026 14:08:51 +0000 X-Authority-Analysis: v=2.4 cv=NMzV+16g c=1 sm=1 tr=0 ts=6acf8d09 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=Jnymt6oQs51K8AVM794A: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=zLFpzkmQCevYQhjVnRHMPVx99Uqn0FcCyFYyWmXbifY=; b=n7sAPQonGd+e0yDOVn5lp1wrNe Mvum+wKfkmjzzfxWszVmZZKIhO47xtMeoSIE9w1+PI0/IpJQUKce1Guyiv3JjBzsYONaagrNnPiZa bh3SC7xMyjE4tH7NTjubToXIB; Received: from 97-122-110-129.hlrn.qwest.net ([97.122.110.129]:45562 helo=[192.168.0.17]) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xGzf0-000000002J7-3bQI; Wed, 14 Oct 2026 08:08:50 -0600 From: Tom Tromey Subject: [PATCH 0/5] Use Python safety API for breakpoint locations Date: Wed, 14 Oct 2026 08:08:48 -0600 Message-Id: <20261014-python-safety-breakpoint-v1-0-c8e72d58f3cd@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAPCMz2oC/x3MQQrCMBCF4auUWRtsooTqVcRFUifNIE7CTBBL6 d2NLj94799AUQgVrsMGgm9SKtxhDwPMOfCChh7d4Ebn7WjPpq4tFzYaErbVRMHwrIW4GZ/c5Kd 4stFfoN+rYKLPP327d8eg2PeB5/wLFqGF+PgK2lBg37+aUNpuigAAAA== X-Change-ID: 20261014-python-safety-breakpoint-6f2868b31b69 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: 1xGzf0-000000002J7-3bQI X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-129.hlrn.qwest.net ([192.168.0.17]) [97.122.110.129]:45562 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfGXdkSWwFAR6keIX5lUBpkMxbOHja8GOwFUOSvsp8o/l0WJFYRWM/+e0it7Y5mlgoORs8RcHwFn3DML0roP3tu45i4fWcLhGVIXuznM0bjKb3Fc+A9W/ GnyJQmhQ/utDbxWJbQpPLWdYBSOmlWTJArktndCBfBw4TtO1kWcCB/jZ41Avcmv7yTsPJ4GP3L3DmBoBZkdNL6q9HMMny4KEfqg= 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 series changes the breakpoint location code to use the Python safety API. Tested on x86-64 Fedora 40. Signed-off-by: Tom Tromey --- Tom Tromey (5): Rewrite gdb.BreakpointLocation repr method Move two macros from python-internal.h to py-breakpoint.c Add require_valid to Python breakpoint and breakpoint location Rewrite breakpoint location getter methods Rewrite gdb.BreakpointLocation setter gdb/python/py-breakpoint.c | 371 ++++++++++++++++++++++--------------------- gdb/python/py-ref.h | 7 + gdb/python/py-wrappers.h | 10 ++ gdb/python/python-internal.h | 26 +-- 4 files changed, 209 insertions(+), 205 deletions(-) --- base-commit: 692a398424b5468c17843b68faefa26169d961a1 change-id: 20261014-python-safety-breakpoint-6f2868b31b69 Best regards, -- Tom Tromey