Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] Update doc on displayhint in command -var-list-children
@ 2013-11-19 11:39 Yao Qi
  2013-11-19 11:31 ` [PATCH 2/2] Doc 'dynamic' for " Yao Qi
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Yao Qi @ 2013-11-19 11:39 UTC (permalink / raw)
  To: gdb-patches

Hi,
When using command -var-list-children, "displayhint" is the result of
each child, instead of the attribute of the result, shown as the
following output.

-var-list-children  ss1 
^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.

This patch also changes one line
from "This result may have its own attributes"
to   "This result has its own attribute".

gdb/doc:

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

	* gdb.texinfo (GDB/MI Variable Objects): Move the description
	of "displayhint" to the table about child results.
---
 gdb/doc/gdb.texinfo |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 19e9aa5..0f6046d 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -32516,16 +32516,18 @@ Otherwise this result is not present.
 
 @item frozen
 If the variable object is frozen, this variable will be present with a value of 1.
-@end table
-
-The result may have its own attributes:
 
-@table @samp
 @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}.
 
+@end table
+
+The result has its own attribute:
+
+@table @samp
+
 @item has_more
 This is an integer attribute which is nonzero if there are children
 remaining after the end of the selected range.
-- 
1.7.7.6


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-11-22 20:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19 11:39 [PATCH 1/2] Update doc on displayhint in command -var-list-children Yao Qi
2013-11-19 11:31 ` [PATCH 2/2] Doc 'dynamic' for " Yao Qi
2013-11-19 16:17   ` Eli Zaretskii
2013-11-21  3:52     ` Yao Qi
2013-11-19 16:22 ` [PATCH 1/2] Update doc on displayhint in " Eli Zaretskii
2013-11-19 17:05 ` Tom Tromey
2013-11-20  2:16   ` Yao Qi
2013-11-22 20:02     ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox