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


> From: Doug Evans <dje@google.com>
> Date: Wed, 14 Nov 2012 10:17:46 -0800
> Cc: gdb-patches@sourceware.org
> 
> +* If the system-wide init file (specified by --with-system-gdbinit) lives
> +  in GDB's data-directory, then GDB will now look for it in the directory
> +  specified by the --data-directory command line option.

"Look for it" means that GDB will search the file there.  But what you
really want to say is that GDB will read the file, because "if the
system-wide init file lives in GDB's data-directory", there's no need
to search for the file: it's already known to be there.

Alternatively, you could say this simpler, e.g.:

  GDB now looks for a system-wide init file in the directory specified
  by the --data-directory command line option.

(Assuming I understood correctly what the feature does.)

> +If the system-wide init file lives in the @value{GDBN} data-directory
> +(@pxref{Data Files}), then @value{GDBN} will look for the file in the
> +directory specified by the @option{--data-directory} command line option.

Same here.

OK with those changes.  Thanks.


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