[PATCH 15/36] Don't forward declare enum target_hw_bp_type

Pedro Alves
2015-02-09T23:21:37Z

Can't do that in C++.

2015-02-09 Pedro Alves <palves@redhat.com>

* nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
declaration.
Include break-common.h.
---
gdb/nat/x86-dregs.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gdb/nat/x86-dregs.h b/gdb/nat/x86-dregs.h
index ea82e62..a2b9926 100644
--- a/gdb/nat/x86-dregs.h
+++ b/gdb/nat/x86-dregs.h
@@ -32,8 +32,7 @@
#ifndef X86_DREGS_H
#define X86_DREGS_H 1

-/* Forward declaration. */
-enum target_hw_bp_type;
+#include "break-common.h" /* target_hw_bp_type */

/* Low-level function vector. */

--
1.9.3