From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7053 invoked by alias); 6 Dec 2002 16:30:58 -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 7046 invoked from network); 6 Dec 2002 16:30:57 -0000 Received: from unknown (HELO ns.aus.com) (66.127.241.71) by sources.redhat.com with SMTP; 6 Dec 2002 16:30:57 -0000 Received: from localhost (rsharpe@localhost) by ns.aus.com (8.11.6/8.11.6) with ESMTP id gB6Gv7m00469 for ; Fri, 6 Dec 2002 08:57:07 -0800 X-Authentication-Warning: ns.aus.com: rsharpe owned process doing -bs Date: Fri, 06 Dec 2002 08:30:00 -0000 From: Richard Sharpe X-X-Sender: To: Subject: Processing of convenience variables for scripts ... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-12/txt/msg00117.txt.bz2 Hi, In looking at this issue, it seems that much of the existing code that deals with variables is centered around printing: value_print (var->value, gdb_stdout, 0, Val_pretty_default); While it seems that I could mess with providing new functions for a stream structure that I could retrieve strings from, is there a simpler way. I envision something like var1 = value_to_string (var->value); And then construct a new command, and pass it through the standard routine that processes commands. However, it seems that things are not that simple :-) Regards ----- Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com