« Return to Thread: reference environment variables from gdb scripts

Re: reference environment variables from gdb scripts

by Jan Kratochvil-3 :: Rate this Message:

Reply to Author | View in Thread

On Thu, 23 Aug 2007 23:19:44 +0200, rockwellkc wrote:
>
> Is there a way to reference an environment variable from a gdbscript?

Unaware.

> I'm hoping a gdb script command to load different script files based on the
> current environment variable.

Set bash function and use the --command parameter?

> source $HOME/gdb.scripts

$HOME -> ~
and it should work.


Regards,
Jan

 « Return to Thread: reference environment variables from gdb scripts