2008-10-23 Tom Tromey <tromey@redhat.com>
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Thu, 23 Oct 2008 17:14:20 +0000 (17:14 +0000)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Thu, 23 Oct 2008 17:14:20 +0000 (17:14 +0000)
* python/python-value.c (value_to_value_object): Initialize
owned_by_gdb field.
(valpy_new): Likewise.

gdb/ChangeLog
gdb/python/python-value.c

index 7bb97805f5d727a0a0c6f05b8f0253596c168d53..c5bee9772ea3e33ef915ef2e02e6d68d2147f3cd 100644 (file)
@@ -1,3 +1,9 @@
+2008-10-23  Tom Tromey  <tromey@redhat.com>
+
+       * python/python-value.c (value_to_value_object): Initialize
+       owned_by_gdb field.
+       (valpy_new): Likewise.
+       
 2008-10-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
            Joel Brobecker  <brobecker@adacore.com>
 
index 6c4be544e3d1c6b26c40dbd2a2fda34f4e54b442..75ae62599c0e7462a37e381d4d16cfec17af13f2 100644 (file)
@@ -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);
     }