From: Joel Brobecker Date: Mon, 8 Dec 2008 17:13:30 +0000 (+0000) Subject: * python/python-value.c (values_in_python): Add specific initialization X-Git-Tag: arc-insight_6_8-branchpoint~636 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b9b2df2e314d7db4ea3a5c3c8c00139db22e862f;p=pf3gnuchains%2Fpf3gnuchains4x.git * python/python-value.c (values_in_python): Add specific initialization to NULL to work-around a MacOS linker bug. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4a24e60fa0..5e34bbb7c1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-12-08 Joel Brobecker + + * python/python-value.c (values_in_python): Add specific initialization + to NULL to work-around a MacOS linker bug. + 2008-12-08 Jan Kratochvil Fix loc_type of `bp_location's created by update_watchpoint. diff --git a/gdb/python/python-value.c b/gdb/python/python-value.c index 8bf4ec892f..b23174ca2b 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