From 656731fe0f5bae5bb788b0688cc36900128fcc2f Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Fri, 6 Jan 2017 14:33:01 +0000 Subject: Include ppc-tdep.h in ppc-linux-tdep.h $ make check-headers CHECK_HEADERS="ppc-linux-tdep.h" ... ../../binutils-gdb/gdb/ppc-linux-tdep.h:34:24: error: 'PPC_NUM_REGS' was not declared in this scope PPC_ORIG_R3_REGNUM = PPC_NUM_REGS, ^ gdb: 2017-01-06 Yao Qi * ppc-linux-tdep.h: Include ppc-tdep.h. --- gdb/ChangeLog | 4 ++++ gdb/ppc-linux-tdep.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a8de405..39c5c7c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2017-01-06 Yao Qi + * ppc-linux-tdep.h: Include ppc-tdep.h. + +2017-01-06 Yao Qi + * nat/amd64-linux-siginfo.h: Include signal.h. 2017-01-06 Yao Qi diff --git a/gdb/ppc-linux-tdep.h b/gdb/ppc-linux-tdep.h index f60dba2..fa8a464 100644 --- a/gdb/ppc-linux-tdep.h +++ b/gdb/ppc-linux-tdep.h @@ -20,6 +20,8 @@ #ifndef PPC_LINUX_TDEP_H #define PPC_LINUX_TDEP_H +#include "ppc-tdep.h" /* For PPC_NUM_REGS. */ + struct regset; /* From ppc-linux-tdep.c ... */ -- cgit v1.1