summaryrefslogtreecommitdiff
path: root/gdb/gdbarch.sh
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-10-22 12:16:56 +0100
committerPedro Alves <palves@redhat.com>2015-02-27 17:39:54 +0000
commit8a526fa69afd8ea7d2e303f80c03f9eb46211390 (patch)
tree6db1786873a2a77076bf0bb9027572d28052fd26 /gdb/gdbarch.sh
parent0fa9c223ddc05a4b823bc7982dce8ba3b45d903f (diff)
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.
Diffstat (limited to 'gdb/gdbarch.sh')
-rwxr-xr-xgdb/gdbarch.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index 19be5a0302..0f303a4398 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.