From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24868 invoked by alias); 29 Jul 2003 22:30:41 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 24859 invoked from network); 29 Jul 2003 22:30:41 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 29 Jul 2003 22:30:41 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h6TMUeZ07337 for ; Tue, 29 Jul 2003 18:30:40 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h6TMUc621041; Tue, 29 Jul 2003 18:30:39 -0400 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h6TMUcK01036; Tue, 29 Jul 2003 15:30:38 -0700 Message-ID: <3F26F58D.60401@redhat.com> Date: Tue, 29 Jul 2003 22:30:00 -0000 From: Michael Snyder User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Carlton CC: gdb-patches@sources.redhat.com Subject: Re: Add sh target to float.exp References: <3F26EDCB.1090106@redhat.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-07/txt/msg00539.txt.bz2 David Carlton wrote: >On Tue, 29 Jul 2003 14:57:31 -0700, Michael Snyder said: > > >>+ send_gdb "info float\n" >>+ gdb_expect { >>+ -re ".*fpul.*fr0.*dr0.*$gdb_prompt $" { >>+ pass "info float (with FPU)" >>+ } >>+ -re "No floating.point info available for this processor.*$gdb_prompt $" { >>+ pass "info float (without FPU)" >>+ } >>+ -re ".*$gdb_prompt $" { >>+ fail "info float" >>+ } >>+ timeout { >>+ fail "info float (timeout)" >>+ } >>+ } >> >> > >Does replacing the above with > > gdb_test_multiple "info float" "info float" { > -re ".*fpul.*fr0.*dr0.*$gdb_prompt $" { > pass "info float (with FPU)" > } > -re "No floating.point info available for this processor.*$gdb_prompt $" { > pass "info float (without FPU)" > } > >work? > Yep! > Daniel's been trying to convince us to use gdb_test_multiple >instead of gdb_expect, and it definitely saves typing once you get >used to it. > I'm sold. If the patch is approved, I'll check it in in that form.