From 0aaaf06393e8ba1f48281c928ab33099e1bc84d6 Mon Sep 17 00:00:00 2001 From: Paul Koning Date: Fri, 28 Oct 2011 14:48:59 +0000 Subject: [PATCH] * gdb.texinfo (gdb.types): Rename deepitems to deep_items. --- gdb/doc/ChangeLog | 4 ++++ gdb/doc/gdb.texinfo | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 2001e0c5c06..1108974f783 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2011-10-28 Paul Koning + + * gdb.texinfo (gdb.types): Rename deepitems to deep_items. + 2011-10-27 Kevin Pouget * gdb.texinfo ((Frames In Python): Document diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 3e78832f96c..c200b55c015 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -24438,10 +24438,10 @@ Return @code{True} if @var{type}, assumed to be a type with fields @item make_enum_dict (@var{enum_type}) Return a Python @code{dictionary} type produced from @var{enum_type}. -@item deepitems (@var{type}) +@item deep_items (@var{type}) Returns a Python iterator similar to the standard @code{gdb.Type.iteritems} method, except that the iterator returned -by @code{deepitems} will recursively traverse anonymous struct or +by @code{deep_items} will recursively traverse anonymous struct or union fields. For example: @smallexample @@ -24462,7 +24462,7 @@ Then in @value{GDBN}: (@value{GDBP}) python struct_a = gdb.lookup_type("struct A") (@value{GDBP}) python print struct_a.keys () @{['a', '']@} -(@value{GDBP}) python print [k for k,v in gdb.types.deepitems(struct_a)] +(@value{GDBP}) python print [k for k,v in gdb.types.deep_items(struct_a)] @{['a', 'b0', 'b1']@} @end smallexample -- 2.30.2