From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20070 invoked by alias); 28 Oct 2005 12:49:46 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 20061 invoked by uid 22791); 28 Oct 2005 12:49:44 -0000 Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 28 Oct 2005 12:49:44 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-203-194.inter.net.il [80.230.203.194]) by nitzan.inter.net.il (MOS 3.6.5-GR) with ESMTP id BUI16183 (AUTH halo1); Fri, 28 Oct 2005 14:49:18 +0200 (IST) Date: Fri, 28 Oct 2005 12:49:00 -0000 Message-Id: From: Eli Zaretskii To: Andrew STUBBS CC: gdb@sources.redhat.com In-reply-to: <4361F3E3.9070701@st.com> (message from Andrew STUBBS on Fri, 28 Oct 2005 10:48:19 +0100) Subject: Re: RFC: GDB as a loader 1/3: silent batch mode Reply-to: Eli Zaretskii References: <4354DBFF.7000601@st.com> <43611474.7070609@st.com> <4361F3E3.9070701@st.com> X-SW-Source: 2005-10/txt/msg00182.txt.bz2 > Date: Fri, 28 Oct 2005 10:48:19 +0100 > From: Andrew STUBBS > Cc: gdb@sources.redhat.com > > Out of interest, why does 'GDB' have to be '@value{GDBN}'? What does > that do? It gives us a simple way to change the name of GDB in the manual. This is sometimes needed when one wants to produce a tailored GDB package specific to some host/target configuration, for a specific client, and call it by some other name to distinguish from the standard edition. The "@value{GDBN}" construct is a simple string substitution mechanism: it causes makeinfo, the program that produces the Info manual from its Texinfo sources, to replace "@value{GDBN}" with the string that is the value of the GDBN variable. The default value is set in the gdb-cfg.texi file: @set GDBN @sc{gdb} which is included by gdb.texinfo. However, one could replace this value, either in gdb-cfg.texi or by invoking makeinfo with the -D switch, for example: makeinfo -DGDBN="my@sc{gdb}" gdb.texinfo > I can create the info file fine, but the PDF has errors. What command did you use to produce the PDF file? Also, please send the error messages you saw. > The only thing > I can see wrong with the produced file is that the index is missing. Is > this a known problem or am I using the wrong version of something? I > have Texinfo 4.5. I don't think it's a known problem, but perhaps you should upgrade your Texinfo. > Still nobody has given an opinion on any of the three patches I sent > adding new options. What do you want to do with them? Do we know if > Daniel is back from holiday yet? I'll let Daniel answer that ;-) > I'll do the docs for the other two options soon. Thanks. > +@item -batch-silent > +@cindex @code{--batch-silent} > +Run in batch mode exactly like @samp{-batch}, but totally silently. All > +@value{GDBN} output to @code{stdout} is prevented (@code{stderr} is > +unaffected). This is much quieter than @samp{-silent} and would be useless > +for an interactive session. > + > +This is particularly useful when using targets that give @samp{Loading section} messages, for example. > + > +Note that targets that give their output via @value{GDBN}, as opposed to > +writing directly to @code{stdout}, will also be made silent. This is okay, but still the first sentence has only one space after the period that ends it.