Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: rockwellkc <koling@kchang.net>
To: gdb@sourceware.org
Subject: reference environment variables from gdb scripts
Date: Thu, 23 Aug 2007 21:19:00 -0000	[thread overview]
Message-ID: <12302351.post@talk.nabble.com> (raw)


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.


             reply	other threads:[~2007-08-23 21:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-23 21:19 rockwellkc [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12302351.post@talk.nabble.com \
    --to=koling@kchang.net \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox