This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] target.h: Include infrun.h
- From: Pedro Alves <palves at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Feb 2015 17:49:14 -0000
- Subject: [binutils-gdb] target.h: Include infrun.h
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=68c14faadaf5bfd9816ac913dc8858116aa15a84
commit 68c14faadaf5bfd9816ac913dc8858116aa15a84
Author: Pedro Alves <palves@redhat.com>
Date: Wed Oct 22 04:35:38 2014 +0100
target.h: Include infrun.h
Fixes:
src/gdb/target.h:753:10: error: use of enum â??exec_direction_kindâ?? without previous declaration
in C++ mode. We can't forward declare enums.
gdb/ChangeLog:
2015-02-27 Pedro Alves <palves@redhat.com>
* target.h: Include "infrun.h".
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/target.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 06df138..7f3043f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2015-02-27 Pedro Alves <palves@redhat.com>
+ * target.h: Include "infrun.h".
+
+2015-02-27 Pedro Alves <palves@redhat.com>
+
* gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
2015-02-27 Pedro Alves <palves@redhat.com>
diff --git a/gdb/target.h b/gdb/target.h
index 2811c47..a2d64bf 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -39,6 +39,8 @@ struct traceframe_info;
struct expression;
struct dcache_struct;
+#include "infrun.h" /* For enum exec_direction_kind. */
+
/* This include file defines the interface between the main part
of the debugger, and the part which is target-specific, or
specific to the communications interface between us and the