public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [RFA/commit 1/3] language.h: Add "symtab.h" #include
@ 2013-11-11  6:38 Joel Brobecker
  2013-11-11  6:39 ` [RFA 2/3] New function cli-utils.c:extract_arg_const Joel Brobecker
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Joel Brobecker @ 2013-11-11  6:38 UTC (permalink / raw)
  To: gdb-patches

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-01-13 19:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-11  6:38 [RFA/commit 1/3] language.h: Add "symtab.h" #include Joel Brobecker
2013-11-11  6:39 ` [RFA 2/3] New function cli-utils.c:extract_arg_const Joel Brobecker
2013-11-13 19:35   ` Pedro Alves
2013-11-14 10:55     ` pushed: " Joel Brobecker
2013-11-11  6:55 ` [RFC 3/3] GDB/MI: Add new "--language LANG" command option Joel Brobecker
2013-11-11  7:02   ` Joel Brobecker
2013-11-11 17:20     ` Eli Zaretskii
2013-11-11 16:29   ` Eli Zaretskii
2013-11-13 19:49   ` Pedro Alves
2013-11-14 11:17     ` Joel Brobecker
2013-11-13 19:34 ` [PATCH] New "make check-headers" rule. (was: Re: [RFA/commit 1/3] language.h: Add "symtab.h" #include) Pedro Alves
2013-11-14 10:00   ` Joel Brobecker
2013-11-14 21:32   ` [PATCH] New "make check-headers" rule Tom Tromey
2014-01-13 19:42     ` Pedro Alves
2013-11-14 10:55 ` pushed: [RFA/commit 1/3] language.h: Add "symtab.h" #include Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).