Change value history to use value_ref_ptr
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index a8228471e684d8175b379f152b950d7be3e29121..67d87af13301bee5b4a54c2b72b487f38e1566af 100644 (file)
@@ -1,3 +1,97 @@
+2018-04-06  Tom Tromey  <tom@tromey.com>
+
+       * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
+       (value_history_chain, value_history_count): Remove.
+       (value_history): New global.
+       (record_latest_value, access_value_history, show_values)
+       (preserve_values): Update.
+
+2018-04-06  Tom Tromey  <tom@tromey.com>
+
+       * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
+       * varobj.c (varobj_set_display_format, varobj_set_value)
+       (install_default_visualizer, construct_visualizer)
+       (install_new_value, ~varobj, varobj_get_value_type)
+       (my_value_of_variable, varobj_editable_p): Update.
+       * c-varobj.c (c_describe_child, c_value_of_variable)
+       (cplus_number_of_children, cplus_describe_child): Update.
+       * ada-varobj.c (ada_number_of_children, ada_name_of_child)
+       (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
+       (ada_value_of_variable, ada_value_is_changeable_p): Update.
+
+2018-04-06  Tom Tromey  <tom@tromey.com>
+
+       * printcmd.c (last_examine_address): Change type to
+       value_ref_ptr.
+       (do_examine, x_command): Update.
+
+2018-04-06  Tom Tromey  <tom@tromey.com>
+
+       * value.c (release_value): Update.
+       * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
+       (struct bpstats) <val>: Now a value_ref_ptr.
+       * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
+       (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
+       (~watchpoint, print_it_watchpoint, watch_command_1)
+       (invalidate_bp_value_on_memory_change): Update.
+
+2018-04-06  Tom Tromey  <tom@tromey.com>
+
+       * varobj.c (varobj_clear_saved_item)
+       (update_dynamic_varobj_children, install_new_value, ~varobj):
+       Update.
+       * value.h (value_incref): Move declaration earlier.
+       (value_decref): Rename from value_free.
+       (struct value_ref_policy): New.
+       (value_ref_ptr): New typedef.
+       (struct value_deleter): Remove.
+       (gdb_value_up): Remove typedef.
+       (release_value): Change return type.
+       (release_value_or_incref): Remove.
+       * value.c (set_value_parent): Update.
+       (value_incref): Change return type.
+       (value_decref): Rename from value_free.
+       (value_free_to_mark, free_all_values, free_value_chain): Update.
+       (release_value): Return value_ref_ptr.
+       (release_value_or_incref): Remove.
+       (record_latest_value, set_internalvar, clear_internalvar):
+       Update.
+       * stack.c (info_frame_command): Don't call value_free.
+       * python/py-value.c (valpy_dealloc, valpy_new)
+       (value_to_value_object): Update.
+       * printcmd.c (do_examine): Update.
+       * opencl-lang.c (lval_func_free_closure): Update.
+       * mi/mi-main.c (register_changed_p): Don't call value_free.
+       * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
+       * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
+       * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
+       value_free.
+       * guile/scm-value.c (vlscm_free_value_smob)
+       (vlscm_scm_from_value): Update.
+       * frame.c (frame_register_unwind, frame_unwind_register_signed)
+       (frame_unwind_register_unsigned, get_frame_register_bytes)
+       (put_frame_register_bytes): Don't call value_free.
+       * findvar.c (address_from_register): Don't call value_free.
+       * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
+       * dwarf2loc.c (entry_data_value_free_closure)
+       (value_of_dwarf_reg_entry, free_pieced_value_closure)
+       (dwarf2_evaluate_loc_desc_full): Update.
+       * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
+       (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
+       (~watchpoint, watch_command_1)
+       (invalidate_bp_value_on_memory_change): Update.
+       * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
+
+2018-04-06  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       PR gdb/23022
+       * warning.m4: Add -Wno-error=deprecated-register.
+       * configure: Re-generate.
+
+2018-04-05  Tom Tromey  <tom@tromey.com>
+
+       * linespec.h: Remove include of "vec.h".
+
 2018-04-05  Tom Tromey  <tom@tromey.com>
 
        * linespec.c (typep): Remove typedef.
This page took 0.026515 seconds and 4 git commands to generate.