From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18985 invoked by alias); 6 Apr 2007 18:26:53 -0000 Received: (qmail 18973 invoked by uid 22791); 6 Apr 2007 18:26:52 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.236) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 06 Apr 2007 19:26:50 +0100 Received: by wr-out-0506.google.com with SMTP id 70so702976wra for ; Fri, 06 Apr 2007 11:26:49 -0700 (PDT) Received: by 10.115.106.7 with SMTP id i7mr1309763wam.1175884008709; Fri, 06 Apr 2007 11:26:48 -0700 (PDT) Received: by 10.114.77.8 with HTTP; Fri, 6 Apr 2007 11:26:48 -0700 (PDT) Message-ID: Date: Fri, 06 Apr 2007 18:26:00 -0000 From: vb To: gdb@sourceware.org Subject: access variables in canned command sequences MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 8a5639bc1aaa67a3 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/msg00037.txt.bz2 Hello all, I need to be able pass a convenience variable defined in gdb command file to a shell script from inside a canned sequence, something like this: set $offs=0x1ff80000 define xyz shell echo offset is $offs end what happens when I run it - the parameter does not get passed to the shell at all: (gdb) xyz offset is (gdb) What gives?! Any help would be highly appreciated, cheers, Vadim