Include ppc-tdep.h in ppc-linux-tdep.h
authorYao Qi <yao.qi@linaro.org>
Fri, 6 Jan 2017 14:33:01 +0000 (14:33 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 6 Jan 2017 14:33:01 +0000 (14:33 +0000)
$ 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  <yao.qi@linaro.org>

* ppc-linux-tdep.h: Include ppc-tdep.h.

gdb/ChangeLog
gdb/ppc-linux-tdep.h

index a8de40550d009a44d628faadeea2f73468860f00..39c5c7c2ae32398468330674d2a874b80316720e 100644 (file)
@@ -1,3 +1,7 @@
+2017-01-06  Yao Qi  <yao.qi@linaro.org>
+
+       * ppc-linux-tdep.h: Include ppc-tdep.h.
+
 2017-01-06  Yao Qi  <yao.qi@linaro.org>
 
        * nat/amd64-linux-siginfo.h: Include signal.h.
index f60dba2eb1dda0f1652fe25beea9c233ca51b841..fa8a464bc130ddd224048cf67fd6937c6dd0e1bf 100644 (file)
@@ -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 ...  */