Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb-patches@sources.redhat.com
Subject: [RFC, doc] Fix -stack-list-arguments parameter description
Date: Fri, 30 Oct 2009 17:38:00 -0000	[thread overview]
Message-ID: <200910302038.28561.vladimir@codesourcery.com> (raw)

[-- Attachment #1: Type: Text/Plain, Size: 247 bytes --]


Current docs for -stack-list-arguments fails to document the '2'
value of the 'show-values' parameter. This patch fixes that, while
making the naming of parameter consistent with -stack-list-locals
and -stack-list-variables. OK?

Thanks,
Volodya

[-- Attachment #2: list-arguments.diff --]
[-- Type: text/x-patch, Size: 1509 bytes --]

? gdb/doc/ChangeLog.lines
? gdb/doc/ChangeLog.my
? gdb/doc/all
? gdb/doc/my
? gdb/doc/stack-list-variables-docs.diff
Index: gdb/doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.639
diff -u -p -r1.639 gdb.texinfo
--- gdb/doc/gdb.texinfo	28 Oct 2009 15:01:27 -0000	1.639
+++ gdb/doc/gdb.texinfo	30 Oct 2009 17:36:49 -0000
@@ -23420,7 +23420,7 @@ For a stack with frame levels 0 through 
 @subsubheading Synopsis
 
 @smallexample
- -stack-list-arguments @var{show-values}
+ -stack-list-arguments @var{print-values}
     [ @var{low-frame} @var{high-frame} ]
 @end smallexample
 
@@ -23433,9 +23433,11 @@ larger than the actual number of frames.
 @var{high-frame} may be larger than the actual number of frames, in
 which case only existing frames will be returned.
 
-The @var{show-values} argument must have a value of 0 or 1.  A value of
-0 means that only the names of the arguments are listed, a value of 1
-means that both names and values of the arguments are printed.
+If @var{print-values} is 0 or @code{--no-values}, print only the names of
+the variables; if it is 1 or @code{--all-values}, print also their
+values; and if it is 2 or @code{--simple-values}, print the name,
+type and value for simple data types and the name and type for arrays,
+structures and unions.
 
 Use of this command to obtain arguments in a single frame is
 deprecated in favor of the @samp{-stack-list-variables} command.

             reply	other threads:[~2009-10-30 17:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-30 17:38 Vladimir Prus [this message]
2009-10-30 20:34 ` Eli Zaretskii
2009-11-01 19:55   ` Vladimir Prus
2009-11-01 20:01     ` 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=200910302038.28561.vladimir@codesourcery.com \
    --to=vladimir@codesourcery.com \
    --cc=gdb-patches@sources.redhat.com \
    /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