From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7151 invoked by alias); 29 Jul 2003 22:03:23 -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 7144 invoked from network); 29 Jul 2003 22:03:22 -0000 Received: from unknown (HELO hawaii.kealia.com) (209.3.10.89) by sources.redhat.com with SMTP; 29 Jul 2003 22:03:22 -0000 Received: by hawaii.kealia.com (Postfix, from userid 2049) id 6409FC6DB; Tue, 29 Jul 2003 15:03:22 -0700 (PDT) To: Michael Snyder Cc: gdb-patches@sources.redhat.com Subject: Re: Add sh target to float.exp References: <3F26EDCB.1090106@redhat.com> From: David Carlton Date: Tue, 29 Jul 2003 22:03:00 -0000 In-Reply-To: <3F26EDCB.1090106@redhat.com> (Michael Snyder's message of "Tue, 29 Jul 2003 14:57:31 -0700") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-07/txt/msg00536.txt.bz2 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? 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. David Carlton carlton@kealia.com