This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Display configuration details in --help
- From: Pedro Alves <palves at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Thu, 21 Mar 2013 18:00:35 +0000
- Subject: Re: [PATCH] Display configuration details in --help
- References: <83r4jaynqq dot fsf at gnu dot org> <CADPb22R4o4gkQk8oeqGvmWZerVf7gdkw8XOKz9mYxD6ubFPRig at mail dot gmail dot com>
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