From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19922 invoked by alias); 9 Mar 2009 04:00:41 -0000 Received: (qmail 19913 invoked by uid 22791); 9 Mar 2009 04:00:40 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout2.012.net.il (HELO mtaout2.012.net.il) (84.95.2.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Mar 2009 04:00:31 +0000 Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KG800B000H6DR00@i_mtaout2.012.net.il> for gdb-patches@sourceware.org; Mon, 09 Mar 2009 06:01:09 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.192.247]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KG8008BO0HNUPD1@i_mtaout2.012.net.il>; Mon, 09 Mar 2009 06:01:08 +0200 (IST) Date: Mon, 09 Mar 2009 04:00:00 -0000 From: Eli Zaretskii Subject: Re: [patch] Better display command-line macros + doc addon [Re: [patch] doc: Document macros defined from command-line] In-reply-to: <20090309001422.GA29150@host0.dyn.jankratochvil.net> To: Jan Kratochvil Cc: gdb-patches@sourceware.org, brobecker@adacore.com Reply-to: Eli Zaretskii Message-id: References: <20090306204631.GA27092@host0.dyn.jankratochvil.net> <20090309001422.GA29150@host0.dyn.jankratochvil.net> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00108.txt.bz2 > Date: Mon, 9 Mar 2009 01:14:22 +0100 > From: Jan Kratochvil > Cc: gdb-patches@sourceware.org, Joel Brobecker > > On Sat, 07 Mar 2009 10:16:10 +0100, Eli Zaretskii wrote: > > . Tell about the way of defining macros before describing what GDB > > does in that case. > > . Don't qualify the -Dfoo=bar feature by "Unix", since on non-Unix > > platforms GDB supports only GCC-produced debug info. > > . Use @var for meta-syntactic variables that stand for something > > else. > > Understood, used your text. > > > > > +Defined at /home/jimb/gdb/macros/play/sample.c:0 > > > +#define __STDC__ 1 > > > > Should we perhaps show "-D__STDC__=1" here? > > Good idea, a code patch attached. > > > > Also, perhaps add a short notice of this feature at the beginning of > > the section, where "info macro" is described. > > Made there the change. Thank you.