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

Tom Tromey
2026-03-19T15:12:52Z

>>>>> "Jan" == Jan Vrany <jan.vrany@labware.com> 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@tromey.com>

Tom