From: Pedro Alves Date: Wed, 22 Oct 2014 11:16:56 +0000 (+0100) Subject: gdbarch.h: include regcache.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a526fa69afd8ea7d2e303f80c03f9eb46211390;p=binutils-gdb.git 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 * gdbarch.sh: Include regcache.h. * gdbarch.h: Regenerate. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3319194348c..110c80be41d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-02-27 Pedro Alves + + * gdbarch.sh: Include regcache.h. + * gdbarch.h: Regenerate. + 2015-02-27 Pedro Alves * arm-tdep.c (decode_insn) : diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 0b4dc0615dd..c94c19c173d 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -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. diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 19be5a0302a..0f303a43989 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -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.