Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Chris Genly <chgenly@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: gdb.texinfo patch for -var-list-children (2)
Date: Sat, 20 Jun 2009 21:33:00 -0000	[thread overview]
Message-ID: <ed4903890906201433w5fcf74b0v5970ee425ed4e7a1@mail.gmail.com> (raw)
In-Reply-To: <ed4903890906201330p90cac37p197274c5e5bd1162@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

Description

The gdb documentation for the MI command -var-list-children does not
define the exp result for a child.  Exp and other child results documented.

Change log

2009-06-20  Chris Genly  <chris@genly.us>
       * doc/gdb.texinfo (GDB/MI Variable Objects): Document child
       definition in -var-list-children.  Added exp result for child.

Patch

Attached.

[-- Attachment #2: gdb.texinfo.patch --]
[-- Type: application/octet-stream, Size: 2604 bytes --]

Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.600
diff -c -p -r1.600 gdb.texinfo
*** gdb.texinfo	15 Jun 2009 12:11:36 -0000	1.600
--- gdb.texinfo	20 Jun 2009 21:25:52 -0000
*************** Returns the format used to display the v
*** 23225,23230 ****
--- 23225,23231 ----
   -var-info-num-children @var{name}
  @end smallexample
  
+ 
  Returns the number of children of a variable object @var{name}:
  
  @smallexample
*************** values; and if it is 2 or @code{--simple
*** 23251,23266 ****
  value for simple data types and just the name for arrays, structures
  and unions.
  
  @subsubheading Example
  
  @smallexample
  (gdb)
   -var-list-children n
!  ^done,numchild=@var{n},children=[@{name=@var{name},
   numchild=@var{n},type=@var{type}@},@r{(repeats N times)}]
  (gdb)
   -var-list-children --all-values n
!  ^done,numchild=@var{n},children=[@{name=@var{name},
   numchild=@var{n},value=@var{value},type=@var{type}@},@r{(repeats N times)}]
  @end smallexample
  
--- 23252,23300 ----
  value for simple data types and just the name for arrays, structures
  and unions.
  
+ For each child the following results are returned:
+ 
+ @table @var
+ 
+ @item name
+ Name of the variable object created for this child.
+ 
+ @item exp
+ The expression to be shown to the user by the front end to designate this child.
+ For example this may be the name of a structure member.  
+ 
+ For C/C@t{++} structures there are several psuedo children returned to
+ designate access qualifiers.  For these pseudo children @var{exp} is
+ @samp{public}, @samp{private}, or @samp{protected}.  In this case the
+ type and value are not present.
+ 
+ @item numchild
+ Number of children this child has.
+ 
+ @item type
+ The type of the child.
+ 
+ @item value
+ If values were requested, this is the value.
+ 
+ @item thread-id
+ If this variable object is associated with a thread, this is the thread id.  
+ 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
+ 
  @subsubheading Example
  
  @smallexample
  (gdb)
   -var-list-children n
!  ^done,numchild=@var{n},children=[child=@{name=@var{name},exp=@var{exp},
   numchild=@var{n},type=@var{type}@},@r{(repeats N times)}]
  (gdb)
   -var-list-children --all-values n
!  ^done,numchild=@var{n},children=[child=@{name=@var{name},exp=@var{exp},
   numchild=@var{n},value=@var{value},type=@var{type}@},@r{(repeats N times)}]
  @end smallexample
  

  reply	other threads:[~2009-06-20 21:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-20  4:11 Chris Genly
2009-06-20  8:45 ` Vladimir Prus
2009-06-20 10:01   ` Eli Zaretskii
2009-06-22  3:18     ` Joel Brobecker
2009-06-22  4:42       ` Eli Zaretskii
2009-06-22 15:02         ` Daniel Jacobowitz
2009-06-23  1:00           ` Eli Zaretskii
2009-06-23  3:19             ` Daniel Jacobowitz
2009-06-20 15:18 ` Eli Zaretskii
2009-06-20 20:31   ` Chris Genly
2009-06-20 21:33     ` Chris Genly [this message]
2009-07-04 12:13       ` Eli Zaretskii
2009-06-20 23:12     ` Eli Zaretskii
2009-06-20 23:17     ` Samuel Bronson
2009-06-21 19:28       ` Chris Genly
2009-06-21 23:12         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ed4903890906201433w5fcf74b0v5970ee425ed4e7a1@mail.gmail.com \
    --to=chgenly@gmail.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox