gdbarch.h: include regcache.h
authorPedro Alves <palves@redhat.com>
Wed, 22 Oct 2014 11:16:56 +0000 (12:16 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 27 Feb 2015 17:39:54 +0000 (17:39 +0000)
Building GDB in C++ mode, I got:

  src/gdb/gdbarch.h:240:149: error: invalid type in declaration before ‘;’ token
  src/gdb/gdbarch.h:240:14: error: use of enum ‘register_status’ without previous declaration
  src/gdb/gdbarch.h:241:13: error: use of enum ‘register_status’ without previous declaration
  src/gdb/gdbarch.h:241:140: error: invalid type in declaration before ‘;’ token

That's because 'enum register_status' has not been declared (and we can't
forward declare enums in C++).

gdb/ChangeLog:
2015-02-27  Pedro Alves  <palves@redhat.com>

* gdbarch.sh: Include regcache.h.
* gdbarch.h: Regenerate.

gdb/ChangeLog
gdb/gdbarch.h
gdb/gdbarch.sh

index 3319194348c106893d8a6c1e5574dda69c295206..110c80be41d80e72562693bc64d26615ba44bf58 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-27  Pedro Alves  <palves@redhat.com>
+
+       * gdbarch.sh: Include regcache.h.
+       * gdbarch.h: Regenerate.
+
 2015-02-27  Pedro Alves  <palves@redhat.com>
 
        * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
index 0b4dc0615ddab468cd375e2f1aedeaaa90a29841..c94c19c173d30ffc8e9b8091ea99733df4503e66 100644 (file)
@@ -65,6 +65,8 @@ struct elf_internal_linux_prpsinfo;
 struct mem_range;
 struct syscalls_info;
 
+#include "regcache.h"
+
 /* The architecture associated with the inferior through the
    connection to the target.
 
index 19be5a0302a041705950d4814aae6c135cf93b00..0f303a439899402949aadf3aa0be06e9fbd07004 100755 (executable)
@@ -1234,6 +1234,8 @@ struct elf_internal_linux_prpsinfo;
 struct mem_range;
 struct syscalls_info;
 
+#include "regcache.h"
+
 /* The architecture associated with the inferior through the
    connection to the target.