From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30996 invoked by alias); 9 Apr 2003 20:51:02 -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 30989 invoked from network); 9 Apr 2003 20:51:02 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 9 Apr 2003 20:51:02 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 237702B33; Wed, 9 Apr 2003 16:50:53 -0400 (EDT) Message-ID: <3E9487AD.2050805@redhat.com> Date: Wed, 09 Apr 2003 20:51:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] missing #include in frame.h? References: <20030409203842.GN1170@gnat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00175.txt.bz2 > I am trying to see how much effort it needs to be able to build GDB on > LynxOS 4.0, and found that gcc emits the following warning: > > frame.h:698: warning: `struct gdbarch' declared inside parameter list > frame.h:698: warning: its scope is only this definition or declaration, which is probably not what you want. > > I am not sure whether we want to include gdbarch.h or not. Should we? > Or maybe we should be including "defs.h". Shall I go ahead and do that > (add #include "defs.h", and update Makefile.in)? Add: struct gdbarch; to the start of "frame.h". Andrew