aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-loop.h
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-01-06 14:26:45 +0000
committerYao Qi <yao.qi@linaro.org>2017-01-06 14:26:45 +0000
commit051d2ddae5a2289d1f253b563e57a8e8496a06bb (patch)
tree70d8c8f205e2e7ea00594ff4cbe69707a3a284d1 /gdb/inf-loop.h
parent8018d34f1e5d94ffe1f12ac2455429c6f713c518 (diff)
downloadgdb-051d2ddae5a2289d1f253b563e57a8e8496a06bb.zip
gdb-051d2ddae5a2289d1f253b563e57a8e8496a06bb.tar.gz
gdb-051d2ddae5a2289d1f253b563e57a8e8496a06bb.tar.bz2
Include target.h in inf-loop.h
$ make check-headers CHECK_HEADERS="target.h inf-loop.h" ... ../../binutils-gdb/gdb/inf-loop.h:23:42: error: use of enum 'inferior_event_type' without previous declaration extern void inferior_event_handler (enum inferior_event_type event_type, ^ gdb: 2017-01-06 Yao Qi <yao.qi@linaro.org> * inf-loop.c: Don't include "target.h". * inf-loop.h: Include it here.
Diffstat (limited to 'gdb/inf-loop.h')
-rw-r--r--gdb/inf-loop.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/inf-loop.h b/gdb/inf-loop.h
index b76c2ee..a5d0747 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);