This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to use exported shell varible in gdb
- From: Tom Tromey <tromey at redhat dot com>
- To: robert song <robertsong dot japan at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 08 Jun 2010 15:03:54 -0600
- Subject: Re: How to use exported shell varible in gdb
- References: <AANLkTimKBt2uPrsOkwjEwS-689djFvgUxOxxkYz5vKXm@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "robert" == robert song <robertsong.japan@gmail.com> writes:
Sorry for the delay in replying to this.
robert> I exported one variable in $HOME/.bashrc.
robert> export mygit="$HOME/git"
robert> But I can't use in gdb.
robert> (gdb) cd $mygit
robert> $mygit: No such file or directory.
robert> Is it possible to use it in gdb ?
Not without some difficulty.
You could probably do it by writing some kind of "eval" command in Python.
"eval" itself was discussed on the patches list for a while; I don't
remember what happened to it.
Tom