From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25862 invoked by alias); 8 Aug 2002 02:49:22 -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 25712 invoked from network); 8 Aug 2002 02:48:06 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 8 Aug 2002 02:48:06 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 5BC5D3EA5; Wed, 7 Aug 2002 22:47:59 -0400 (EDT) Message-ID: <3D51DBDF.50401@ges.redhat.com> Date: Wed, 07 Aug 2002 19:49:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020802 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Snyder Cc: gdb-patches@sources.redhat.com, cagney@redhat.com Subject: Re: [RFC] mips gdb fails to detect o32 References: <3D51BA0F.9A825A12@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00178.txt.bz2 > On Wed, Aug 07, 2002 at 05:23:43PM -0700, Michael Snyder wrote: > >> Well, I just discovered that gdb is failing to detect the o32 abi >> when debugging the output of the native Irix compiler. This patch >> seems to help. >> >> The idea here is, if it's not n32, then if it is MIPS_ARCH_2, >> then it must be o32. However, I've no idea if that's right -- >> I just know it works so far as I've been able to test it. >> >> Unfortunately, I haven't been able to test it against EABI, >> and I haven't been able to test it against gcc, because gcc >> doesn't generate o32. > > > GCC does generate O32. GNU binutils won't use the ARCH/ABI bits in the > ELF header in a lot of cases, though; and it emits a better way to > identify the ABI. > > I don't think keying off MIPS II makes a heck of a lot of sense here... > depending on what SGI's tools put out you might want to default to O32 > if no ABI tag bits are present, but that's a little shadier. Um, won't the final: if (mips_abi == MIPS_ABI_UNKNOWN) mips_abi = MIPS_ABI_032; kick in? Andrew