This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA/commit 1/3] language.h: Add "symtab.h" #include
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 11 Nov 2013 10:37:33 +0400
- Subject: [RFA/commit 1/3] language.h: Add "symtab.h" #include
- Authentication-results: sourceware.org; auth=none
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