« Return to Thread: reference environment variables from gdb scripts

reference environment variables from gdb scripts

by rockwellkc :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: reference environment variables from gdb scripts