From: Pedro Alves Date: Sun, 19 Oct 2014 23:06:55 +0000 (+0100) Subject: Don't forward declare enum target_hw_bp_type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f56f7c302c8d4012cc47d8bd261b151b2ddfa22;p=binutils-gdb.git Don't forward declare enum target_hw_bp_type Can't do that in C++. 2015-02-27 Pedro Alves * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward declaration. Include break-common.h. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ab36c65f68a..92f85f4fae3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2015-02-27 Pedro Alves + + * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward + declaration. + Include break-common.h. + 2015-02-27 Tom Tromey Pedro Alves diff --git a/gdb/nat/x86-dregs.h b/gdb/nat/x86-dregs.h index ea82e62e01b..a2b992607e2 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. */