This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 3/3] Make it simpler to add events to Python
Tom> This patch simplifies the process using two new ".def" files.
A python-less build showed that this patch needed one tweak:
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
[...]
#endif /* HAVE_PYTHON */
+
+/* Define all the event objects. */
+#define GDB_PY_DEFINE_EVENT_TYPE(name, py_path, py_name, doc, base) \
The addition here has to come before the #endif, so that it is only
compiled in the HAVE_PYTHON case.
Tom