aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c
index ccd29c8..f308f3d 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -728,6 +728,18 @@ allocate_computed_value (struct type *type,
return v;
}
+/* Allocate NOT_LVAL value for type TYPE being OPTIMIZED_OUT. */
+
+struct value *
+allocate_optimized_out_value (struct type *type)
+{
+ struct value *retval = allocate_value_lazy (type);
+
+ set_value_optimized_out (retval, 1);
+
+ return retval;
+}
+
/* Accessor methods. */
struct value *