From: Paul Pluzhnikov Date: Thu, 23 Oct 2008 17:14:20 +0000 (+0000) Subject: 2008-10-23 Tom Tromey X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=997339e8ee1fb6f974c85a990c5177ba0fde6596;p=binutils-gdb.git 2008-10-23 Tom Tromey * python/python-value.c (value_to_value_object): Initialize owned_by_gdb field. (valpy_new): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7bb97805f5d..c5bee9772ea 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2008-10-23 Tom Tromey + + * python/python-value.c (value_to_value_object): Initialize + owned_by_gdb field. + (valpy_new): Likewise. + 2008-10-23 Jan Kratochvil Joel Brobecker diff --git a/gdb/python/python-value.c b/gdb/python/python-value.c index 6c4be544e3d..75ae62599c0 100644 --- a/gdb/python/python-value.c +++ b/gdb/python/python-value.c @@ -106,6 +106,7 @@ valpy_new (PyTypeObject *subtype, PyObject *args, PyObject *keywords) } value_obj->value = value; + value_obj->owned_by_gdb = 0; release_value (value); value_prepend_to_list (&values_in_python, value); @@ -519,6 +520,7 @@ value_to_value_object (struct value *val) if (val_obj != NULL) { val_obj->value = val; + val_obj->owned_by_gdb = 0; release_value (val); value_prepend_to_list (&values_in_python, val); }