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

Eli Zaretskii
2013-03-21T18:40:04Z

> Date: Thu, 21 Mar 2013 18:00:35 +0000
> From: Pedro Alves <palves@redhat.com>
> CC: Eli Zaretskii <eliz@gnu.org>, gdb-patches <gdb-patches@sourceware.org>
>
> 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?

Fine with me, I can prepare a patch for that, if no one objects.

Should we also move this part to the new switch?

At startup, GDB reads the following init files and executes their commands:
* user-specific init file: D:\usr\eli/.gdbinit
* local init file (see also 'set auto-load local-gdbinit'): ./.gdbinit