This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 15/36] Don't forward declare enum target_hw_bp_type
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 9 Feb 2015 23:20:25 +0000
- Subject: [PATCH 15/36] Don't forward declare enum target_hw_bp_type
- Authentication-results: sourceware.org; auth=none
- References: <1423524046-20605-1-git-send-email-palves at redhat dot com>
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