aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-08-13 18:39:20 +0000
committerTom Tromey <tromey@redhat.com>2009-08-13 18:39:20 +0000
commit4e7a5ef5a84e2f120a52def047ef671f8dbd7954 (patch)
tree4725f0f358a5993278ac1bde5d391739ae6740d4 /gdb/value.h
parentecd0ada520284724373d81f3580cf1e15855b737 (diff)
downloadgdb-4e7a5ef5a84e2f120a52def047ef671f8dbd7954.zip
gdb-4e7a5ef5a84e2f120a52def047ef671f8dbd7954.tar.gz
gdb-4e7a5ef5a84e2f120a52def047ef671f8dbd7954.tar.bz2
* varobj.c (update_dynamic_varobj_children): Don't use
value_copy. * value.h: (preserve_one_value): Declare. (value_prepend_to_list, value_remove_from_list): Remove. * value.c (preserve_one_value): No longer static. (preserve_values): Call preserve_python_values. (value_prepend_to_list): Remove. (value_remove_from_list): Remove. * python/python.h (values_in_python): Don't declare. (preserve_python_values): Declare. * python/python-value.c (values_in_python): Change type. Move lower. Now static. (struct value_object): Add struct tag. <next, prev>: New fields. (valpy_dealloc): Update. (note_value): New function. (valpy_new): Use value_incref, note_value. (preserve_python_values): New function. (valpy_positive): Don't use value_copy. (value_to_value_object): Use value_incref, note_value. (convert_value_from_python): Update comment.
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 29ad783..6f6b756 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -41,11 +41,6 @@ struct value_print_options;
struct value;
-/* Needed if another module needs to maintain its own list of values. */
-
-void value_prepend_to_list (struct value **head, struct value *val);
-void value_remove_from_list (struct value **head, struct value *val);
-
/* Values are stored in a chain, so that they can be deleted easily
over calls to the inferior. Values assigned to internal variables,
put into the value history or exposed to Python are taken off this
@@ -664,6 +659,8 @@ extern void preserve_values (struct objfile *);
extern struct value *value_copy (struct value *);
+extern void preserve_one_value (struct value *, struct objfile *, htab_t);
+
/* From valops.c */
extern struct value *varying_to_slice (struct value *);