This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 03/12] Mark optimized out values as non-lazy.
- From: "Andrew Burgess" <aburgess at broadcom dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 12 Aug 2013 13:20:39 +0100
- Subject: [PATCH 03/12] Mark optimized out values as non-lazy.
- References: <5208D1DF dot 1090201 at broadcom dot com>
This is a re-posting of this patch:
http://sourceware.org/ml/gdb-patches/2013-07/msg00058.html
The patch was never rejected, it just ran out of steam. Pedro noticed
that we could go beyond this patch and do more, even releasing the
value contents when we spot values are fully optimized out. I agree,
but believe that is a separate idea, that can always be added later,
for this case we've not even allocated any value contents yet.
OK to apply?
Cheers,
Andrew
gdb/ChangeLog
2013-08-12 Andrew Burgess <aburgess@broadcom.com>
* value.c (allocate_optimized_out_value): Mark fully optimized out
values as non-lazy.
diff --git a/gdb/value.c b/gdb/value.c
index 462244e..64c9d78 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -744,6 +744,8 @@ allocate_optimized_out_value (struct type *type)
mark_value_bytes_optimized_out (retval, 0, TYPE_LENGTH (type));
+ set_value_lazy (retval, 0);
+
return retval;
}