This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[python] minor fix in python.c
- From: Tom Tromey <tromey at redhat dot com>
- To: Project Archer <archer at sourceware dot org>
- Date: Thu, 06 Nov 2008 13:23:18 -0700
- Subject: [python] minor fix in python.c
- Reply-to: Tom Tromey <tromey at redhat dot com>
I just noticed that python.c doesn't conditionally define GdbMethods.
This would break a python-less build.
Tom
2008-11-06 Tom Tromey <tromey@redhat.com>
* python/python.c (GdbMethods): Make conditional.
diff --git a/gdb/python/python.c b/gdb/python/python.c
index d6cea7e..175c0ba 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1175,6 +1175,8 @@ gdb._format_children = _format_children\n\
+#if HAVE_PYTHON
+
static PyMethodDef GdbMethods[] =
{
{ "get_value_from_history", gdbpy_get_value_from_history, METH_VARARGS,
@@ -1233,3 +1235,5 @@ Note: may later change to return an object." },
{NULL, NULL, 0, NULL}
};
+
+#endif /* HAVE_PYTHON */