diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c09965ff1e..c5a6a388d7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-01-06 Yao Qi + + * inf-loop.c: Don't include "target.h". + * inf-loop.h: Include it here. + 2017-01-06 Yao Qi * dfp.h: Include "dboulest.h" and "expression.h". diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c index 679149e6ca..bb9fa011ee 100644 --- a/gdb/inf-loop.c +++ b/gdb/inf-loop.c @@ -20,7 +20,6 @@ #include "defs.h" #include "inferior.h" #include "infrun.h" -#include "target.h" /* For enum inferior_event_type. */ #include "event-loop.h" #include "event-top.h" #include "inf-loop.h" diff --git a/gdb/inf-loop.h b/gdb/inf-loop.h index b76c2eec58..a5d0747466 100644 --- a/gdb/inf-loop.h +++ b/gdb/inf-loop.h @@ -20,6 +20,8 @@ #ifndef INF_LOOP_H #define INF_LOOP_H +#include "target.h" /* For enum inferior_event_type. */ + extern void inferior_event_handler (enum inferior_event_type event_type, void* client_data);