From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20276 invoked by alias); 2 Oct 2002 00:57:53 -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 20145 invoked from network); 2 Oct 2002 00:57:51 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 2 Oct 2002 00:57:51 -0000 Received: from free.redhat.lsd.ic.unicamp.br (aoliva2.cipe.redhat.com [10.0.1.156]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g920vjP22367; Tue, 1 Oct 2002 20:57:45 -0400 Received: from free.redhat.lsd.ic.unicamp.br (localhost.localdomain [127.0.0.1]) by free.redhat.lsd.ic.unicamp.br (8.12.5/8.12.5) with ESMTP id g920vi6O005570; Tue, 1 Oct 2002 21:57:44 -0300 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.5/8.12.5/Submit) id g920viP1005566; Tue, 1 Oct 2002 21:57:44 -0300 To: gdb-patches@sources.redhat.com, kevinb@redhat.com Subject: gdb won't recognize the N64 ABI From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Tue, 01 Oct 2002 17:57:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2002-10/txt/msg00032.txt.bz2 --=-=-= Content-length: 294 The code that checks for an .mdebug. section to detect the ABI used by an executable uses the wrong string to detect the N64 ABI. The section name emitted by GCC for the N64 abi is .mdebug.abi64, not .mdebug.abiN64. This problem is present in the 5.3 branch too. Ok to install? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=mips-mdebug-abi64.patch Content-length: 830 Index: gdb/ChangeLog from Alexandre Oliva * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name of the section for the N64 ABI, fixed. Index: gdb/mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.119 diff -u -p -r1.119 mips-tdep.c --- gdb/mips-tdep.c 24 Aug 2002 00:21:35 -0000 1.119 +++ gdb/mips-tdep.c 2 Oct 2002 00:54:02 -0000 @@ -5547,7 +5547,7 @@ 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) + else if (strcmp (name, ".mdebug.abi64") == 0) *abip = MIPS_ABI_N64; else if (strcmp (name, ".mdebug.abiO64") == 0) *abip = MIPS_ABI_O64; --=-=-= Content-length: 289 -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer --=-=-=--