This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Include break-common.h in nat/aarch64-linux-hw-point.h
- From: Yao Qi <qiyao at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 6 Jan 2017 14:34:08 -0000
- Subject: [binutils-gdb] Include break-common.h in nat/aarch64-linux-hw-point.h
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bc3008c48f17aa67d39e539737a999737cd697a7
commit bc3008c48f17aa67d39e539737a999737cd697a7
Author: Yao Qi <yao.qi@linaro.org>
Date: Fri Jan 6 14:33:01 2017 +0000
Include break-common.h in nat/aarch64-linux-hw-point.h
$ 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.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/nat/aarch64-linux-hw-point.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 530f2e2..36a81ae 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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.
2017-01-06 Yao Qi <yao.qi@linaro.org>
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: