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] -iex and -ix: Execute them _after_ gdbinits


> Date: Fri, 22 Jun 2012 09:51:13 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: gdb-patches@sourceware.org
> 
> > Specifically, why isn't it a
> > good feature to be able to execute commands before loading .gdbinit?
> 
> I do not see how it could be useful, in such cases one can execute the
> commands after loading /etc/gdbinit or ~/.gdbinit with the same effect.

A simple scenario where this could be useful is when either of these
two files does something conditioned on some variable's value.  Then
setting that variable before these are loaded can control what loading
them does.


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