From e848a8a515f6a2a2b036933ed430c0aa6dbc2fde Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 22 Dec 2011 19:51:10 +0000 Subject: PR python/12533: * value.h (release_value_or_incref): Declare. * value.c (struct value) : 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. --- gdb/value.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/value.h') 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, -- cgit v1.1