From 2f56f7c302c8d4012cc47d8bd261b151b2ddfa22 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 20 Oct 2014 00:06:55 +0100 Subject: [PATCH] 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. --- 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 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. */ -- 2.30.2