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: reference environment variables from gdb scripts


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


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