This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: reference environment variables from gdb scripts
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: rockwellkc <koling at kchang dot net>
- Cc: gdb at sourceware dot org
- Date: Fri, 24 Aug 2007 10:57:40 +0200
- Subject: Re: reference environment variables from gdb scripts
- References: <12302351.post@talk.nabble.com>
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