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]

reference environment variables from gdb scripts


Is there a way to reference an environment variable from a gdbscript?
I'm hoping a gdb script command to load different script files based on the
current environment variable.
I can see these variable using "show env" command. But when I reference them
in a file like below, it gives me errors:

source $HOME/gdb.scripts
          

Is there a way to do something like this?

Thanks
-- 
View this message in context: http://www.nabble.com/reference-environment-variables-from-gdb-scripts-tf4320152.html#a12302351
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.


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