From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20591 invoked by alias); 11 Jun 2003 19:18:23 -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 20584 invoked from network); 11 Jun 2003 19:18:23 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 11 Jun 2003 19:18:23 -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 h5BJINH12729 for ; Wed, 11 Jun 2003 15:18:23 -0400 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 h5BJINI30680 for ; Wed, 11 Jun 2003 15:18:23 -0400 Received: from localhost.localdomain (vpn50-31.rdu.redhat.com [172.16.50.31]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h5BJIME30783; Wed, 11 Jun 2003 15:18:22 -0400 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h5BJIHC26257; Wed, 11 Jun 2003 12:18:17 -0700 Date: Wed, 11 Jun 2003 19:18:00 -0000 From: Kevin Buettner Message-Id: <1030611191816.ZM26256@localhost.localdomain> In-Reply-To: Jim Blandy "[ppc64-linux]: specify size of long double on PPC64 Linux" (Jun 11, 2:50am) References: To: Jim Blandy , gdb-patches@sources.redhat.com Subject: Re: [ppc64-linux]: specify size of long double on PPC64 Linux MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-06/txt/msg00378.txt.bz2 On Jun 11, 2:50am, Jim Blandy wrote: > 2003-06-11 Jim Blandy > > * ppc-linux-tdep.c (ppc_linux_init_abi): long doubles are 16 bytes > long. > > Index: gdb/ppc-linux-tdep.c > =================================================================== > RCS file: /cvs/src/src/gdb/ppc-linux-tdep.c,v > retrieving revision 1.28.8.13 > diff -c -r1.28.8.13 ppc-linux-tdep.c > *** gdb/ppc-linux-tdep.c 10 Jun 2003 18:00:30 -0000 1.28.8.13 > --- gdb/ppc-linux-tdep.c 11 Jun 2003 06:43:41 -0000 > *************** > *** 1027,1032 **** > --- 1027,1034 ---- > > if (tdep->wordsize == 8) > { > + set_gdbarch_long_double_bit (gdbarch, 16 * TARGET_CHAR_BIT); > + > set_gdbarch_call_dummy_address (gdbarch, ppc64_call_dummy_address); > > set_gdbarch_in_solib_call_trampoline Do you really need to do this? rs6000-tdep.c already has the following in it: if (sysv_abi) set_gdbarch_long_double_bit (gdbarch, 16 * TARGET_CHAR_BIT); else set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT); So, if I'm not mistaken, the size of long doubles should already be set correctly. Kevin