From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AzFEFXQSvGnGWTAAWB0awg (envelope-from ) for ; Thu, 19 Mar 2026 11:12:52 -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=rKl6mfxH; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 426A81E08C; Thu, 19 Mar 2026 11:12:52 -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 13EB31E08C for ; Thu, 19 Mar 2026 11:12:51 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 0425A4C31818 for ; Thu, 19 Mar 2026 15:12:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0425A4C31818 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=rKl6mfxH Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 96B694B196F4 for ; Thu, 19 Mar 2026 15:12:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 96B694B196F4 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 96B694B196F4 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773933143; cv=none; b=CcVmoFSBJjJFdX0XbEZ/fKVq++agyFY+LtC9zFfmn37gNIQxcoRI/tgMo63jP3qppjIg5V9RlhkbTxO9WC1ik1jYDR8IWrUPfVnHtedr4HoM7N7aN06g6N84cmtzpZQTJaQay9XmOg1no9OETasTosDHpbOg4OsdDd4PUoL+/4I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773933143; c=relaxed/simple; bh=tn2RCV2g4c2mGqG5IJ9evhzN1bs2qODnCzxDmY/D6bs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vpeM5oWKCkh/x0V03s7+sUnY3Eui38E1izFmLAUeuckIQdl2Exk/2WOgkG/AFwGCTAvDxGRRTP6aX5aS6o3npGa/EuKFf5Lh9pxziyhJ+ln0BJsyTuK+eCpcb0DP5qCJZGvTon2WVZ3KD/XDoZyRmZWniVjCeULtNGiT9XhAVGU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 96B694B196F4 Received: from eig-obgw-6006b.ext.cloudfilter.net ([10.0.30.211]) by cmsmtp with ESMTPS id 3Cyqw3wI3CxrG3F2twpB2W; Thu, 19 Mar 2026 15:12:23 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 3F2rw9moGvXvH3F2rw2CXG; Thu, 19 Mar 2026 15:12:22 +0000 X-Authority-Analysis: v=2.4 cv=e4IGSbp/ c=1 sm=1 tr=0 ts=69bc1256 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=Yq5XynenixoA:10 a=ItBw4LHWJt0A:10 a=TDl5R864AAAA:8 a=zstS-IiYAAAA:8 a=hlCd2U2pnppfqfuxN0kA:9 a=zgiPjhLxNE0A:10 a=4IKI_MBedZsHOhguCAbN:22 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=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tn2RCV2g4c2mGqG5IJ9evhzN1bs2qODnCzxDmY/D6bs=; b=rKl6mfxHcaQrZ79NAgwtUKZIxq 8CIeJP+NtsYUQVGS1ySd8mk7uY4918vlO7nkrcdH0DP3DO2QzLmb8/poLmPV0DMs2PjuSewFR/dPY VGvhjl5HMjrXmONnYa3HfewDi; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:47182 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w3F2r-000000033YI-19zx; Thu, 19 Mar 2026 09:12:21 -0600 From: Tom Tromey To: Jan Vrany Cc: gdb-patches@sourceware.org, Eli Zaretskii Subject: Re: [PATCH v3] gdb/python: add property ranges to gdb.Block object In-Reply-To: <20260313144019.273153-1-jan.vrany@labware.com> (Jan Vrany's message of "Fri, 13 Mar 2026 14:40:19 +0000") References: <87y0jxrsdu.fsf@tromey.com> <20260313144019.273153-1-jan.vrany@labware.com> X-Attribution: Tom Date: Thu, 19 Mar 2026 09:12:18 -0600 Message-ID: <87tsubam5p.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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: 75.166.225.82 X-Source-L: No X-Exim-ID: 1w3F2r-000000033YI-19zx X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:47182 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: MS4xfDlVkaNbkFIz35zTqcyfAEQpr4hvUw4UuBOgOABMuxHV1Qo25NVZ96r/5Fp4jPhzTk/ItKGO7cnm5ha2hqOk1g+9W02DZo1QSS+VK1L8TN/viuBA8Lh/ J96Bh4XPVTBk4G6NNHHmgSRt4aDLqHkXo3MZUK5AX6FNm0sGqKLBdHJptcjO9ZSX3Jui8//Sd2ZD+/k65Yi+chKXLjrJBQh0Cr8= 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 >>>>> "Jan" == Jan Vrany writes: >> Or maybe be written in some other way. Jan> I tried to use "(OO)", gdb_py_object_from_ulongest(start), Jan> gdb_py_object_from_ulongest(end) but that did not look Jan> significantly better to me. Yeah, until the safety changes, this would need extra checking as well anyway. Jan> This commit adds a new property - ranges - to gdb.Block object. It holds Jan> a tuple of ranges for that block. Each range is a tuple of (start, end) Jan> address. For contiguous blocks it contains only one range. This version looks good to me, thank you. Approved-By: Tom Tromey Tom