Re: [PATCH/RFC] Move the cmdarg before load execarg

Hui Zhu
2011-01-30T00:32:13Z

On Fri, Jan 28, 2011 at 20:11, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
>
> Jan> It apparently breaks the much more common case of:
> Jan>    gdb program -ex 'b main'
>
> FWIW, I think backward compatibility here is more important than whether
> or not the options are defined in the best way possible.  In this case
> it is especially true, since there is a fairly reasonable workaround.
>
> Tom
>

Agree with you.

Do you think we can add some other options to let gdb exec some
command before load the file?
Cause my gdb support multi-arch, but need "set gnutarget" everytime
when I use it. So I want add a alias in my bashrc like alias
arm-gdb='gdb -ex "set gnutarget"' or a shell to make it works better.

Thanks,
Hui