From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17321 invoked by alias); 31 Jul 2002 19:10:26 -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 17314 invoked from network); 31 Jul 2002 19:10:24 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 31 Jul 2002 19:10:24 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g6VIw1l24800 for ; Wed, 31 Jul 2002 14:58:01 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g6VJAMu01325; Wed, 31 Jul 2002 15:10:22 -0400 Received: from romulus.sfbay.redhat.com (remus.sfbay.redhat.com [172.16.27.252]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g6VJALm00606; Wed, 31 Jul 2002 12:10:21 -0700 Received: (from kev@localhost) by romulus.sfbay.redhat.com (8.11.6/8.11.6) id g6VJAIO22461; Wed, 31 Jul 2002 12:10:18 -0700 Date: Wed, 31 Jul 2002 12:50:00 -0000 From: Kevin Buettner Message-Id: <1020731191018.ZM22460@localhost.localdomain> In-Reply-To: Kevin Buettner "Re: [PATCH] mips n64 support, part 1" (Jul 31, 11:56am) References: <1020731182328.ZM22007@localhost.localdomain> <20020731182855.GA11890@nevyn.them.org> <1020731185637.ZM22156@localhost.localdomain> To: Daniel Jacobowitz Subject: Re: [PATCH] mips n64 support, part 1 Cc: gdb-patches@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00624.txt.bz2 On Jul 31, 11:56am, Kevin Buettner wrote: > On Jul 31, 2:28pm, Daniel Jacobowitz wrote: > > > Does mips_find_abi_section need another case? > > Hmm. I think it probably will. For the time being, I'm testing on > Irix and I don't see any .mdebug sections. I.e, the test that I added > gets the job done for the binaries that I'm working with. > > > I believe GCC will write > > out ".mdebug.abiN64", although I'm not 100% sure that I have the string > > right. > > I've asked Eric Christopher. He says that ".mdebug.abiN64" looks > right. I'll submit a patch which adds this string. Here it is (committed)... * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition test. (Thanks to Daniel Jacobowitz.) Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.82 diff -u -p -r1.82 mips-tdep.c --- mips-tdep.c 31 Jul 2002 18:13:24 -0000 1.82 +++ mips-tdep.c 31 Jul 2002 19:03:07 -0000 @@ -4252,6 +4252,8 @@ mips_find_abi_section (bfd *abfd, asecti *abip = MIPS_ABI_O32; else if (strcmp (name, ".mdebug.abiN32") == 0) *abip = MIPS_ABI_N32; + else if (strcmp (name, ".mdebug.abiN64") == 0) + *abip = MIPS_ABI_N64; else if (strcmp (name, ".mdebug.abiO64") == 0) *abip = MIPS_ABI_O64; else if (strcmp (name, ".mdebug.eabi32") == 0)