mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 10:46:24 +08:00
2008-10-23 Tom Tromey <tromey@redhat.com>
* python/python-value.c (value_to_value_object): Initialize owned_by_gdb field. (valpy_new): Likewise.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user