From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17906 invoked by alias); 23 Jul 2003 20:30:26 -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 17896 invoked from network); 23 Jul 2003 20:30:25 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.131) by sources.redhat.com with SMTP; 23 Jul 2003 20:30:25 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E15E42B7F; Wed, 23 Jul 2003 16:30:23 -0400 (EDT) Message-ID: <3F1EF05F.7040906@redhat.com> Date: Wed, 23 Jul 2003 20:30:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Snyder Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] don't test long long return on h8 References: <3F1EDA71.1090602@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-07/txt/msg00413.txt.bz2 > long long is returned like a struct on h8 (by reference), and gdb can't do that. I think it would be better to try the "return long_long" and check that GDB reports an error. Andrew > 2003-07-23 Michael Snyder > > * gdb.base/return2.exp: Don't test long-long return. > > Index: gdb.base/return2.exp > =================================================================== > RCS file: /cvs/src/src/gdb/testsuite/gdb.base/return2.exp,v > retrieving revision 1.3 > diff -p -r1.3 return2.exp > *** gdb.base/return2.exp 16 Jul 2001 18:49:43 -0000 1.3 > --- gdb.base/return2.exp 23 Jul 2003 18:53:02 -0000 > *************** proc return2_tests { } { > *** 109,115 **** > return_1 "short" > return_1 "int" > return_1 "long" > ! if { ! [istarget "m6811-*-*"] } then { > return_1 "long_long" > } > return_1 "float" > --- 109,115 ---- > return_1 "short" > return_1 "int" > return_1 "long" > ! if { ! [istarget "m6811-*-*"] && ![istarget "h8300*-*"] } then { > return_1 "long_long" > } > return_1 "float"