[python][patch] And range method to type

Eli Zaretskii eliz@gnu.org
Fri Dec 4 15:32:00 GMT 2009


> Date: Fri, 04 Dec 2009 15:25:16 +0000
> From: Phil Muldoon <pmuldoon@redhat.com>
> 
> This patch adds a "range" method for GDB.Types.  It only supports types
> that support a range, or the range type itself.
> 
> Ok?

A couple of comments to the doco part:

> +@defmethod Type range
> +Return a Python @code{Tuple} object that contains two elements.  The
> +first element of the @code{Tuple} contains the low bound of the type; the
> +second element contains the high bound of the type.

This could be made a bit more concise:

  Return a Python @code{Tuple} object that contains two elements: the
  low bound of the argument type and the high bound of that type.

>                                                       If the type does
> +not have a range, @value{GDBN} will throw a @code{RuntimeError}
> +@end defmethod

The last sentence is incomplete.

Thanks.



More information about the Gdb-patches mailing list