From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15846 invoked by alias); 2 Sep 2008 21:55:40 -0000 Received: (qmail 15834 invoked by uid 22791); 2 Sep 2008 21:55:40 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 02 Sep 2008 21:55:01 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A417098417; Tue, 2 Sep 2008 21:54:59 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 8F86D981E8; Tue, 2 Sep 2008 21:54:59 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Kadpy-0006iV-SU; Tue, 02 Sep 2008 17:54:58 -0400 Date: Tue, 02 Sep 2008 21:55:00 -0000 From: Daniel Jacobowitz To: Thiago Jung Bauermann Cc: gdb-patches ml Subject: Re: [rfc] add ppc testcase to test fpscr Message-ID: <20080902215458.GB25623@caradoc.them.org> Mail-Followup-To: Thiago Jung Bauermann , gdb-patches ml References: <1219360611.8989.6.camel@localhost.localdomain> <20080821233115.GA1239@caradoc.them.org> <1219362081.29526.2.camel@localhost.localdomain> <20080822024659.GA12951@caradoc.them.org> <1219428669.8167.2.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1219428669.8167.2.camel@localhost.localdomain> User-Agent: Mutt/1.5.17 (2008-05-11) 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: 2008-09/txt/msg00029.txt.bz2 On Fri, Aug 22, 2008 at 03:11:09PM -0300, Thiago Jung Bauermann wrote: > +# Run the program, when the prompt comes back it will be for the invalid > +# operation breakpoint. > +gdb_test "run" "" "" This is similar to what Joel said about testing bare metal targets - using "run" will break gdbserver testing. Pick almost any test and you can see how this is usually handled, e.g. by gdb_run_cmd or "runto main". > +# First, verify if FPSCR is all zeroes. > +gdb_test "print \$fpscr" " = 0\r" "FPSCR is all zeroes" Oh, also there's PowerPC targets without hardware floating point... and GDB is sometimes smart enough nowadays to not display dummy FP registers. So having fpscr not exist is legitimate. There's also the E500, which does not have a classic FPU. -- Daniel Jacobowitz CodeSourcery