From 997339e8ee1fb6f974c85a990c5177ba0fde6596 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Thu, 23 Oct 2008 17:14:20 +0000 Subject: [PATCH] 2008-10-23 Tom Tromey * python/python-value.c (value_to_value_object): Initialize owned_by_gdb field. (valpy_new): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/python/python-value.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7bb97805f5..c5bee9772e 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 6c4be544e3..75ae62599c 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); } -- 2.34.1