Update doc on displayhint in command -var-list-children
authorYao Qi <yao@codesourcery.com>
Tue, 19 Nov 2013 11:00:38 +0000 (19:00 +0800)
committerYao Qi <yao@codesourcery.com>
Sat, 23 Nov 2013 12:33:11 +0000 (20:33 +0800)
Hi,
When using command -var-list-children, "displayhint" appears in the result of
each child, shown as the following output.

-var-list-children  ss1  ^M
^done,numchild="2",displayhint="pp_ss",children=[child={name="ss1.a",exp="a",numchild="0",type="struct s",thread-id="1",displayhint="pp_s",dynamic="1"},child={name="ss1.b",exp="b",numchild="0",type="struct s",thread-id="1",displayhint="pp_s",dynamic="1"}],has_more="0"

Current doc on command -var-list-children doesn't reflect this.  This
patch is to fix it.

gdb/doc:

2013-11-23  Yao Qi  <yao@codesourcery.com>

* gdb.texinfo (GDB/MI Variable Objects): Add the description
of "displayhint" to the table about child results.

gdb/doc/ChangeLog
gdb/doc/gdb.texinfo

index 5a906ca..92c4a76 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-23  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.texinfo (GDB/MI Variable Objects): Add the description
+       of "displayhint" to the table about child results.
+
 2013-11-21  Yao Qi  <yao@codesourcery.com>
 
        * gdb.texinfo (GDB/MI Variable Objects): Add attribute
index ec9d901..378f9e9 100644 (file)
@@ -32520,6 +32520,11 @@ Otherwise this result is not present.
 @item frozen
 If the variable object is frozen, this variable will be present with a value of 1.
 
+@item displayhint
+A dynamic varobj can supply a display hint to the front end.  The
+value comes directly from the Python pretty-printer object's
+@code{display_hint} method.  @xref{Pretty Printing API}.
+
 @item dynamic
 This attribute will be present and have the value @samp{1} if the
 varobj is a dynamic varobj.  If the varobj is not a dynamic varobj,