aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2009-07-21 18:12:40 +0000
committerDaniel Jacobowitz <drow@false.org>2009-07-21 18:12:40 +0000
commit828d3400fb1a9914ab16ee05dfe2647af8c566c5 (patch)
tree139f5ce0617cc046f8cbec6eb8a2381d838e80d0 /gdb/value.h
parent711eedefee89e6a9cb45e4967a523a7f9d516751 (diff)
downloadgdb-828d3400fb1a9914ab16ee05dfe2647af8c566c5.zip
gdb-828d3400fb1a9914ab16ee05dfe2647af8c566c5.tar.gz
gdb-828d3400fb1a9914ab16ee05dfe2647af8c566c5.tar.bz2
gdb/
* value.c (struct value): Add reference_count field. (allocate_value_lazy): Initialize reference_count. (value_incref): New function. (value_free): Check the reference count. * value.h (value_incref): New prototype.
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h
index d816156..039e160 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -582,6 +582,8 @@ extern int unop_user_defined_p (enum exp_opcode op, struct value *arg1);
extern int destructor_name_p (const char *name, const struct type *type);
+extern void value_incref (struct value *val);
+
extern void value_free (struct value *val);
extern void free_all_values (void);