This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 25/36] python/python-internal.h: enum âext_lang_rcâ not defined
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 9 Feb 2015 23:20:35 +0000
- Subject: [PATCH 25/36] python/python-internal.h: enum âext_lang_rcâ not defined
- Authentication-results: sourceware.org; auth=none
- References: <1423524046-20605-1-git-send-email-palves at redhat dot com>
Fixes this in C++ mode:
src/gdb/python/python-internal.h: At global scope:
src/gdb/python/python-internal.h:313:13: error: use of enum âext_lang_rcâ without previous declaration
extern enum ext_lang_rc gdbpy_apply_val_pretty_printer
^
src/gdb/python/python-internal.h:320:41: error: invalid type in declaration before â;â token
const struct language_defn *language);
^
gdb/ChangeLog:
2015-02-09 Pedro Alves <palves@redhat.com>
* python/python-internal.h: Include "extension-priv.h".
---
gdb/python/python-internal.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index a77f5a6..4c4d32a 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -21,6 +21,7 @@
#define GDB_PYTHON_INTERNAL_H
#include "extension.h"
+#include "extension-priv.h"
/* These WITH_* macros are defined by the CPython API checker that
comes with the Python plugin for GCC. See:
--
1.9.3