From: Doug Evans Date: Fri, 2 Dec 2011 00:27:48 +0000 (+0000) Subject: * python/py-type.c (type_object_methods): Fix "array" doc string. X-Git-Tag: gdb_7_4-2011-12-13-branchpoint~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f28c316a0bbb40b341e36d9e328a4d60121c395a;p=platform%2Fupstream%2Fbinutils.git * python/py-type.c (type_object_methods): Fix "array" doc string. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8c83504..a806a76 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-12-01 Doug Evans + + * python/py-type.c (type_object_methods): Fix "array" doc string. + 2011-12-01 Andrew Burgess * source.c (print_source_lines_base): Fix missing braces on else 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,