Include break-common.h in nat/aarch64-linux-hw-point.h
authorYao Qi <yao.qi@linaro.org>
Fri, 6 Jan 2017 14:33:01 +0000 (14:33 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 6 Jan 2017 14:33:01 +0000 (14:33 +0000)
$ make check-headers CHECK_HEADERS="nat/aarch64-linux-hw-point.h"
...
../../binutils-gdb/gdb/nat/aarch64-linux-hw-point.h:169:37: error: use of enum 'target_hw_bp_type' without previous declaration
 int aarch64_handle_breakpoint (enum target_hw_bp_type type, CORE_ADDR addr,
                                     ^
gdb:

2017-01-06  Yao Qi  <yao.qi@linaro.org>

* nat/aarch64-linux-hw-point.h: Include break-common.h.

gdb/ChangeLog
gdb/nat/aarch64-linux-hw-point.h

index 530f2e23017d7ca0e05701e53825fe2e6d647189..36a81aeaee948c3a5eb8f20ac66e21735e3a1919 100644 (file)
@@ -1,3 +1,7 @@
+2017-01-06  Yao Qi  <yao.qi@linaro.org>
+
+       * nat/aarch64-linux-hw-point.h: Include break-common.h.
+
 2017-01-06  Yao Qi  <yao.qi@linaro.org>
 
        * mi/mi-parse.h: Include mi-cmds.h.
index 4d115ba19130159aafe3fac51339d89c820ed3f8..610a5f1215db0fd1b9797cdd3390a25d2cfa74db 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef AARCH64_LINUX_HW_POINT_H
 #define AARCH64_LINUX_HW_POINT_H 1
 
+#include "break-common.h" /* For enum target_hw_bp_type.  */
+
 /* Macro definitions, data structures, and code for the hardware
    breakpoint and hardware watchpoint support follow.  We use the
    following abbreviations throughout the code: