From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7941 invoked by alias); 20 Nov 2002 08:48:02 -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 7928 invoked from network); 20 Nov 2002 08:47:59 -0000 Received: from unknown (HELO ns.aus.com) (66.127.240.212) by sources.redhat.com with SMTP; 20 Nov 2002 08:47:59 -0000 Received: from localhost (rsharpe@localhost) by ns.aus.com (8.11.6/8.11.6) with ESMTP id gAK9C4r07012 for ; Wed, 20 Nov 2002 19:42:04 +1030 Date: Wed, 20 Nov 2002 00:48:00 -0000 From: Richard Sharpe 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-11/txt/msg00242.txt.bz2 Hi, The following script does not seem to work: define load-ko-syms path ./freebsd_46_i386/debug/export/kernel set $file = linker_files.tqh_first set $file = $file->link.tqe_next if ($file == 0) printf "No klds to load symbols for\n" else while ($file != 0) add-symbol-file $file->filename ($file->address + $file->text_offs) printf "Loaded symbols for %s\n", $file->filename set $file = $file->link.tqe_next end end end The loop works, but add-symbol-file seems to be called without the convenience variables being expanded. Have it got that right? If so, what would be the first step to get them expanded? Regards ----- Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com