From: "Weihua JIANG" <weihua.jiang@gmail.com>
To: "Weihua JIANG" <weihua.jiang@gmail.com>, gdb@sourceware.org
Subject: Re: How to use shell environment variable in GDB?
Date: Tue, 12 Jun 2007 12:50:00 -0000 [thread overview]
Message-ID: <266164370706120549w6534b21t2ce23e78741484d6@mail.gmail.com> (raw)
In-Reply-To: <20070612112030.GB29495@caradoc.them.org>
Does gdb support custom command? If so, I can define the 3 commands
you mentioned as one custom command.
Thanks
Weihua
2007/6/12, Daniel Jacobowitz <drow@false.org>:
> On Tue, Jun 12, 2007 at 05:00:02PM +0800, Weihua JIANG wrote:
> > E.g. I have a shell environment variable CSR which points to a deep
> > directory. Now I hope to load the executable file using below command:
> > file $CSR/bin/aaa
> > But, since GDB can't recognize this environment variable, it can't
> > load the executable file.
> >
> > How can I use BASH environment variable in GDB?
>
> This is not supported. You might be able to use this hack:
>
> shell echo file $CSR/bin/aaa > tmp.scr
> source tmp.scr
> shell rm tmp.scr
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
next prev parent reply other threads:[~2007-06-12 12:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-12 9:00 Weihua JIANG
2007-06-12 11:20 ` Daniel Jacobowitz
2007-06-12 12:50 ` Weihua JIANG [this message]
2007-06-12 12:56 ` Daniel Jacobowitz
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=266164370706120549w6534b21t2ce23e78741484d6@mail.gmail.com \
--to=weihua.jiang@gmail.com \
--cc=gdb@sourceware.org \
/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