[PATCH OBV 06/10] Include break-common.h in nat/aarch64-linux-hw-point.h

Yao Qi qiyaoltc@gmail.com
Fri Jan 6 14:19:00 GMT 2017


$ 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/nat/aarch64-linux-hw-point.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/nat/aarch64-linux-hw-point.h b/gdb/nat/aarch64-linux-hw-point.h
index 4d115ba..610a5f1 100644
--- a/gdb/nat/aarch64-linux-hw-point.h
+++ b/gdb/nat/aarch64-linux-hw-point.h
@@ -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:
-- 
1.9.1



More information about the Gdb-patches mailing list