* How to use exported shell varible in gdb
@ 2010-05-27 13:05 robert song
2010-06-08 21:04 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: robert song @ 2010-05-27 13:05 UTC (permalink / raw)
To: gdb
Hi, everyone.
I exported one variable in $HOME/.bashrc.
export mygit="$HOME/git"
But I can't use in gdb.
(gdb) cd $mygit
$mygit: No such file or directory.
Is it possible to use it in gdb ?
Best Regards,
robert
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to use exported shell varible in gdb
2010-05-27 13:05 How to use exported shell varible in gdb robert song
@ 2010-06-08 21:04 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2010-06-08 21:04 UTC (permalink / raw)
To: robert song; +Cc: gdb
>>>>> "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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-08 21:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-27 13:05 How to use exported shell varible in gdb robert song
2010-06-08 21:04 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).