* python/python-value.c (values_in_python): Add specific initialization
authorJoel Brobecker <brobecker@gnat.com>
Mon, 8 Dec 2008 17:13:30 +0000 (17:13 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 8 Dec 2008 17:13:30 +0000 (17:13 +0000)
        to NULL to work-around a MacOS linker bug.

gdb/ChangeLog
gdb/python/python-value.c

index 4a24e60..5e34bbb 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-08  Joel Brobecker  <brobecker@adacore.com>
+
+       * python/python-value.c (values_in_python): Add specific initialization
+       to NULL to work-around a MacOS linker bug.
+
 2008-12-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix loc_type of `bp_location's created by update_watchpoint.
index 8bf4ec8..b23174c 100644 (file)
@@ -30,7 +30,9 @@
    can copy the values' types if needed.  This is declared
    unconditionally to reduce the number of uses of HAVE_PYTHON in the
    generic code.  */
-struct value *values_in_python;
+/* This variable is unnecessarily initialized to NULL in order to 
+   work around a linker bug on MacOS.  */
+struct value *values_in_python = NULL;
 
 #ifdef HAVE_PYTHON