Re: [patch] -iex and -ix: Execute them _after_ gdbinits

Eli Zaretskii
2012-06-22T09:44:26Z

> 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.