This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Don't forward declare enum target_hw_bp_type
- From: Pedro Alves <palves at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Feb 2015 17:49:25 -0000
- Subject: [binutils-gdb] Don't forward declare enum target_hw_bp_type
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2f56f7c302c8d4012cc47d8bd261b151b2ddfa22
commit 2f56f7c302c8d4012cc47d8bd261b151b2ddfa22
Author: Pedro Alves <palves@redhat.com>
Date: Mon Oct 20 00:06:55 2014 +0100
Don't forward declare enum target_hw_bp_type
Can't do that in C++.
2015-02-27 Pedro Alves <palves@redhat.com>
* nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
declaration.
Include break-common.h.
Diff:
---
gdb/ChangeLog | 6 ++++++
gdb/nat/x86-dregs.h | 3 +--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ab36c65..92f85f4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-27 Pedro Alves <palves@redhat.com>
+
+ * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
+ declaration.
+ Include break-common.h.
+
2015-02-27 Tom Tromey <tromey@redhat.com>
Pedro Alves <palves@redhat.com>
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. */