This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH OBV 08/10] Include ppc-tdep.h in ppc-linux-tdep.h
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 6 Jan 2017 14:18:58 +0000
- Subject: [PATCH OBV 08/10] Include ppc-tdep.h in ppc-linux-tdep.h
- Authentication-results: sourceware.org; auth=none
- References: <1483712340-9157-1-git-send-email-yao.qi@linaro.org>
$ 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/ppc-linux-tdep.h | 2 ++
1 file changed, 2 insertions(+)
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 ... */
--
1.9.1