This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[python] minor fix in python.c


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 */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]