gdbarch.h: include regcache.h

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.
This commit is contained in:
Pedro Alves 2014-10-22 12:16:56 +01:00
parent 0fa9c223dd
commit 8a526fa69a
3 changed files with 9 additions and 0 deletions

View 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>:

View 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.

View File

@ -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.