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/RFC] Move the cmdarg before load execarg


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


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