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: [patch#2 2/6] set auto-load * main part


> Date: Thu, 5 Apr 2012 20:25:04 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: gdb-patches@sourceware.org
> 
> > > # Be aware that system init file (@pxref{System-wide configuration})
> > > # and init files from your home directory (@pxref{Home Directory Init File})
> > > # still get read still get read (as they come from generally trusted
> > > # directories).  You could use also the @ref{-nx} option to prevent @value{GDBN}
> > > # from reading any auto-loaded files instead.
> > > 
> > > IMO says that -nx will disable even objfile-gdb.py, libthread_db.so.1 etc.
> > > auto-loading.  Or at least it is ambiguous in such way.
> > 
> > Point taken, but then what _did_ you mean by "very every"?
> 
> I wanted to say that if you want to prevent loading any kind of file then you
> have to use both -nx and "set auto-load no".

Ah, I see I missed the other interpretation of "also".  So here's a
revised suggestion:

  Be aware that system init file (@pxref{System-wide configuration})
  and init files from your home directory (@pxref{Home Directory Init File})
  still get read (as they come from generally trusted (as they come from
  generally trusted directories).  To prevent @value{GDBN} from auto-loading
  even those init files, use the @option{-nx} option (@pxref{Mode Options}),
  in addition to @code{set auto-load no}.

OK?


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