aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-12-08 17:13:30 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-12-08 17:13:30 +0000
commit4be15b7a086a497f8048bacceaef58b140e8fb87 (patch)
treeabd98b6d1de55c46af431657d21935c889ab754a /gdb/python
parent39d615713374a605484fcb0fe9576f91c98ebe78 (diff)
downloadgdb-4be15b7a086a497f8048bacceaef58b140e8fb87.zip
gdb-4be15b7a086a497f8048bacceaef58b140e8fb87.tar.gz
gdb-4be15b7a086a497f8048bacceaef58b140e8fb87.tar.bz2
* python/python-value.c (values_in_python): Add specific initialization
to NULL to work-around a MacOS linker bug.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/python-value.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/python/python-value.c b/gdb/python/python-value.c
index 8bf4ec8..b23174c 100644
--- a/gdb/python/python-value.c
+++ b/gdb/python/python-value.c
@@ -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