From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31753 invoked by alias); 24 Aug 2007 08:58:59 -0000 Received: (qmail 31693 invoked by uid 22791); 24 Aug 2007 08:58:58 -0000 X-Spam-Check-By: sourceware.org Received: from pauline.vellum.cz (HELO pauline.vellum.cz) (89.250.243.234) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 24 Aug 2007 08:58:54 +0000 Received: from host0.dyn.jankratochvil.net (localhost.localdomain [127.0.0.1]) by pauline.vellum.cz (8.12.11.20060308/8.12.11) with ESMTP id l7O8vgHC028081; Fri, 24 Aug 2007 10:57:42 +0200 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.1/8.13.8) with ESMTP id l7O8vf6x011347; Fri, 24 Aug 2007 10:57:41 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.1/8.14.1/Submit) id l7O8vefS011346; Fri, 24 Aug 2007 10:57:40 +0200 Date: Fri, 24 Aug 2007 08:58:00 -0000 From: Jan Kratochvil To: rockwellkc Cc: gdb@sourceware.org Subject: Re: reference environment variables from gdb scripts Message-ID: <20070824085740.GA11291@host0.dyn.jankratochvil.net> References: <12302351.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12302351.post@talk.nabble.com> User-Agent: Mutt/1.5.14 (2007-02-12) 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/msg00180.txt.bz2 On Thu, 23 Aug 2007 23:19:44 +0200, rockwellkc wrote: > > Is there a way to reference an environment variable from a gdbscript? Unaware. > I'm hoping a gdb script command to load different script files based on the > current environment variable. Set bash function and use the --command parameter? > source $HOME/gdb.scripts $HOME -> ~ and it should work. Regards, Jan