From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20983 invoked by alias); 8 Dec 2002 19:36:49 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 20976 invoked from network); 8 Dec 2002 19:36:48 -0000 Received: from unknown (HELO neon-gw.transmeta.com) (63.209.4.196) by sources.redhat.com with SMTP; 8 Dec 2002 19:36:48 -0000 Received: (from root@localhost) by neon-gw.transmeta.com (8.9.3/8.9.3) id LAA14289; Sun, 8 Dec 2002 11:36:45 -0800 Received: from mailhost.transmeta.com(10.1.1.15) by neon-gw.transmeta.com via smap (V2.1) id xma014279; Sun, 8 Dec 02 11:36:19 -0800 Received: from casey.transmeta.com (casey.transmeta.com [10.10.25.22]) by deepthought.transmeta.com (8.11.6/8.11.6) with ESMTP id gB8JaMR21158; Sun, 8 Dec 2002 11:36:22 -0800 (PST) Received: (from dje@localhost) by casey.transmeta.com (8.9.3/8.7.3) id LAA24307; Sun, 8 Dec 2002 11:36:22 -0800 Date: Sun, 08 Dec 2002 11:36:00 -0000 Message-Id: <200212081936.LAA24307@casey.transmeta.com> From: Doug Evans To: fnasser@redhat.com cc: gdb@sources.redhat.com Subject: Re: Processing of convenience variables for scripts ... References: <20021120163549.GA14036@nevyn.them.org> <20021120183613.GA24089@nevyn.them.org> X-SW-Source: 2002-12/txt/msg00164.txt.bz2 Fernando writes: >>Daniel Jacobowitz wrote: >> >> In that case, in the short term, it would be worthwhile to implement >> eval. A simple version would just find any individual word that >> started with a $ and substitute variables, and end up with something >> like "eval add-symbol-file $name $addr". > > Seems useful to me, and probably not difficult to implement. add-symbol-file takes a file name as the first argument and you can't store strings (of any kind) in convenience variables. I haven't checked FSF sources in the last few months, maybe things have improved. If so great. If not, how would this work?