From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17926 invoked by alias); 9 Apr 2007 19:39:23 -0000 Received: (qmail 17918 invoked by uid 22791); 9 Apr 2007 19:39:22 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.235) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Apr 2007 20:39:16 +0100 Received: by wr-out-0506.google.com with SMTP id 70so1043145wra for ; Mon, 09 Apr 2007 12:39:14 -0700 (PDT) Received: by 10.114.205.1 with SMTP id c1mr2481942wag.1176147553569; Mon, 09 Apr 2007 12:39:13 -0700 (PDT) Received: by 10.114.77.8 with HTTP; Mon, 9 Apr 2007 12:39:13 -0700 (PDT) Message-ID: Date: Mon, 09 Apr 2007 19:39:00 -0000 From: vb To: "Nick Roberts" Subject: Re: access variables in canned command sequences Cc: gdb@sourceware.org In-Reply-To: <17946.4774.878951.277496@farnswood.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <17946.4774.878951.277496@farnswood.snap.net.nz> X-Google-Sender-Auth: 6470555ec1f0a227 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-04/txt/msg00044.txt.bz2 On 4/9/07, Nick Roberts wrote: > > define xyz > printf "offset is %d\n", $offs > end > Yeah, this works as we know, but is there any way of passing an internal variable value to the shell? Somebody mentioned setting up an environment variable - this seems interesting, I tried set environment offset 0x1000 shell env | grep offset `offset' does not get set for the shell started from within gdb.... Would there be any other way? cheers, /vb > -- > Nick http://www.inet.net.nz/~nickrob >