From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13732 invoked by alias); 8 Aug 2002 00:46:12 -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 13724 invoked from network); 8 Aug 2002 00:46:10 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 8 Aug 2002 00:46:10 -0000 Received: from dsl254-114-118.nyc1.dsl.speakeasy.net ([216.254.114.118] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17cbRN-0005kY-00 for ; Wed, 07 Aug 2002 19:46:13 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17cbRf-000327-00 for ; Wed, 07 Aug 2002 20:46:31 -0400 Date: Wed, 07 Aug 2002 17:46:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: [RFC] mips gdb fails to detect o32 Message-ID: <20020808004631.GA11507@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <3D51BA0F.9A825A12@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D51BA0F.9A825A12@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00175.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. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer