From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23824 invoked by alias); 9 Mar 2007 01:41:51 -0000 Received: (qmail 23810 invoked by uid 22791); 9 Mar 2007 01:41:50 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 Mar 2007 01:41:44 +0000 Received: from kahikatea.snap.net.nz (188.60.255.123.dynamic.snap.net.nz [123.255.60.188]) by viper.snap.net.nz (Postfix) with ESMTP id D30653DA3E9; Fri, 9 Mar 2007 14:41:40 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id E70D24F736; Fri, 9 Mar 2007 14:41:40 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17904.47955.434664.273574@kahikatea.snap.net.nz> Date: Fri, 09 Mar 2007 01:41:00 -0000 To: "Ulrich Weigand" Cc: drow@false.org (Daniel Jacobowitz), gdb-patches@sourceware.org Subject: Re: -var-create testsuite updates [PATCH] In-Reply-To: <200703090100.l29106BM024625@d12av02.megacenter.de.ibm.com> References: <17876.51347.325984.284231@kahikatea.snap.net.nz> <200703090100.l29106BM024625@d12av02.megacenter.de.ibm.com> X-Mailer: VM 7.19 under Emacs 22.0.95.2 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00108.txt.bz2 > >! mi_gdb_test "-var-create lpcharacter * lpcharacter" \ > >! "\\^done,name=\"lpcharacter\",numchild=\"1\",value=\"$hex \\\\\".*\\\\\"\",type=\"char \\*\"" \ > >! "create local variable lpcharacter" > > I'm not completely sure what the somewhat complex regular expression after "value" > is supposed to test, but it fails on SPU. I get: > > -var-create lpcharacter * lpcharacter^M > ^done,name="lpcharacter",numchild="1",value="0x0",type="char *"^M > (gdb) ^M > FAIL: gdb.mi/mi-var-cmd.exp: create local variable lpcharacter > > Is this a testcase problem, or is there really something going wrong? The test is wrong. It looks like SPU initialises locals to 0. > (B.t.w. the same problem occurs also in mi2-var-cmd.exp.) The value field for -var-create is new. I tried to make the regexp as specific as possible for a more exacting test. If value=\"($hex).*\" works in all cases (I might have the syntax wrong, I mean matching "0xabc" and "0xabc \"blah\"") that would be good. Otherwise just value=\".*\" will do. -- Nick http://www.inet.net.nz/~nickrob