summaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-07-12 21:16:46 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-07-12 21:16:46 +0000
commitacfe85f56075910a3ba5e8b76189e0770079b8d1 (patch)
treebfc02b196563963162a3cb2e13c5eda03ad53a0b /gdb/value.h
parent1240d00ef2092028f3d3811ae4fb9295edaa7e30 (diff)
downloadgdb-acfe85f56075910a3ba5e8b76189e0770079b8d1.tar.gz
gdb/
Code cleanup making also optimized out values lazy. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_optimized_out_value. Twice. (loclist_read_variable) Use allocate_optimized_out_value. Once. * findvar.c (read_var_value): Likewise. * value.c (allocate_optimized_out_value): New function. * value.h (allocate_optimized_out_value): New declaration.
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 03ca36bb5c1..307983170c0 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -207,6 +207,8 @@ extern struct value *allocate_computed_value (struct type *type,
struct lval_funcs *funcs,
void *closure);
+extern struct value *allocate_optimized_out_value (struct type *type);
+
/* If VALUE is lval_computed, return its lval_funcs structure. */
extern struct lval_funcs *value_computed_funcs (struct value *value);