From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20298 invoked by alias); 11 Nov 2013 06:37:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 20287 invoked by uid 89); 11 Nov 2013 06:37:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: rock.gnat.com Received: from Unknown (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 11 Nov 2013 06:37:51 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 1329A1165A1 for ; Mon, 11 Nov 2013 01:38:14 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id T3k0kEhpSx9B for ; Mon, 11 Nov 2013 01:38:14 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id A03161164D7 for ; Mon, 11 Nov 2013 01:38:13 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 7FA3EE079B; Mon, 11 Nov 2013 10:37:38 +0400 (RET) From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [RFA/commit 1/3] language.h: Add "symtab.h" #include Date: Mon, 11 Nov 2013 06:38:00 -0000 Message-Id: <1384151855-12926-1-git-send-email-brobecker@adacore.com> X-SW-Source: 2013-11/txt/msg00271.txt.bz2 Hello, I noticed this when I tried to #include "language.h" from mi-parse.c, when I got compilation errors from missing type declarations: In addition to the fact that language.h depends on a number of struct types declared in symtab.h, language.h also depends on an enumerated type (domain_enum). So language.h should #include "symtab.h". gdb/ChangeLog: * language.h: Add "symtab.h" #include. Tested on x86_64-linux. I think this patch should go in on its own. --- gdb/language.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/language.h b/gdb/language.h index 5e029ea..d730bf5 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -23,6 +23,8 @@ #if !defined (LANGUAGE_H) #define LANGUAGE_H 1 +#include "symtab.h" + /* Forward decls for prototypes. */ struct value; struct objfile; -- 1.8.1.2