Re: [PATCH] Display configuration details in --help

Pedro Alves
2013-03-21T18:00:55Z

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