This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 03/12] Mark optimized out values as non-lazy.


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;
 }



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]