aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-12-02 00:27:48 +0000
committerDoug Evans <dje@google.com>2011-12-02 00:27:48 +0000
commitf28c316a0bbb40b341e36d9e328a4d60121c395a (patch)
tree77647728bce816f8cc8d6a69d937485580fbc613 /gdb/python
parent4bbe523348072224131855ea50b44aa2210712a6 (diff)
downloadgdb-f28c316a0bbb40b341e36d9e328a4d60121c395a.zip
gdb-f28c316a0bbb40b341e36d9e328a4d60121c395a.tar.gz
gdb-f28c316a0bbb40b341e36d9e328a4d60121c395a.tar.bz2
* python/py-type.c (type_object_methods): Fix "array" doc string.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-type.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index b671cef..c9e31f9 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -1540,8 +1540,10 @@ static PyGetSetDef type_object_getset[] =
static PyMethodDef type_object_methods[] =
{
{ "array", typy_array, METH_VARARGS,
- "array (N) -> Type\n\
-Return a type which represents an array of N objects of this type." },
+ "array ([LOW_BOUND,] HIGH_BOUND) -> Type\n\
+Return a type which represents an array of objects of this type.\n\
+The bounds of the array are [LOW_BOUND, HIGH_BOUND] inclusive.\n\
+If LOW_BOUND is omitted, a value of zero is used." },
{ "__contains__", typy_has_key, METH_VARARGS,
"T.__contains__(k) -> True if T has a field named k, else False" },
{ "const", typy_const, METH_NOARGS,