From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29249 invoked by alias); 5 Dec 2003 05:18:17 -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 29232 invoked from network); 5 Dec 2003 05:18:17 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 5 Dec 2003 05:18:17 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id hB55IF205130 for ; Fri, 5 Dec 2003 00:18:15 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id hB55IE227043; Fri, 5 Dec 2003 00:18:14 -0500 Received: from localhost.localdomain (vpn50-70.rdu.redhat.com [172.16.50.70]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id hB55IBm5028074; Fri, 5 Dec 2003 00:18:12 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id hB55I6n09510; Thu, 4 Dec 2003 22:18:06 -0700 Date: Fri, 05 Dec 2003 05:18:00 -0000 From: Kevin Buettner Message-Id: <1031205051806.ZM9509@localhost.localdomain> In-Reply-To: "J. Johnston" "Re: [RFA]: fix ia64 long double support" (Dec 4, 8:54pm) References: <3FCFB735.80204@redhat.com> <20031205005039.GB18170@redhat.com> <3FCFE56C.4090908@redhat.com> To: "J. Johnston" , Richard Henderson Subject: Re: [RFA]: fix ia64 long double support Cc: gdb-patches@sources.redhat.com, Kevin Buettner MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-12/txt/msg00203.txt.bz2 On Dec 4, 8:54pm, J. Johnston wrote: > Richard Henderson wrote: > > On Thu, Dec 04, 2003 at 05:37:41PM -0500, J. Johnston wrote: > > > >> * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double > >> format to be the i387 extended float format which is used for > >> long double's in memory. > > > > This is os specific. HPUX uses ieee quad format. > > > > r~ > > > > The Intel doc doesn't differentiate for OS. Kevin, is this something we should > account for by calling a function in a native tdep file? Hmm. I suppose we could introduce an ia64-linux-tdep.c (with the appropriate osabi machinery) to set this for linux. If it was ever made to work with hpux, there'd be an ia64-hpux-tdep.c file which would set it to IEEE quad format. If you feel up to this, go ahead. Otherwise, just add a comment to ia64-tdep.c which indicates that the setting is Linux specific and that other OSes may use other types. The comment should also indicate the correct way that it should be handled (via an OS-specific tdep.c file.) Kevin