aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2008-10-23 17:14:20 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2008-10-23 17:14:20 +0000
commit997339e8ee1fb6f974c85a990c5177ba0fde6596 (patch)
tree2220fb9c10457b9568654caf8c789da9796034e9 /gdb/python
parentd6b67a5e935208727528220ff37abcb8af91e5d3 (diff)
downloadgdb-997339e8ee1fb6f974c85a990c5177ba0fde6596.zip
gdb-997339e8ee1fb6f974c85a990c5177ba0fde6596.tar.gz
gdb-997339e8ee1fb6f974c85a990c5177ba0fde6596.tar.bz2
2008-10-23 Tom Tromey <tromey@redhat.com>
* python/python-value.c (value_to_value_object): Initialize owned_by_gdb field. (valpy_new): Likewise.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/python-value.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/python-value.c b/gdb/python/python-value.c
index 6c4be54..75ae625 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);
}