[RFA] Look for system.gdbinit in specified --data-directory

Eli Zaretskii eliz@gnu.org
Thu Nov 15 18:03:00 GMT 2012


> Date: Thu, 15 Nov 2012 06:29:07 -0800
> From: Doug Evans <dje@google.com>
> Cc: palves@redhat.com, gdb-patches@sourceware.org
> 
> When I wrote:
> 
> >> Remember, this only happens *if* system.gdbinit lives somewhere
> >> underneath data-directory.
> 
> pretend I said:
> 
> Remember, this only happens *if* the configured location of
> system.gdbinit (the value of --with-system-gdbinit) is in the
> configured location of data-directory (the value of
> --with-gdb-datadir).

Ah, okay, sorry for my misunderstanding.

But why "pretend"?  Why not say this explicitly?  Like this, for
example:

  If the configured location of system.gdbinit file (as given by the
  --with-system-gdbinit option at configure time) is in the
  data-directory (as specified by --with-gdb-datadir at configure
  time) or in one of its subdirectories, then GDB will look for the
  system-wide init file in the directory specified by the
  --data-directory command-line option.



More information about the Gdb-patches mailing list