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

login
register
mail settings
Submitter Pedro Alves
Date Feb. 9, 2015, 11:20 p.m.
Message ID <1423524046-20605-16-git-send-email-palves@redhat.com>
Download mbox | patch
Permalink /patch/4990/
State New
Headers show

Comments

Pedro Alves - Feb. 9, 2015, 11:20 p.m.
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(-)

Patch

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.  */