diff options
author | Tom Tromey <tromey@redhat.com> | 2011-12-22 19:51:10 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-12-22 19:51:10 +0000 |
commit | e848a8a515f6a2a2b036933ed430c0aa6dbc2fde (patch) | |
tree | f9a9baa6df49f8417c91191f17e933c9a05d996e /gdb/value.h | |
parent | 87784a4754fe23d02ee8392357a8291ff2b6ed79 (diff) | |
download | gdb-e848a8a515f6a2a2b036933ed430c0aa6dbc2fde.zip gdb-e848a8a515f6a2a2b036933ed430c0aa6dbc2fde.tar.gz gdb-e848a8a515f6a2a2b036933ed430c0aa6dbc2fde.tar.bz2 |
PR python/12533:
* value.h (release_value_or_incref): Declare.
* value.c (struct value) <released>: New field.
(free_all_values, release_value, value_release_to_mark): Update
'released'.
(release_value_or_incref): New function.
* python/py-value.c (valpy_new): Use release_value_or_incref.
(value_to_value_object): Likewise.
* varobj.c (install_new_value): Move value_incref earlier.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h index d2c58ec..167847f 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -772,6 +772,8 @@ extern void free_value_chain (struct value *v); extern void release_value (struct value *val); +extern void release_value_or_incref (struct value *val); + extern int record_latest_value (struct value *val); extern void modify_field (struct type *type, gdb_byte *addr, |