target.h: Include infrun.h
authorPedro Alves <palves@redhat.com>
Wed, 22 Oct 2014 03:35:38 +0000 (04:35 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 27 Feb 2015 17:28:49 +0000 (17:28 +0000)
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".

gdb/ChangeLog
gdb/target.h

index 06df1388cda6ca1adb7edf9479c06a4f303fb474..7f3043f9c909405121c75cbb740a72aa592464d6 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 2811c47f07834295aecb7e45f007f86b170d13e7..a2d64bfb9f669b05c43bd810a87264839d5fbfe2 100644 (file)
@@ -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
This page took 0.028061 seconds and 4 git commands to generate.