reference environment variables from gdb scripts

Jan Kratochvil jan.kratochvil@redhat.com
Fri Aug 24 08:58:00 GMT 2007


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



More information about the Gdb mailing list