Re: [RFA 3/3] Make it simpler to add events to Python

Tom Tromey
2017-09-09T14:40:07Z

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