From: Hui Zhu <teawater@gmail.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Tom Tromey <tromey@redhat.com>,
gdb-patches ml <gdb-patches@sourceware.org>
Subject: Re: [PATCH/RFC] Move the cmdarg before load execarg
Date: Tue, 08 Feb 2011 13:39:00 -0000 [thread overview]
Message-ID: <AANLkTimefEMHAk8NAomD813iBLED5TxpeGx3pmu4jVz4@mail.gmail.com> (raw)
In-Reply-To: <20110131110412.GA13702@host1.dyn.jankratochvil.net>
On Mon, Jan 31, 2011 at 19:04, Jan Kratochvil <jan.kratochvil@redhat.com> wrote:
> On Sun, 30 Jan 2011 01:31:46 +0100, Hui Zhu wrote:
>> 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.
>
> ~/.gdbinit is read before anything else.
>
> first: mv ~/.gdbinit ~/.gdbinit2
>
> alias arm-gdb='echo -e "set gnutarget elf32-littlearm\nsource ~/.gdbinit2" >~/.gdbinit; /usr/bin/gdb'
> alias gdb='echo -e "source ~/.gdbinit2" >~/.gdbinit; /usr/bin/gdb'
>
>
> Regards,
> Jan
>
Thanks Jan. This way is cool.
Hui
next prev parent reply other threads:[~2011-02-08 13:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-28 9:28 Hui Zhu
2011-01-28 9:58 ` Jan Kratochvil
2011-01-28 12:25 ` Tom Tromey
2011-01-30 0:52 ` Hui Zhu
2011-01-31 15:03 ` Jan Kratochvil
2011-02-08 13:39 ` Hui Zhu [this message]
2011-01-31 15:05 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimefEMHAk8NAomD813iBLED5TxpeGx3pmu4jVz4@mail.gmail.com \
--to=teawater@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox