Convert ada_val_print_ref to value-based API
[binutils-gdb.git] / gdb / ChangeLog
index 490d9cbae5c77767f89fff743ba333a86af47f94..78ffe614c95ea6ecef380fd95ef96ffb66a764a8 100644 (file)
@@ -1,3 +1,366 @@
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * ada-valprint.c (ada_val_print_ref): Use common_val_print.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * ada-valprint.c (ada_value_print_num): New function.
+       (ada_value_print_1): Use it.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * ada-valprint.c (ada_value_print_ptr): New function.
+       (ada_value_print_1): Use it.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
+       call common_val_print.
+       (ada_val_print_1): Update.
+       (ada_value_print_1): New function.
+       (ada_value_print_inner): Rewrite.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * cp-valprint.c (cp_print_value_fields): Update.
+       (cp_print_value): New function.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * m2-valprint.c (m2_value_print_inner): Use
+       cp_print_value_fields.
+       * cp-valprint.c (cp_print_value_fields): New function.
+       * c-valprint.c (c_value_print_struct): New function.
+       (c_value_print_inner): Use c_value_print_struct.
+       * c-lang.h (cp_print_value_fields): Declare.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * c-valprint.c (c_value_print_array): New function.
+       (c_value_print_inner): Use it.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * c-valprint.c (c_value_print_memberptr): New function.
+       (c_value_print_inner): Use it.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * c-valprint.c (c_value_print_int): New function.
+       (c_value_print_inner): Use it.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * c-valprint.c (c_value_print_ptr): New function.
+       (c_value_print_inner): Use it.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * c-valprint.c (c_value_print_inner): Rewrite.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_value_print_complex): New function.
+       (generic_value_print): Use it.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_val_print_float): Don't call
+       val_print_scalar_formatted.
+       (generic_val_print, generic_value_print): Update.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_value_print_char): New function
+       (generic_value_print): Use it.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_value_print_int): New function.
+       (generic_value_print): Use it.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_value_print_bool): New function.
+       (generic_value_print): Use it.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_val_print_func): Simplify.
+       (generic_val_print, generic_value_print): Update.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_val_print_flags): Remove.
+       (generic_val_print, generic_value_print): Update.
+       (val_print_type_code_flags): Add original_value parameter.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_val_print): Update.
+       (generic_value_print): Update.
+       * valprint.c (generic_val_print_enum): Don't call
+       val_print_scalar_formatted.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_value_print): Call generic_value_print_ptr.
+       * valprint.c (generic_value_print_ptr): New function.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_value_print): Rewrite.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * p-valprint.c (pascal_object_print_value_fields)
+       (pascal_object_print_value): New functions.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * p-valprint.c (pascal_value_print_inner): Rewrite.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * f-valprint.c (f_value_print_innner): Rewrite.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * m2-valprint.c (m2_print_unbounded_array): New overload.
+       (m2_print_unbounded_array): Update.
+       (m2_print_array_contents): Take a struct value.
+       (m2_value_print_inner): Rewrite.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
+       (d_value_print_inner): New function.
+       * d-lang.h (d_value_print_inner): Declare.
+       * d-lang.c (d_language_defn): Use d_value_print_inner.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * go-valprint.c (go_value_print_inner): New function.
+       * go-lang.h (go_value_print_inner): Declare.
+       * go-lang.c (go_language_defn): Use go_value_print_inner.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * rust-lang.c (val_print_struct, rust_print_enum): Use the value
+       API.
+       (rust_val_print): Rewrite.
+       (rust_value_print_inner): New function, from rust_val_print.
+       (rust_language_defn): Use rust_value_print_inner.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * ada-valprint.c (ada_value_print_inner): New function.
+       * ada-lang.h (ada_value_print_inner): Declare.
+       * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * f-valprint.c (f_value_print_innner): New function.
+       * f-lang.h (f_value_print_innner): Declare.
+       * f-lang.c (f_language_defn): Use f_value_print_innner.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * p-valprint.c (pascal_value_print_inner): New function.
+       * p-lang.h (pascal_value_print_inner): Declare.
+       * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * m2-valprint.c (m2_value_print_inner): New function.
+       * m2-lang.h (m2_value_print_inner): Declare.
+       * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
+       * objc-lang.c (objc_language_defn): Use c_value_print_inner.
+       * c-valprint.c (c_value_print_inner): New function.
+       * c-lang.h (c_value_print_inner): Declare.
+       * c-lang.c (c_language_defn, cplus_language_defn)
+       (asm_language_defn, minimal_language_defn): Use
+       c_value_print_inner.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * p-valprint.c (pascal_object_print_value_fields): Now static.
+       * p-lang.h (pascal_object_print_value_fields): Don't declare.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * c-valprint.c (c_val_print_array): Simplify.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (value_print_array_elements): New function.
+       * valprint.h (value_print_array_elements): Declare.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * printcmd.c (print_formatted): Use value_print_scalar_formatted.
+       * mips-tdep.c (mips_print_register): Use
+       value_print_scalar_formatted.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.h (value_print_scalar_formatted): Declare.
+       * valprint.c (value_print_scalar_formatted): New function.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.h (generic_value_print): Declare.
+       * valprint.c (generic_value_print): New function.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (do_val_print): Call la_value_print_inner, if
+       available.
+       * rust-lang.c (rust_language_defn): Update.
+       * p-lang.c (pascal_language_defn): Update.
+       * opencl-lang.c (opencl_language_defn): Update.
+       * objc-lang.c (objc_language_defn): Update.
+       * m2-lang.c (m2_language_defn): Update.
+       * language.h (struct language_defn) <la_value_print_inner>: New
+       member.
+       * language.c (unknown_language_defn, auto_language_defn): Update.
+       * go-lang.c (go_language_defn): Update.
+       * f-lang.c (f_language_defn): Update.
+       * d-lang.c (d_language_defn): Update.
+       * c-lang.c (c_language_defn, cplus_language_defn)
+       (asm_language_defn, minimal_language_defn): Update.
+       * ada-lang.c (ada_language_defn): Update.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * c-valprint.c (c_value_print): Use common_val_print.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * cp-valprint.c (cp_print_static_field): Use common_val_print.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * f-valprint.c (f77_print_array_1, f_val_print): Use
+       common_val_print.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * riscv-tdep.c (riscv_print_one_register_info): Use
+       common_val_print.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * mi/mi-main.c (output_register): Use common_val_print.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * infcmd.c (default_print_one_register_info): Use
+       common_val_print.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.h (common_val_print_checked): Declare.
+       * valprint.c (common_val_print_checked): New function.
+       * stack.c (print_frame_arg): Use common_val_print_checked.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (do_val_print): New function, from val_print.
+       (val_print): Use do_val_print.
+       (common_val_print): Use do_val_print.
+
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (value_print): Use scoped_value_mark.
+
+2020-03-13  Tom de Vries  <tdevries@suse.de>
+
+       PR symtab/25646
+       * psymtab.c (partial_symtab::partial_symtab): Don't set
+       globals_offset and statics_offset.  Push element onto
+       current_global_psymbols and current_static_psymbols stacks.
+       (concat): New function.
+       (end_psymtab_common): Set globals_offset and statics_offset.  Pop
+       element from current_global_psymbols and current_static_psymbols
+       stacks.  Concat popped elements to global_psymbols and
+       static_symbols.
+       (add_psymbol_to_list): Use current_global_psymbols and
+       current_static_psymbols stacks.
+       * psymtab.h (class psymtab_storage): Add current_global_psymbols and
+       current_static_psymbols fields.
+
+2020-03-12  Christian Biesinger  <cbiesinger@google.com>
+
+       * corelow.c (sniff_core_bfd): Remove.
+       (class core_target) <m_core_vec>: Remove.
+       (core_target::core_target): Update.
+       (core_file_fns): Remove.
+       (deprecated_add_core_fns): Remove.
+       (default_core_sniffer): Remove.
+       (sniff_core_bfd): Remove.
+       (default_check_format): Remove.
+       (gdb_check_format): Remove.
+       (core_target_open): Update.
+       (core_target::get_core_register_section): Update.
+       (get_core_registers_cb): Update.
+       (core_target::fetch_registers): Update.
+       * gdbcore.h (struct core_fns): Remove.
+       (deprecated_add_core_fns): Remove.
+       (default_core_sniffer): Remove.
+       (default_check_format): Remove.
+
+2020-03-12  Tom Tromey  <tom@tromey.com>
+
+       * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
+       CORE_ADDR.
+       (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
+
+2020-03-12  Tom Tromey  <tom@tromey.com>
+
+       * remote.c (remote_target::download_tracepoint)
+       (remote_target::enable_tracepoint)
+       (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
+       * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
+       sprintf_vma.
+
+2020-03-12  Tom Tromey  <tom@tromey.com>
+
+       * symfile-mem.c: Update CORE_ADDR size assert.
+
+2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * selftest.m4: Move to gdbsupport/.
+       * acinclude.m4: Update path to selftest.m4.
+
+2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
+       (SELFTESTS_SRCS): ... this.  Add disasm-selftests.c,
+       gdbarch-selfselftests.c and selftest-arch.c.
+       (SUBDIR_UNITTESTS_OBS): Rename to...
+       (SELFTESTS_OBS): ... this.
+       (COMMON_SFILES): Remove disasm-selftests.c and
+       gdbarch-selftests.c.
+       * configure.ac: Don't add selftest-arch.{c,o} to
+       CONFIG_{SRCS,OBS}.
+       * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
+       preprocessor conditions.
+
+2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * configure.ac: Don't source bfd/development.sh.
+       * selftest.m4: Modify comment.
+       * configure: Re-generate.
+
 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
 
        * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is