From 4e07d55ffbd3d926ab776b2ce3fd13e96d214269 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 14 Feb 2011 11:10:53 +0000 Subject: Base support for value contents. gdb/ * value.h (value_bytes_available): Declare. (mark_value_bytes_unavailable): Declare. * value.c (struct range): New struct. (range_s): New typedef. (ranges_overlap): New function. (range_lessthan): New function. (ranges_contain_p): New function. (struct value) : New field. (value_bytes_available): New function. (mark_value_bytes_unavailable): New function. (require_not_optimized_out): Constify parameter. (require_available): New function. (value_contents_all, value_contents): Require all bytes be available. (value_free): Free `unavailable'. (value_copy): Copy `unavailable'. * valprint.h (val_print_unavailable): Declare. * valprint.c (valprint_check_validity): Rename `offset' parameter to `embedded_offset'. If printing a scalar, check whether the value chunk is available. (val_print_unavailable): New. (val_print_scalar_formatted): Check whether the value is available. * python/py-prettyprint.c (apply_val_pretty_printer): Refuse pretty-printing unavailable values. --- gdb/ChangeLog | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 37423ce..aa54988 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,34 @@ +2011-02-14 Pedro Alves + + Base support for value contents. + + gdb/ + * value.h (value_bytes_available): Declare. + (mark_value_bytes_unavailable): Declare. + * value.c (struct range): New struct. + (range_s): New typedef. + (ranges_overlap): New function. + (range_lessthan): New function. + (ranges_contain_p): New function. + (struct value) : New field. + (value_bytes_available): New function. + (mark_value_bytes_unavailable): New function. + (require_not_optimized_out): Constify parameter. + (require_available): New function. + (value_contents_all, value_contents): Require all bytes be + available. + (value_free): Free `unavailable'. + (value_copy): Copy `unavailable'. + * valprint.h (val_print_unavailable): Declare. + * valprint.c (valprint_check_validity): Rename `offset' parameter + to `embedded_offset'. If printing a scalar, check whether the + value chunk is available. + (val_print_unavailable): New. + (val_print_scalar_formatted): Check whether the value is + available. + * python/py-prettyprint.c (apply_val_pretty_printer): Refuse + pretty-printing unavailable values. + 2011-02-13 Jan Kratochvil Fix const/volatile qualifiers of C++ types, PR c++/12328. -- cgit v1.1