diff options
author | Tom Tromey <tromey@redhat.com> | 2010-08-23 20:21:28 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-08-23 20:21:28 +0000 |
commit | 702c27113693b383728d0b423f58389544a80614 (patch) | |
tree | 4eb3528024efcf2a3e34cd0f8b567bc9fde6e456 /gdb/doc | |
parent | 832bafd3314b6f1fb7f7c0e7abe596b11e6364ba (diff) | |
download | gdb-702c27113693b383728d0b423f58389544a80614.zip gdb-702c27113693b383728d0b423f58389544a80614.tar.gz gdb-702c27113693b383728d0b423f58389544a80614.tar.bz2 |
gdb
PR python/11915:
* python/py-type.c (typy_array): New function.
(type_object_methods): Add "array".
gdb/doc
PR python/11915:
* gdb.texinfo (Types In Python): Document array method.
gdb/testsuite
PR python/11915:
* gdb.python/py-type.exp (test_fields): Add tests for array.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index f5ae128..82e73e5 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2010-08-23 Tom Tromey <tromey@redhat.com> + + PR python/11915: + * gdb.texinfo (Types In Python): Document array method. + 2010-08-18 Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.texinfo (PowerPC Embedded): Mention support for the DVC register. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index f493d59..d1eba6f 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -20938,6 +20938,15 @@ but it can be @code{None} in some situations. @end table @end defmethod +@defmethod Type array @var{n1} @r{[}@var{n2}@r{]} +Return a new @code{gdb.Type} object which represents an array of this +type. If one argument is given, it is the inclusive upper bound of +the array; in this case the lower bound is zero. If two arguments are +given, the first argument is the lower bound of the array, and the +second argument is the upper bound of the array. An array's length +must not be negative, but the bounds can be. +@end defmethod + @defmethod Type const Return a new @code{gdb.Type} object which represents a @code{const}-qualified variant of this type. |