diff options
author | Phil Muldoon <pmuldoon@redhat.com> | 2009-12-08 14:06:04 +0000 |
---|---|---|
committer | Phil Muldoon <pmuldoon@redhat.com> | 2009-12-08 14:06:04 +0000 |
commit | 361ae042505053cb924612be0c8c79380d29d941 (patch) | |
tree | c652761b90b8d96b675146b80aac4b7e80926cc3 /gdb/doc | |
parent | 40b5c9fb4b794ff4337707edbd74af035bdbb0c2 (diff) | |
download | gdb-361ae042505053cb924612be0c8c79380d29d941.zip gdb-361ae042505053cb924612be0c8c79380d29d941.tar.gz gdb-361ae042505053cb924612be0c8c79380d29d941.tar.bz2 |
2009-12-08 Phil Muldoon <pmuldoon@redhat.com>
PR python/10804
* python/py-type.c (typy_range): New Function.
2009-12-08 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-type.exp (test_range): New test.
2009-12-08 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Types In Python): Describe range function.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 8e5eed6..a60e973 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2009-12-08 Phil Muldoon <pmuldoon@redhat.com> + + * gdb.texinfo (Types In Python): Describe range function. + 2009-12-03 Richard Ward <richard.j.ward1@googlemail.com> * gdb.texinfo (Types In Python): Describe "is_base_class". diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index b5862c1..e880838 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -19654,6 +19654,13 @@ variant of this type. That is, the result is neither @code{const} nor @code{volatile}. @end defmethod +@defmethod Type range +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 raise a +@code{RuntimeError} exception. +@end defmethod + @defmethod Type reference Return a new @code{gdb.Type} object which represents a reference to this type. |