diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/python-value.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/python/python-value.c b/gdb/python/python-value.c index 8bf4ec892ff..b23174ca2b7 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 |