Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* reference environment variables from gdb scripts
@ 2007-08-23 21:19 rockwellkc
  2007-08-24  8:58 ` Jan Kratochvil
  0 siblings, 1 reply; 11+ messages in thread
From: rockwellkc @ 2007-08-23 21:19 UTC (permalink / raw)
  To: gdb


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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-08-28 21:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-23 21:19 reference environment variables from gdb scripts rockwellkc
2007-08-24  8:58 ` Jan Kratochvil
2007-08-24 16:38   ` Sheng-Liang Song
2007-08-24 17:30     ` Eli Zaretskii
2007-08-24 18:29       ` Sheng-Liang Song
2007-08-25  9:58         ` Eli Zaretskii
2007-08-27 18:30           ` reference environment variables from gdb scripts (gdb and unix pipe) Sheng-Liang Song
2007-08-28 21:03             ` Jim Blandy
2007-08-28 21:08               ` GDB Tool Chains McGuerty, Jay S.
2007-08-28 21:56                 ` Peter Toft
2007-08-28 21:59                 ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox