From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 868 invoked by alias); 15 Aug 2011 17:57:05 -0000 Received: (qmail 857 invoked by uid 22791); 15 Aug 2011 17:57:04 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Aug 2011 17:56:50 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id DDA501C01DB0; Mon, 15 Aug 2011 19:56:48 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id B02381C00135; Mon, 15 Aug 2011 19:56:48 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id 0a1hdefnAdRi; Mon, 15 Aug 2011 19:56:48 +0200 (CEST) Received: from igel.home (ppp-93-104-141-128.dynamic.mnet-online.de [93.104.141.128]) by mail.mnet-online.de (Postfix) with ESMTP; Mon, 15 Aug 2011 19:56:48 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id BD229CA293; Mon, 15 Aug 2011 19:56:47 +0200 (CEST) From: Andreas Schwab To: Mark Kettenis Cc: yao@codesourcery.com, gdb-patches@sourceware.org Subject: Re: [patch] Handle return small struct in rs600 (size is not 4/8) References: <4E4939A9.70000@codesourcery.com> <201108151605.p7FG5F1Z004428@glazunov.sibelius.xs4all.nl> X-Yow: Now I'm telling MISS PIGGY about MONEY MARKET FUNDS! Date: Mon, 15 Aug 2011 17:57:00 -0000 In-Reply-To: <201108151605.p7FG5F1Z004428@glazunov.sibelius.xs4all.nl> (Mark Kettenis's message of "Mon, 15 Aug 2011 18:05:15 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2011-08/txt/msg00306.txt.bz2 Mark Kettenis writes: > ...what version of GDB are you looking at? The current code in > ppc-sysv-tdep.c already handles the broken way GCC implements this. > Just make sure your target uses ppc_sysv_abi_broken_return_value() > instead of ppc_sysv_abi_return_value(). The NetBSD/powerpc and > OpenBSD/powerpc targets already do this. Guessing that you're on > Linux and that GCC is the primary compiler on that platform, it > probably needs that same treatment. I don't see any failures in gdb.base/structs.exp on ppc-linux or ppc64-linux. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."