From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17222 invoked by alias); 16 Dec 2003 18:00:23 -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 17215 invoked from network); 16 Dec 2003 18:00:22 -0000 Received: from unknown (HELO nile.gnat.com) (205.232.38.5) by sources.redhat.com with SMTP; 16 Dec 2003 18:00:22 -0000 Received: by nile.gnat.com (Postfix, from userid 4233) id D2A83F2DD0; Tue, 16 Dec 2003 13:00:21 -0500 (EST) Date: Tue, 16 Dec 2003 18:00:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: [RFA] irix5-nat.c: missing mips-tdep.h #include? Message-ID: <20031216130021.A28132@gnat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-SW-Source: 2003-12/txt/msg00392.txt.bz2 --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 828 Hello, GDB has been broken for a while on IRIX, because the compiler could not find the definitions of mips_regsize() and mips_regnum(). This is causing the build to fail because the code that uses it in irix5-nat.c tries to deference the result. The compiler output is as follow: irix5-nat.c:58: warning: implicit declaration of function `mips_regsize' irix5-nat.c:64: warning: implicit declaration of function `mips_regnum' irix5-nat.c:64: invalid type argument of `->' irix5-nat.c:66: invalid type argument of `->' irix5-nat.c:68: invalid type argument of `->' irix5-nat.c:70: invalid type argument of `->' (etc...) I suggest the following change to fix this problem: 2003-12-16 J. Brobecker * irix5-nat.c: Include mips-tdep.h. OK to apply? Thanks, -- Joel --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="irix5-nat.c.diff" Content-length: 460 Index: irix5-nat.c =================================================================== RCS file: /cvs/src/src/gdb/irix5-nat.c,v retrieving revision 1.28 diff -u -p -r1.28 irix5-nat.c --- irix5-nat.c 16 Nov 2003 19:24:04 -0000 1.28 +++ irix5-nat.c 16 Dec 2003 10:40:25 -0000 @@ -36,6 +36,7 @@ /* Prototypes for supply_gregset etc. */ #include "gregset.h" +#include "mips-tdep.h" static void fetch_core_registers (char *, unsigned int, int, CORE_ADDR); --nFreZHaLTZJo0R7j--