This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Make parser-defs.h and ax-gdb.h more self-contained
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Date: Wed, 26 Jun 2013 01:31:52 -0300
- Subject: [PATCH] Make parser-defs.h and ax-gdb.h more self-contained
Hi,
While debugging an IA-64 problem, I found that parser-defs.h and
ax-gdb.h are not totally self-contained, i.e., they are missing some
forward declarations or #include. This patch fixes it.
For ax-gdb.h, it just adds a forward declaration for `union
exp_element'. For parser-defs.h, it adds forward declarations to
`struct internalvar' and `enum noside', and also #include's
expression.h, since the header file explicitly uses `enum exp_opcode'.
OK to apply?
--
Sergio
2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
* ax-gdb.h (union exp_element): Forward declare.
* parser-defs.h: Include expression.h.
(struct internalvar, enum noside): Forward declare.
diff --git a/gdb/ax-gdb.h b/gdb/ax-gdb.h
index 65e703e..a512cb5 100644
--- a/gdb/ax-gdb.h
+++ b/gdb/ax-gdb.h
@@ -20,6 +20,7 @@
#define AX_GDB_H
struct expression;
+union exp_element;
/* Types and enums */
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h
index 8d25311..311dfea 100644
--- a/gdb/parser-defs.h
+++ b/gdb/parser-defs.h
@@ -25,8 +25,11 @@
#include "doublest.h"
#include "vec.h"
+#include "expression.h"
struct block;
+struct internalvar;
+enum noside;
extern int parser_debug;