Change value history to use value_ref_ptr
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 7e220ef89576e40bb54fd0a5e65cd94a38c08d07..67d87af13301bee5b4a54c2b72b487f38e1566af 100644 (file)
@@ -1,3 +1,182 @@
+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.
+       (find_methods, find_superclass_methods): Take a std::vector.
+       (find_method): Use std::vector.
+
+2018-04-05  Tom Tromey  <tom@tromey.com>
+
+       * utils.c (compare_strings): Remove.
+       * utils.h (compare_strings): Remove.
+       * objc-lang.h (find_imps): Update.
+       * objc-lang.c (find_methods): Take a std::vector.
+       (uniquify_strings, find_imps): Likewise.
+       * linespec.c (find_methods): Take a std::vector.
+       (decode_objc): Use std::vector.
+       (add_all_symbol_names_from_pspace, find_superclass_methods): Take
+       a std::vector.
+       (find_method, find_function_symbols): Use std::vector.
+
+2018-04-05  Tom Tromey  <tom@tromey.com>
+
+       * completer.c (completion_tracker::completion_tracker): Remove
+       cast.
+       (completion_tracker::discard_completions): Likewise.
+       * breakpoint.c (ambiguous_names_p): Remove cast.
+       * ada-lang.c (_initialize_ada_language): Remove cast.
+       * utils.h (streq): Update.
+       (streq_hash): Add new declaration.
+       * utils.c (streq): Return bool.
+       (streq_hash): New function.
+
+2018-04-05  Tom Tromey  <tom@tromey.com>
+
+       * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
+       Remove a string copy.
+
+2018-04-05  Tom Tromey  <tom@tromey.com>
+
+       * linespec.c (filter_results): Use std::vector.
+       (decode_line_2, decode_line_full): Update.
+
+2018-04-05  Tom Tromey  <tom@tromey.com>
+
+       * linespec.c (canonical_to_fullform): Return std::string.
+       (filter_results): Update.
+       (struct decode_line_2_item): Add constructor.
+       <fullform, displayform>: Now std::string.
+       (decode_line_2_compare_items): Now a std::sort comparator.
+       (decode_line_2): Update.
+
+2018-04-05  Tom Tromey  <tom@tromey.com>
+
+       * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
+       (unexpected_linespec_error): Update.
+       (linespec_parse_basic, parse_linespec): Update.
+
+2018-04-05  Tom Tromey  <tom@tromey.com>
+
+       * linespec.c (linespec_parse_basic): Reindent.
+
+2018-04-05  Tom Tromey  <tom@tromey.com>
+
+       * minsyms.h (iterate_over_minimal_symbols): Update.
+       * minsyms.c (iterate_over_minimal_symbols): Take a
+       gdb::function_view.
+       * linespec.c (struct collect_minsyms): Remove.
+       (compare_msyms): Now a std::sort comparator.
+       (add_minsym): Add parameters.
+       (search_minsyms_for_name): Update.  Use std::vector.
+
+2018-04-03  Tom Tromey  <tom@tromey.com>
+
+       * mipsread.c (read_alphacoff_dynamic_symtab): Use
+       gdb::byte_vector.
+
+2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
+
+       * MAINTAINERS (Write After Approval): Add Weimin Pan.
+
+2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
+
+       PR gdb/16959
+       * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when 
+       printing static type.
+
 2018-04-01  Tom Tromey  <tom@tromey.com>
 
        * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
 
 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
 
-       * gdb/symtab.c (find_pc_sect_line): fixed indentation.
+       * symtab.c (find_pc_sect_line): fixed indentation.
 
 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
 
-       * gdb/symtab.c (find_pc_sect_line): now uses binary search.
+       * symtab.c (find_pc_sect_line): now uses binary search.
 
 2018-03-19  Tom Tromey  <tom@tromey.com>
 
This page took 0.027843 seconds and 4 git commands to generate.