This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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 ;-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]