]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* python/python.c (finalize_python): Only define if HAVE_PYTHON.
authorAndreas Schwab <schwab@linux-m68k.org>
Fri, 21 Sep 2012 12:57:34 +0000 (12:57 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Fri, 21 Sep 2012 12:57:34 +0000 (12:57 +0000)
gdb/ChangeLog
gdb/python/python.c

index a956b4b9762b3d0dd9d3c70efa82cbf17f5dd877..2fb946d9d4b33fa76017621476763e5c582fd07a 100644 (file)
@@ -1,3 +1,7 @@
+2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * python/python.c (finalize_python): Only define if HAVE_PYTHON.
+
 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        * eval.c (evaluate_subexp_standard): Eliminate single-use
index c66dc60356f0ec02f86e747fb0e860d48da23a30..97f85060544d5bb6980271da82926fffd9644708 100644 (file)
@@ -1266,6 +1266,8 @@ user_show_python (char *args, int from_tty)
 
 /* Initialize the Python code.  */
 
+#ifdef HAVE_PYTHON
+
 /* This is installed as a final cleanup and cleans up the
    interpreter.  This lets Python's 'atexit' work.  */
 
@@ -1283,6 +1285,7 @@ finalize_python (void *ignore)
 
   Py_Finalize ();
 }
+#endif
 
 /* Provide a prototype to silence -Wmissing-prototypes.  */
 extern initialize_file_ftype _initialize_python;