From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29842 invoked by alias); 21 Mar 2013 18:00:55 -0000 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 Received: (qmail 29790 invoked by uid 89); 21 Mar 2013 18:00:44 -0000 X-Spam-SWARE-Status: No, score=-8.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 21 Mar 2013 18:00:41 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2LI0bxe021068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 21 Mar 2013 14:00:37 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r2LI0ZGg003963; Thu, 21 Mar 2013 14:00:36 -0400 Message-ID: <514B4AC3.1090103@redhat.com> Date: Thu, 21 Mar 2013 18:25:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Doug Evans CC: Eli Zaretskii , gdb-patches Subject: Re: [PATCH] Display configuration details in --help References: <83r4jaynqq.fsf@gnu.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-03/txt/msg00795.txt.bz2 On 03/21/2013 05:54 PM, Doug Evans wrote: > Hi. I like the idea, but the implementation imposes a future > maintenance burden. > Would it be sufficient to just store the original string somewhere and > print that? > I believe that's what gcc does (at least it's configure.ac that > computes a string and saves that in a global, and gcc just prints that > global, instead of a series of #if/#ifdefs). Speaking of gcc, gcc also doesn't put it in --help, but rather in -v. While I like the idea too, it looks to me that this >> This GDB is configured as follows: >> configure --host=i686-pc-mingw32 --target=i686-pc-mingw32 >> --with-auto-load-dir=$debugdir:$datadir/auto-load >> --with-auto-load-safe-path=$debugdir:$datadir/auto-load >> --with-expat >> --with-gdb-datadir=d:/usr/share/gdb (relocatable) >> --with-jit-reader-dir=d:/usr/lib/gdb (relocatable) >> --without-libunwind-ia64 >> --with-lzma >> --with-python=d:/usr/Python26 (relocatable) >> --with-separate-debug-dir=d:/usr/lib/debug (relocatable) >> --with-system-gdbinit=d:/usr/etc/gdbinit (relocatable) >> --with-zlib >> >> is a significant amount of clutter for gdb's --help. What do you think about putting this elsewhere? "gdb --configuration" or some such, perhaps? -- Pedro Alves