diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2008-10-23 17:14:20 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2008-10-23 17:14:20 +0000 |
commit | 997339e8ee1fb6f974c85a990c5177ba0fde6596 (patch) | |
tree | 2220fb9c10457b9568654caf8c789da9796034e9 | |
parent | d6b67a5e935208727528220ff37abcb8af91e5d3 (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/python/python-value.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7bb9780..c5bee97 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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> 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); } |