mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 01:45:51 +08:00
* gdb.texinfo (GDB/MI Stack Manipulation): Document
-stack-list-variables.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2009-09-19 Vladimir Prus <vladimir@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.texinfo (GDB/MI Stack Manipulation): Document
|
||||||
|
-stack-list-variables.
|
||||||
|
|
||||||
2009-09-18 Tom Tromey <tromey@redhat.com>
|
2009-09-18 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* gdb.texinfo (GDB/MI Variable Objects): -enable-pretty-printing
|
* gdb.texinfo (GDB/MI Variable Objects): -enable-pretty-printing
|
||||||
|
@ -23130,6 +23130,9 @@ 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
|
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.
|
means that both names and values of the arguments are printed.
|
||||||
|
|
||||||
|
Use of this command to obtain arguments in a single frame is
|
||||||
|
deprecated in favor of the @samp{-stack-list-variables} command.
|
||||||
|
|
||||||
@subsubheading @value{GDBN} Command
|
@subsubheading @value{GDBN} Command
|
||||||
|
|
||||||
@value{GDBN} does not have an equivalent command. @code{gdbtk} has a
|
@value{GDBN} does not have an equivalent command. @code{gdbtk} has a
|
||||||
@ -23314,6 +23317,9 @@ display the value of simple data types and create variable objects for
|
|||||||
other data types when the user wishes to explore their values in
|
other data types when the user wishes to explore their values in
|
||||||
more detail.
|
more detail.
|
||||||
|
|
||||||
|
This command is deprecated in favor of the
|
||||||
|
@samp{-stack-list-variables} command.
|
||||||
|
|
||||||
@subsubheading @value{GDBN} Command
|
@subsubheading @value{GDBN} Command
|
||||||
|
|
||||||
@samp{info locals} in @value{GDBN}, @samp{gdb_get_locals} in @code{gdbtk}.
|
@samp{info locals} in @value{GDBN}, @samp{gdb_get_locals} in @code{gdbtk}.
|
||||||
@ -23334,6 +23340,31 @@ more detail.
|
|||||||
(gdb)
|
(gdb)
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
|
@subheading The @code{-stack-list-variables} Command
|
||||||
|
@findex -stack-list-variables
|
||||||
|
|
||||||
|
@subsubheading Synopsis
|
||||||
|
|
||||||
|
@smallexample
|
||||||
|
-stack-list-variables @var{print-values}
|
||||||
|
@end smallexample
|
||||||
|
|
||||||
|
Display the names of local variables and function arguments for the selected frame. 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.
|
||||||
|
|
||||||
|
@subsubheading Example
|
||||||
|
|
||||||
|
@smallexample
|
||||||
|
(gdb)
|
||||||
|
-stack-list-variables --thread 1 --frame 0 --all-values
|
||||||
|
^done,variables=[{name="x",value="11"},{name="s",value="{a = 1, b = 2}"}]
|
||||||
|
(gdb)
|
||||||
|
@end smallexample
|
||||||
|
|
||||||
|
|
||||||
@subheading The @code{-stack-select-frame} Command
|
@subheading The @code{-stack-select-frame} Command
|
||||||
@findex -stack-select-frame
|
@findex -stack-select-frame
|
||||||
|
Reference in New Issue
Block a user