This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] -iex and -ix: Execute them _after_ gdbinits
On Fri, 22 Jun 2012 11:44:08 +0200, Eli Zaretskii wrote:
> 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.
This is a case explicitly depending on the feature A which was not present in
gdb-7.4.
There exist other possibilities how to achieve the same, such as
'-ix /etc/gdbinit2' or /etc/gdbinit defining macro R and macro S and then
using -iex R or -iex S.
I do not consider this example as worth introducing new command.
Thanks,
Jan