From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19641 invoked by alias); 21 Sep 2005 21:43:07 -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 19585 invoked by uid 22791); 21 Sep 2005 21:42:56 -0000 Received: from brmea-mail-4.sun.com (HELO brmea-mail-4.sun.com) (192.18.98.36) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 21 Sep 2005 21:42:56 +0000 Received: from phys-mpk-1 ([129.146.11.81]) by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id j8LLgsXZ001818 for ; Wed, 21 Sep 2005 15:42:55 -0600 (MDT) Received: from conversion-daemon.mpk-mail1.sfbay.sun.com by mpk-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IN600J01S50I0@mpk-mail1.sfbay.sun.com> (original mail from Olatunji.Ruwase@Sun.COM) for gdb@sourceware.org; Wed, 21 Sep 2005 14:42:54 -0700 (PDT) Received: from Sun.COM (ruwase.SFBay.Sun.COM [129.146.78.63]) by mpk-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IN6000GSSBI0E@mpk-mail1.sfbay.sun.com>; Wed, 21 Sep 2005 14:42:54 -0700 (PDT) Date: Wed, 21 Sep 2005 21:43:00 -0000 From: Olatunji Ruwase Subject: Re: Help with gdb testsuite (lib/gdb.exp) In-reply-to: <20050921184140.GA12454@nevyn.them.org> To: Daniel Jacobowitz Cc: gdb@sourceware.org Reply-to: Olatunji.Ruwase@Sun.COM Message-id: <4331D3DE.7090700@Sun.COM> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20041214 References: <4331A7CA.6050807@Sun.COM> <20050921184140.GA12454@nevyn.them.org> X-SW-Source: 2005-09/txt/msg00165.txt.bz2 Thanks for your response. I found out that release versions I quoted in my initial email were wrong, sorry about that :(. runtest was picking up an older version of expect and tcl. % runtest -V WARNING: Couldn't find the global config file. Expect version is 5.25.0 Tcl version is 8.0 Framework version is 1.4.4 The simple test you prescribed worked on tcl version 8.4 but not on 8.0, i.e newlines remain in $b. Making runtest use the newer releases solved the problem. Thanks tunji Running on a sparc machine % tclsh % info tclversion 8.0 % set a { a b c d} a b c d % regsub -all {\n} ${a} { } b 0 % set a a b c d % set b a b c d % Daniel Jacobowitz wrote On 09/21/05 11:41,: > On Wed, Sep 21, 2005 at 11:34:50AM -0700, Olatunji Ruwase wrote: > >>Hi, >> I hope this is the right medium for my problem, if not I apologise and >>would appreciate if this could be forwarded to the appropriate list. >> >>I recently started playing with the gdb testsuite and ran into a problem >>I traced as far as gdb_test_multiple in lib/gdb.exp. Below is the >>command line and error message in gdb.log. > > > Is something wrong with your TCL installation maybe? Try this in > tclsh: > > set a { a > b > c > d} > > regsub -all {\n} ${a} { } b > > set a > > set b > > It should show you $b without newlines. > > >>dejagnu 1.4.4 >>expect 5.43 >>gdb 6.4 >>tcl 8.4.9 > > > What platform is this? >