From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11489 invoked by alias); 20 Apr 2002 02:46:36 -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 11357 invoked from network); 20 Apr 2002 02:46:24 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 20 Apr 2002 02:46:24 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4F1083D1A; Fri, 19 Apr 2002 22:46:23 -0400 (EDT) Message-ID: <3CC0D67F.5060504@cygnus.com> Date: Fri, 19 Apr 2002 19:46:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.9) Gecko/20020328 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "David S. Miller" Cc: msnyder@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [RFA] Sparc/Linux fixes part 1 References: <3CC0C38C.237D5798@redhat.com> <20020419.184709.103241554.davem@redhat.com> <3CC0CEB1.9080106@cygnus.com> <20020419.190949.100077712.davem@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00665.txt.bz2 > The value of long double can be set at run time by examining information > provided by the BFD. ARM does this for the ABI, MIPS this for almost > everything. > > I don't see mips-tdep.c using bfd information in it's one and only > call to set_gdbarch_long_double_bit(), what am I overlooking? ``almost everything''? > From: Andrew Cagney > Date: Fri, 19 Apr 2002 22:13:05 -0400 > > The value of long double can be set at run time by examining information > provided by the BFD. ARM does this for the ABI, MIPS this for almost > everything. > > I see what MIPS is doing, it does it for other type. > > But this isn't going to help my long double case on > sparc, the BFD information is going to look identical. > > It's elf_sparc 32-bit, but under Linux long double's > are 8 bytes, and that's all she wrote. :-) The BFD is the starting point, from there you can root around in all sorts of nasty places. .note sections, symbols, .... How does this Kernel, for instance, differentate between a GNU/Linux sparc binary and a Solaris binary when doing emulation? Andrew