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

Doug Evans
2012-06-19T07:59:27Z

On Sat, Jun 16, 2012 at 2:31 PM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Sat, 16 Jun 2012 23:14:15 +0200, Eli Zaretskii wrote:
>> My concern is about what happens before ~/.gdbinit is loaded, so
>> nothing that happens after that can resolve that.
>
> I do not understand which command would you want to run before ~/.gdbinit.
> Real world ~/.gdbinit should only change settings or define new commands.
>
>
>> > I have not found a use case where the current behavior is better.
>>
>> It doesn't have to be better.  It has the advantage of being there
>> first.  It's the new behavior that must have a significant advantage
>> to justify an incompatible change of behavior.
>
> The idea is that this is not a "change" as 7.4 did not have -iex at all.
> -iex/-ix is a new feature for 7.5 so I am trying to make it right before it
> becomes a standard.

I'm not sure I have an opinion on the order of -iex vs ~/.gdbinit (etc.).
I do believe, however, that we need to have the freedom to change
features introduced after the previous release and before the next if
we have reason to believe we got it wrong.
[IOW, the fact that we're changing behaviour here is less important to
deciding what behaviour we want.]