This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH OBV 05/10] Include mi-cmds.h in mi-parse.h
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 6 Jan 2017 14:18:55 +0000
- Subject: [PATCH OBV 05/10] Include mi-cmds.h in mi-parse.h
- Authentication-results: sourceware.org; auth=none
- References: <1483712340-9157-1-git-send-email-yao.qi@linaro.org>
$ make check-headers CHECK_HEADERS="mi/mi-parse.h"
...
../../binutils-gdb/gdb/mi/mi-parse.h:77:6: error: use of enum 'print_values' without previous declaration
enum print_values mi_parse_print_values (const char *name);
^
gdb:
2017-01-06 Yao Qi <yao.qi@linaro.org>
* mi/mi-parse.h: Include mi-cmds.h.
---
gdb/mi/mi-parse.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdb/mi/mi-parse.h b/gdb/mi/mi-parse.h
index 247fbb3..b11e5d3 100644
--- a/gdb/mi/mi-parse.h
+++ b/gdb/mi/mi-parse.h
@@ -22,6 +22,7 @@
#include "run-time-clock.h"
#include <chrono>
+#include "mi-cmds.h" /* For enum print_values. */
/* MI parser */
--
1.9.1