This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] -stack-info-frames
> > Date: Sun, 19 Jun 2005 10:56:13 -0400
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: Eli Zaretskii <eliz@gnu.org>, gdb-patches@sources.redhat.com
> >
> > The documentation is up to Eli, but I can say with some confidence that
> > it is NOT ok, since you didn't really remove argument values from the
> > examples. I still see one:
> >
> > > + @smallexample
> > > + (@value{GDBP})
> > > + -stack-info-frame
> > > + ^done,frame=@{level="1",addr="0x0001076c",func="callee3",
> > > + args=[@{name="strarg",value="0x11940 \"A string argument.\""@}],
> > > + file="../../../devo/gdb/testsuite/gdb.mi/basics.c",
> > > + fullname="/home/foo/bar/devo/gdb/testsuite/gdb.mi/basics.c",line="17"@}
> > > + (@value{GDBP})
> > > + @end smallexample
> > > +
>
> Yes, Nick, please fix this.
The patch was OK but the diff wasn't. I picked up the backup copy by mistake:
*** /home/nick/src/gdb/doc/gdb.texinfo.~1.269~ 2005-06-19...
--- /home/nick/src/gdb/doc/gdb.texinfo~ 2005-06-19...
***************
^^^
In future, I'll diff on the repository (and wait for approval!).
Nick
*** /home/nick/src/gdb/doc/gdb.texinfo.~1.269~ 2005-06-19 15:03:43.000000000 +1200
--- /home/nick/src/gdb/doc/gdb.texinfo 2005-06-19 15:00:52.000000000 +1200
***************
*** 19223,19228 ****
--- 19223,19256 ----
@node GDB/MI Stack Manipulation
@section @sc{gdb/mi} Stack Manipulation Commands
+
+ @subheading The @code{-stack-info-frame} Command
+ @findex -stack-info-frame
+
+ @subsubheading Synopsis
+
+ @smallexample
+ -stack-info-frame
+ @end smallexample
+
+ Get info on the selected frame.
+
+ @subsubheading @value{GDBN} Command
+
+ The corresponding @value{GDBN} command is @samp{info frame} or @samp{frame}
+ (without arguments).
+
+ @subsubheading Example
+
+ @smallexample
+ (@value{GDBP})
+ -stack-info-frame
+ ^done,frame=@{level="1",addr="0x0001076c",func="callee3",
+ file="../../../devo/gdb/testsuite/gdb.mi/basics.c",
+ fullname="/home/foo/bar/devo/gdb/testsuite/gdb.mi/basics.c",line="17"@}
+ (@value{GDBP})
+ @end smallexample
+
@subheading The @code{-stack-info-depth} Command
@findex -stack-info-depth