This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [Patch] -var-evaluate-expression NAME [FORMAT]


Thanks for taking the time to follow up.
Once I built, I found a compile problem with the documentation
that I changed!  It was missing an @anchor for var-set-format
Here is the latest part of the patch that is for the documentation only:

### Eclipse Workspace Patch 1.0
#P src
Index: gdb/doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.466
diff -u -r1.466 gdb.texinfo
--- gdb/doc/gdb.texinfo 31 Jan 2008 13:38:49 -0000      1.466
+++ gdb/doc/gdb.texinfo 4 Feb 2008 14:15:47 -0000
@@ -19919,6 +19919,7 @@
 Sets the output format for the value of the object @var{name} to be
 @var{format-spec}.
 
+@anchor{-var-set-format} 
 The syntax for the @var{format-spec} is as follows:
 
 @smallexample
@@ -20095,12 +20096,16 @@
 @subsubheading Synopsis
 
 @smallexample
- -var-evaluate-expression @var{name}
+ -var-evaluate-expression [-f @var{format-spec}] @var{name}
 @end smallexample
 
 Evaluates the expression that is represented by the specified variable
-object and returns its value as a string.  The format of the
-string can be changed using the @code{-var-set-format} command.
+object and returns its value as a string.  The format of the string
+can be specified with the @samp{-f} option.  The possible values of 
+this option are the same as for @code{-var-set-format} 
+(@pxref{-var-set-format}).  If the @samp{-f} option is not specified,
+the current display format will be used.  The current display format 
+can be changed using the @code{-var-set-format} command.
 
 @smallexample
  value=@var{value}
@@ -20153,7 +20158,7 @@
 object names, all existing variable objects are updated, except
 for frozen ones (@pxref{-var-set-frozen}).  The option
 @var{print-values} determines whether both names and values, or just
-names are printed.  The possible values of this options are the same
+names are printed.  The possible values of this option are the same
 as for @code{-var-list-children} (@pxref{-var-list-children}).  It is
 recommended to use the @samp{--all-values} option, to reduce the
 number of MI commands needed on each program stop.


-----Original Message-----
From: gdb-patches-owner@sourceware.org
[mailto:gdb-patches-owner@sourceware.org]On Behalf Of Eli Zaretskii
Sent: Sunday, February 03, 2008 3:00 PM
To: Marc Khouzam
Cc: drow@false.org; nickrob@snap.net.nz; gdb-patches@sourceware.org
Subject: Re: [Patch] -var-evaluate-expression NAME [FORMAT]


> Date: Sun, 3 Feb 2008 14:40:33 -0500
> From: "Marc Khouzam" <marc.khouzam@ericsson.com>
> Cc: <drow@false.org>, <nickrob@snap.net.nz>, <gdb-patches@sourceware.org>
> 
> > > I rebuilt (not the doc) and ran regression.
> >              ^^^^^^^^^^^
> > Why not?
> 
> Didn't know how...

chdir to gdb/doc directory, and then type this:

   make info

If the tree is not configure'd yet, you can do this:

   make -f Makefile.in srcdir=. info


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]