From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20330 invoked by alias); 2 Oct 2002 00:50:03 -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 20217 invoked from network); 2 Oct 2002 00:50:01 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 2 Oct 2002 00:50:01 -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 g920o0P21392 for ; Tue, 1 Oct 2002 20:50:00 -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 g920nx6O005433 for ; Tue, 1 Oct 2002 21:49:59 -0300 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.5/8.12.5/Submit) id g920nxEU005429; Tue, 1 Oct 2002 21:49:59 -0300 To: gdb-patches@sources.redhat.com Subject: can't build cross-gdb for --target=mips-sgi-irix6 From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Tue, 01 Oct 2002 17:50: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/msg00030.txt.bz2 --=-=-= Content-length: 451 mips-sgi-irix6-gdb (5.3 branch and mainline) failed to link on athlon-pc-linux-gnu. breakpoint.c didn't to compile in disable_breakpoints_in_shlibs() because SOLIB_ADD was not defined. I think solib.h must be #included somewhere, and I think the right place is config/mips/tm-irix6.h. I couldn't test this natively, because I don't have access to any irix box at the moment, but the cross debugger built correctly with this patch. Ok to install? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=irix-solib.patch Content-length: 875 Index: gdb/ChangeLog from Alexandre Oliva * config/mips/tm-irix6.h: Include solib.h. Index: gdb/config/mips/tm-irix6.h =================================================================== RCS file: /cvs/src/src/gdb/config/mips/tm-irix6.h,v retrieving revision 1.5 diff -u -p -r1.5 tm-irix6.h --- gdb/config/mips/tm-irix6.h 20 Aug 2002 13:17:55 -0000 1.5 +++ gdb/config/mips/tm-irix6.h 2 Oct 2002 00:36:49 -0000 @@ -1,5 +1,5 @@ /* Target machine description for SGI Iris under Irix 6.x, for GDB. - Copyright 2001 + Copyright 2001, 2002 Free Software Foundation, Inc. This file is part of GDB. @@ -20,6 +20,7 @@ Boston, MA 02111-1307, USA. */ #include "mips/tm-bigmips64.h" +#include "solib.h" /* SGI's assembler doesn't grok dollar signs in identifiers. So we use dots instead. This item must be coordinated with G++. */ --=-=-= 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 --=-=-=--