From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25826 invoked by alias); 20 Mar 2003 15:20:26 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25819 invoked from network); 20 Mar 2003 15:20:26 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 20 Mar 2003 15:20:26 -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 h2KFKPQ00973 for ; Thu, 20 Mar 2003 10:20:25 -0500 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 h2KFKOQ29262 for ; Thu, 20 Mar 2003 10:20:25 -0500 Received: from cygbert.vinschen.de (vpn50-20.rdu.redhat.com [172.16.50.20]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h2KFKN527986 for ; Thu, 20 Mar 2003 07:20:23 -0800 Received: (from corinna@localhost) by cygbert.vinschen.de (8.11.6/8.9.3/Linux sendmail 8.9.3) id h2KFKJh02747 for gdb@sources.redhat.com; Thu, 20 Mar 2003 16:20:19 +0100 Date: Thu, 20 Mar 2003 15:20:00 -0000 From: Corinna Vinschen To: gdb@sources.redhat.com Subject: Where to set correct value for tdep->struct_return for Cygwin? Message-ID: <20030320152019.GA2699@cygbert.vinschen.de> Reply-To: gdb@sources.redhat.com Mail-Followup-To: gdb@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2003-03/txt/msg00300.txt.bz2 Hi, I just found the following problem: In i386-tdep.c::i386_gdbarch_init(), tdep->struct_return is set to pcc_struct_return by default. Several i386 targets set this value in their appropriate _init function to reg_struct_return (e. g. the bsd and interix targets). Cygwin is using reg_struct_return as well but unfortunately in contrast to Interix it has no own tdep.c file and so there's no appropriate _init function as e. g. i386_interix_init_abi() available to set that value. This results in having tdep->struct_return still set to pcc_struct_return and about 25 fails in the testsuite. So the question is, where to set that value? Shall we add a new cygwin-tdep.c file, just to set this one value? Or is there some already existing obvious place to do this? win32-nat.c seems to be not a good chice, btw. Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc. mailto:vinschen@redhat.com