Don't forward declare enum target_hw_bp_type
authorPedro Alves <palves@redhat.com>
Sun, 19 Oct 2014 23:06:55 +0000 (00:06 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 27 Feb 2015 17:29:42 +0000 (17:29 +0000)
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.

gdb/ChangeLog
gdb/nat/x86-dregs.h

index ab36c65f68a901834a317a5c717b944643452bde..92f85f4fae3f074db48223523de81ec225bb4305 100644 (file)
@@ -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>
 
index ea82e62e01b95462a9bca0cb6e7050429ebb9bbb..a2b992607e25fb2d67261c3aff61a95fa751989f 100644 (file)
@@ -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.  */