Re: [PATCH] gdb/python: add property ranges to gdb.Block object

Eli Zaretskii
2026-03-12T11:36:49Z

> From: Jan Vraný <Jan.Vrany@labware.com>
> CC: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
> Date: Thu, 12 Mar 2026 11:04:21 +0000
>
> On Thu, 2026-03-12 at 08:52 +0200, Eli Zaretskii wrote:
> >
> > > +  ** New gdb.Block.ranges attribute.  This read only attribute contains
> > > +     a tuple of pairs each representing a single range. Contiguous blocks
> > > +     have only one range.                             ^^
> >
> > Two spaces there, please.
> >
> > > +@defvar Block.ranges
> > > +A tuple representing address ranges of the block.  Each range is represented
> > > +as pair (two-element tuple) where first element is the start of the range
> >    ^^^^^^^                           ^^^^^^^^^^^^^
> > "as a pair" and "the first element"
> >
> > > +and second element is one past the last address that appears in the range.
> >        ^^^^^^^^^^^^^^
> > "the second element"
> >
> > > +The order of ranges is unspecified. Contiguous blocks have only one range.
> > > +This attribute is not writable.   ^^
> >
> > Two spaces there.
> >
> > Reviewed-By: Eli Zaretskii <eliz@gnu.org>
>
> Thanks! Fixed below.

Thanks, LGTM.