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

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


> Date: Wed, 14 Nov 2012 13:30:43 -0800
> From: Doug Evans <dje@google.com>
> Cc: palves@redhat.com, gdb-patches@sourceware.org
> 
> >   GDB now looks for a system-wide init file in the directory specified
> >   by the --data-directory command line option.
> 
> That's too brief, I like my wording better (given that we're both
> using the word "look").
> Remember, this only happens *if* system.gdbinit lives somewhere
> underneath data-directory.

_What_ will happen if the file lives there?

The above sentence describes what happens from GDB' POV.  GDB is not
clairvoyant, so it cannot know a-priori whether the file is or isn't
in the data directory.  The sentence says it will look there for the
file, i.e. try to see if the file is there.  Isn't that what happens?
Maybe I misunderstand something.

> I'm not sure how to proceed.

We are proceeding now ;-)



More information about the Gdb-patches mailing list