From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12224 invoked by alias); 21 Apr 2002 02:04: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 12173 invoked from network); 21 Apr 2002 02:04:16 -0000 Received: from unknown (HELO dr-evil.shagadelic.org) (208.176.2.162) by sources.redhat.com with SMTP; 21 Apr 2002 02:04:16 -0000 Received: by dr-evil.shagadelic.org (Postfix, from userid 7518) id 7F6929869; Sat, 20 Apr 2002 19:04:16 -0700 (PDT) Date: Sat, 20 Apr 2002 19:04:00 -0000 From: Jason R Thorpe To: "David S. Miller" Cc: msnyder@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [RFA] Sparc/Linux fixes part 1 Message-ID: <20020420190416.A1627@dr-evil.shagadelic.org> Reply-To: thorpej@wasabisystems.com Mail-Followup-To: Jason R Thorpe , "David S. Miller" , msnyder@redhat.com, gdb-patches@sources.redhat.com References: <3CC0C38C.237D5798@redhat.com> <20020419.184709.103241554.davem@redhat.com> <20020420100052.U1627@dr-evil.shagadelic.org> <20020420.175049.83695986.davem@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020420.175049.83695986.davem@redhat.com>; from davem@redhat.com on Sat, Apr 20, 2002 at 05:50:49PM -0700 Organization: Wasabi Systems, Inc. X-SW-Source: 2002-04/txt/msg00700.txt.bz2 On Sat, Apr 20, 2002 at 05:50:49PM -0700, David S. Miller wrote: > This won't work at all for my case. There is no "elfosabi" to use to > distinguish between Solaris ELF 32-bit Sparc (which has 16 byte long > doubles) and Linux ELF 32-bit Sparc (which has 8 byte long doubles). ...so have your sparc-linux-{nat,tdep} _initialize function set the default "sparc os abi" to Linux, or something. > Maybe I can say "there is no way to distinguish whether it is a Linux > 32-bit Sparc binary or a Solaris 32-bit Sparc one" 50 more times and > people would begin to understand the situation. You don't have to distinguish between the two binaries. Seems like you only need to provide a default depending on the target GDB was configured for, and a way to switch them at run-time. (no ".note.ABI-tag" note section in sparc linux binaries, eh? oh well... my suggestion would still work :-) > Here, let me show everyone exactly what I am saying: > > ? uname -a > Linux nuts.ninka.net 2.4.19-pre7 #1 SMP Fri Apr 19 20:18:39 PDT 2002 sparc64 unknown > ? readelf -h /bin/sh | grep OS > OS/ABI: UNIX - System V > ? > > bash-2.03$ uname -a > SunOS caip.rutgers.edu 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-Enterprise-10000 > bash-2.03$ readelf -h /bin/sh | grep OS > OS/ABI: UNIX - System V > bash-2.03$ > > See? Yes, I understood that from the beginning. -- -- Jason R. Thorpe