From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21575 invoked by alias); 23 Aug 2007 21:19:52 -0000 Received: (qmail 21455 invoked by uid 22791); 23 Aug 2007 21:19:51 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 23 Aug 2007 21:19:46 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IOK5g-000705-Tx for gdb@sourceware.org; Thu, 23 Aug 2007 14:19:44 -0700 Message-ID: <12302351.post@talk.nabble.com> Date: Thu, 23 Aug 2007 21:19:00 -0000 From: rockwellkc To: gdb@sourceware.org Subject: reference environment variables from gdb scripts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: koling@kchang.net X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00177.txt.bz2 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.