gdb/fortran: Handle dynamic string types when printing types
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index a07dd38291f0e5b9b1d2377ac5a5c219df75951e..f30edafdf92b3c6d134bf9e2695fedb20fd42893 100644 (file)
@@ -1,3 +1,279 @@
+2020-07-15  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * f-typeprint.c (f_type_print_base): Allow for dynamic types not
+       being resolved.
+
+2020-07-14  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * arch-utils.c (show_architecture): Update formatting of messages.
+
+2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (struct type) <bounds>: Handle array and string
+       types.
+       * ada-lang.c (assign_aggregate): Use type::bounds on
+       array/string type.
+       * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
+       * c-varobj.c (c_number_of_children): Likewise.
+       (c_describe_child): Likewise.
+       * eval.c (evaluate_subexp_for_sizeof): Likewise.
+       * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
+       (f_type_print_base): Likewise.
+       * f-valprint.c (f77_array_offset_tbl): Likewise.
+       (f77_get_upperbound): Likewise.
+       (f77_print_array_1): Likewise.
+       * guile/scm-type.c (gdbscm_type_range): Likewise.
+       * m2-typeprint.c (m2_array): Likewise.
+       (m2_is_long_set_of_type): Likewise.
+       * m2-valprint.c (get_long_set_bounds): Likewise.
+       * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
+       * python/py-type.c (typy_range): Likewise.
+       * rust-lang.c (rust_internal_print_type): Likewise.
+       * type-stack.c (type_stack::follow_types): Likewise.
+       * valarith.c (value_subscripted_rvalue): Likewise.
+       * valops.c (value_cast): Likewise.
+
+2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove.  Update all
+       callers to use the equivalent accessor methods.
+
+2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
+       (struct type) <bit_stride>: New method.
+       (TYPE_BIT_STRIDE): Remove.
+       * gdbtypes.c (update_static_array_size): Use type::bit_stride.
+
+2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
+       TYPE_ARRAY_UPPER_BOUND_VALUE): Remove.  Update all
+       callers to use the equivalent accessor methods instead.
+
+2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
+       TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove.  Update all
+       callers to use the equivalent accessor methods instead.
+
+2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (TYPE_LOW_BOUND_KIND,
+       TYPE_HIGH_BOUND_KIND): Remove.  Update all callers
+       to use dynamic_prop::kind.
+
+2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
+       TYPE_HIGH_BOUND_UNDEFINED): Remove.  Update all callers
+       to get the bound property's kind and check against
+       PROP_UNDEFINED.
+
+2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove.  Update
+       all callers to use type::range_bounds followed by
+       dynamic_prop::{low,high}.
+
+2020-07-12  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
+       const_val, set_const_val, baton, set_locexpr, set_loclist,
+       set_addr_offset, variant_parts, set_variant_parts,
+       original_type, set_original_type>: New methods.
+       <kind>: Rename to...
+       <m_kind>: ... this.  Update all users to use the new methods
+       instead.
+       <data>: Rename to...
+       <m_data>: ... this.  Update all users to use the new methods
+       instead.
+
+2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.c (get_discrete_bounds): Return failure if
+       the range type's bounds are not both defined and constant
+       values.
+       (get_array_bounds): Update comment.  Remove undefined bound check.
+
+2020-07-12  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * gdbtypes.h (TYPE_RANGE_DATA): Remove.  Update callers to use
+       the type::bounds method directly.
+
+2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
+       (TYPE_RANGE_DATA): Use type::bounds.  Change all uses that
+       are used to set the range type's bounds to use set_bounds.
+
+2020-07-11  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * exec.c (_initialize_exec): Update exec-file-mismatch help.
+
+2020-07-10  Pedro Alves  <pedro@palves.net>
+
+       * gdbthread.h (inferior_ref): Define.
+       (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
+       (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
+       * thread.c
+       (scoped_restore_current_thread::restore):
+       Adjust to gdb::ref_ptr.
+       (scoped_restore_current_thread::~scoped_restore_current_thread):
+       Remove manual decref handling.
+       (scoped_restore_current_thread::scoped_restore_current_thread):
+       Adjust to use
+       inferior_ref::new_reference/thread_info_ref::new_reference.
+       Incref the thread before calling get_frame_id instead of after.
+       Let TARGET_CLOSE_ERROR propagate.
+
+2020-07-10  Pedro Alves  <pedro@palves.net>
+
+       * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
+       NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
+       NOT_AVAILABLE_ERROR.
+       * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
+       OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
+
+2020-07-10  Simon Marchi  <simon.marchi@polymtl.ca>
+           Pedro Alves  <pedro@palves.net>
+
+       PR gdb/26199
+       * infrun.c (threads_are_resumed_pending_p): Delete.
+       (do_target_wait): Remove threads_are_executing and
+       threads_are_resumed_pending_p checks from the inferior_matches
+       lambda.  Update comments.
+
+2020-07-10  Pedro Alves  <pedro@palves.net>
+
+       PR gdb/26199
+       * infrun.c (handle_no_resumed): Transfer terminal to inferior with
+       executing threads.
+
+2020-07-10  Pedro Alves  <pedro@palves.net>
+
+       PR gdb/26199
+       * infrun.c (handle_no_resumed): Handle multiple targets.
+
+2020-07-10  Pedro Alves  <pedro@palves.net>
+
+       PR gdb/26199
+       * infrun.c (prepare_to_wait): Check target_can_async_p instead of
+       target_is_async_p.
+
+2020-07-10  Pedro Alves  <pedro@palves.net>
+
+       PR gdb/26199
+       * target.c (target_pass_ctrlc): Look at the inferior's non-exited
+       threads, not all threads.
+
+2020-07-10  Pedro Alves  <pedro@palves.net>
+
+       PR gdb/26199
+       * remote.c (remote_target::open_1): Pass remote target pointer as
+       data to create_async_event_handler.
+       (remote_async_inferior_event_handler): Mark async event handler
+       before returning if the remote target still has either pending
+       events or unacknowledged notifications.
+
+2020-07-10  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
+       declaration.
+       * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
+       function.
+
+2020-07-09  John Baldwin  <jhb@FreeBSD.org>
+
+       * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
+       inferior_ptid.
+
+2020-07-09  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
+       AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
+       AT_FREEBSD_PS_STRINGS.
+
+2020-07-08  Hannes Domani  <ssbssa@yahoo.de>
+
+       * auto-load.c (auto_load_objfile_script_1): Convert drive part
+       of debugfile path on Windows.
+
+2020-07-08  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
+       argument to 'data'.
+
+2020-07-08  Tom Tromey  <tromey@adacore.com>
+
+       * ada-lang.c (ada_exception_message_1): Use read_memory.
+
+2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       PR python/22748
+       * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
+       special handling for inline frames.
+       * findvar.c (value_of_register_lazy): Skip inline frames when
+       creating lazy register values.
+       * frame.c (frame_id_computed_p): Delete definition.
+       * frame.h (frame_id_computed_p): Delete declaration.
+
+2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * NEWS: Mention additions to Python API.
+       * python/py-arch.c (archpy_register_groups): New function.
+       (arch_object_methods): Add 'register_groups' method.
+       * python/py-registers.c (reggroup_iterator_object): New struct.
+       (reggroup_object): New struct.
+       (gdbpy_new_reggroup): New function.
+       (gdbpy_reggroup_to_string): New function.
+       (gdbpy_reggroup_name): New function.
+       (gdbpy_reggroup_iter): New function.
+       (gdbpy_reggroup_iter_next): New function.
+       (gdbpy_new_reggroup_iterator): New function
+       (gdbpy_initialize_registers): Register new types.
+       (reggroup_iterator_object_type): Define new Python type.
+       (gdbpy_reggroup_getset): New static global.
+       (reggroup_object_type): Define new Python type.
+       * python/python-internal.h
+
+2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
+       * python/py-arch.c (archpy_registers): New function.
+       (arch_object_methods): Add 'registers' method.
+       * python/py-registers.c: New file.
+       * python/python-internal.h
+       (gdbpy_new_register_descriptor_iterator): Declare.
+       (gdbpy_initialize_registers): Declare.
+       * python/python.c (do_start_initialization): Call
+       gdbpy_initialize_registers.
+       * NEWS: Mention additions to the Python API.
+
+2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * NEWS: Mention new Python API method.
+       * python/py-unwind.c (pending_framepy_architecture): New function.
+       (pending_frame_object_methods): Add architecture method.
+
+2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdbarch.c: Regenerate.
+       * gdbarch.h: Regenerate.
+       * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
+       (gdbarch_data): Use internal_error for the case where
+       deprecated_set_gdbarch_data was originally needed.
+       * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
+       and use passed in obstack.
+       (libunwind_frame_set_descr): Should no longer get back NULL from
+       gdbarch_data.
+       (_initialize_libunwind_frame): Register as a pre-init gdbarch data
+       type.
+       * user-regs.c (user_regs_init): Update parameters, and use passed
+       in obstack.
+       (user_reg_add): Should no longer get back NULL from gdbarch_data.
+       (_initialize_user_regs): Register as a pre-init gdbarch data type.
+
 2020-07-06  Tom de Vries  <tdevries@suse.de>
 
        * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
This page took 0.029903 seconds and 4 git commands to generate.