This is the mail archive of the gdb-patches@sources.redhat.com 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: RFC: Check permissions of .gdbinit files


On Mon, May 30, 2005 at 07:00:26PM -0400, Daniel Jacobowitz wrote:
> On Tue, May 31, 2005 at 12:49:05AM +0200, Andreas Schwab wrote:
> > If you have a group of developers working on the same project you might
> > want a shared .gdbinit somewhere.
> 
> I'm leaning towards handling that by suggesting in the manual that you
> use "source .gdbinit" in $HOME/.gdbinit for that.  I agree that it's a
> little less convenient.  I dunno.

The really bad thing about this is that you can't source a generic path.
For instance, source $GROUP_GDB_INIT_DIR/.gdbinit

Make's it very hard to make the .gdbinit scripts configurable. For
instance, since this is for .gdbinit files that are typically not in
$HOME, you would probably have one for every program that is built (or
something like that). So if you were unfortunate enough to be effected
by this change, you would have to change your $HOME/.gdbinit path each
time to point to the .gdbinit you wanted to source. This would be
annoying. 

What if we had GDB prompt the user to determine if they wanted to read
the .gdbinit file in? Then we could add another configuration variable
to GDB that allowed it to always read in the files. That way, by
default GDB would be more safe, but for the rest of us, it would work
the way it always has.

Thanks,
Bob Rossi


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