This is the mail archive of the gdb@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: How to use exported shell varible in 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


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