gdb/jit: apply some simplifications and assertions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index e17a61ee063648dc6c12c03f65b3c6e3e4272b68..5d1a843d2b38432e4fa642571bcc1db2caf3e438 100644 (file)
@@ -1,3 +1,322 @@
+2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
+       checks.
+       (jit_read_descriptor): Remove NULL check.
+       (jit_event_handler): Add an assertion.
+
+2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.h (struct jit_objfile_data):  Split into...
+       (struct jiter_objfile_data): ... this ...
+       (struct jited_objfile_data): ... and this.
+       * objfiles.h (struct objfile) <jit_data>: Remove.
+       <jiter_data, jited_data>: New fields.
+       * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
+       (jiter_objfile_data::~jiter_objfile_data): ... this.
+       (get_jit_objfile_data): Rename to ...
+       (get_jiter_objfile_data): ... this.
+       (add_objfile_entry): Update.
+       (jit_read_descriptor): Use get_jiter_objfile_data.
+       (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
+       (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
+       (jit_inferior_exit_hook): Use objfile's jited_data field.
+
+2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.h: Forward-declare `struct minimal_symbol`.
+       (struct jit_objfile_data): Migrate to here from jit.c; also add a
+       constructor, destructor, and an objfile* field.
+       * jit.c (jit_objfile_data): Remove.
+       (struct jit_objfile_data): Migrate from here to jit.h.
+       (jit_objfile_data::~jit_objfile_data): New destructor
+       implementation with code moved from free_objfile_data.
+       (free_objfile_data): Delete.
+       (get_jit_objfile_data): Update to use the jit_data field of objfile.
+       (jit_find_objf_with_entry_addr): Ditto.
+       (jit_inferior_exit_hook): Ditto.
+       (_initialize_jit): Remove the call to
+       register_objfile_data_with_cleanup.
+       * objfiles.h (struct objfile) <jit_data>: New field.
+
+2020-07-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * jit.h: Forward-declare `struct objfile`.
+       (jit_event_handler): Add a second parameter, the JITer objfile.
+       * jit.c (jit_read_descriptor): Change the signature to take the
+       JITer objfile as an argument instead of the jit_program_space_data.
+       (jit_inferior_init): Update the call to jit_read_descriptor.
+       (jit_event_handler): Use the new JITer objfile argument when calling
+       jit_read_descriptor.
+       * breakpoint.c (handle_jit_event): Update the call to
+       jit_event_handler to pass the JITer objfile.
+
+2020-07-21  John Baldwin  <jhb@FreeBSD.org>
+
+       * gdbarch.c: Regenerate.
+       * gdbarch.h: Regenerate.
+       * gdbarch.sh (handle_segmentation_fault): Remove method.
+       * infrun.c (handle_segmentation_fault): Remove.
+       (print_signal_received_reason): Remove call to
+       handle_segmentation_fault.
+
+2020-07-21  John Baldwin  <jhb@FreeBSD.org>
+
+       * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
+       Rename to sparc64_linux_report_signal_info and add siggnal
+       argument.
+       (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
+       instead of sparc64_linux_handle_segmentation_fault.
+
+2020-07-21  John Baldwin  <jhb@FreeBSD.org>
+
+       * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
+       i386_linux_report_signal_info instead of
+       i386_linux_handle_segmentation_fault.
+       * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
+       to i386_linux_report_signal_info and add siggnal argument.
+       (i386_linux_init_abi): Use i386_linux_report_signal_info instead
+       of i386_linux_handle_segmentation_fault.
+       * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
+       to i386_linux_report_signal_info and add siggnal argument.
+
+2020-07-21  John Baldwin  <jhb@FreeBSD.org>
+
+       * corelow.c (core_target_open): Invoke gdbarch report_signal_info
+       hook if present.
+
+2020-07-21  John Baldwin  <jhb@FreeBSD.org>
+
+       * gdbarch.c: Regenerate.
+       * gdbarch.h: Regenerate.
+       * gdbarch.sh (report_signal_info): New method.
+       * infrun.c (print_signal_received_reason): Invoke gdbarch
+       report_signal_info hook if present.
+
+2020-07-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * python/py-registers.c : Add 'unordered_map' include.
+       (gdbpy_new_reggroup): Renamed to...
+       (gdbpy_get_reggroup): ...this.  Update to only create register
+       group descriptors when needed.
+       (gdbpy_reggroup_iter_next): Update.
+
+2020-07-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * python/py-registers.c (gdbpy_register_object_data): New static
+       global.
+       (gdbpy_register_object_data_init): New function.
+       (gdbpy_new_register_descriptor): Renamed to...
+       (gdbpy_get_register_descriptor): ...this, and update to reuse
+       existing register descriptors where possible.
+       (gdbpy_register_descriptor_iter_next): Update.
+       (gdbpy_initialize_registers): Register new gdbarch data.
+
+2020-07-21  Simon Marchi  <simon.marchi@efficios.com>
+
+       * linux-nat.c (stopped_pids): Make static.
+
+2020-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       PR ada/26235
+       * gdbtypes.c (ada_discrete_type_low_bound,
+       ada_discrete_type_high_bound): Handle undefined bounds.
+
+2020-07-21  Kamil Rytarowski  <n54@gmx.com>
+
+       * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
+       declaration.
+       * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
+       function.
+
+2020-07-20  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
+       (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
+       * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
+       * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
+       (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
+       method.
+
+2020-07-20 Ludovic Courtès  <ludo@gnu.org>
+
+       * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
+       and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
+       which are deprecated in Guile 3.0.
+       * configure.ac (try_guile_versions): Add "guile-3.0".
+       * configure (try_guile_versions): Regenerate.
+       * NEWS: Update entry.
+
+2020-07-20  Ludovic Courtès  <ludo@gnu.org>
+           Doug Evans  <dje@google.com>
+
+       PR gdb/21104
+       * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
+       (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
+       USING_GUILE_BEFORE_2_2.
+       (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
+       Change type to 'scm_t_port_type *'.
+       (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
+       (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
+       parameter and honor it.  Update callers.
+       (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
+       (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
+       functions.
+       (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
+       USING_GUILE_BEFORE_2_2.
+       (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
+       'ioscm_read_from_port'.  Call 'scm_set_port_read_wait_fd'.
+       (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
+       (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
+       and 'SCM_PORT_TYPE'.
+       (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
+       (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
+       (gdbscm_memory_port_read, gdbscm_memory_port_write)
+       (gdbscm_memory_port_seek, gdbscm_memory_port_close)
+       [!USING_GUILE_BEFORE_2_2]: New functions.
+       (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
+       (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
+       'gdbscm_memory_port_read'.
+       Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
+       'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
+       (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
+       function.
+       (ioscm_init_memory_port): Remove.
+       (ioscm_init_memory_port_stream): New function
+       (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
+       function.
+       (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
+       Return scm_from_uint (0).
+       (gdbscm_set_memory_port_read_buffer_size_x)
+       [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
+       (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
+       Return scm_from_uint (0).
+       (gdbscm_set_memory_port_write_buffer_size_x)
+       [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
+       * configure.ac (try_guile_versions): Add "guile-2.2".
+       * configure: Regenerate.
+       * NEWS: Add entry.
+
+2020-07-18  Tom Tromey  <tom@tromey.com>
+
+       * linux-nat.c (linux_multi_process): Remove.
+       (linux_nat_target::supports_multi_process): Return true.
+
+2020-07-17  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * arch/riscv.c (riscv_tdesc_cache): Change map type.
+       (riscv_lookup_target_description): Return pointer out of
+       unique_ptr.
+       * target-descriptions.c (allocate_target_description): Add
+       comment.
+       (target_desc_deleter::operator()): Likewise.
+       * target-descriptions.h (struct target_desc_deleter): Moved to
+       gdbsupport/tdesc.h.
+       (target_desc_up): Likewise.
+
+2020-07-17  Tom Tromey  <tromey@adacore.com>
+
+       * linux-nat.c (linux_nat_target::supports_non_stop)
+       (linux_nat_target::always_non_stop_p): Use "true".
+       (linux_nat_target::supports_disable_randomization): Use "true" and
+       "false".
+
+2020-07-16  Caroline Tice  <cmtice@google.com>
+
+       * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
+       (RNGLIST_HEADER_SIZE64): New constant definition.
+       (struct dwop_section_names): Add rnglists_dwo.
+       (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
+       (struct loclist_header): Rename to 'loclists_rnglists_header'.
+       (struct dwo_sections): Add rnglists field.
+       (read_attribut_reprocess): Add tag parameter.
+       (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
+       (cu_debug_rnglists_section): New function (decl & definition).
+       (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
+       (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
+       die whose range is being checked; get rnglist section from
+       cu_debug_rnglists_section, to get from either objfile or dwo file as
+       appropriate.  Add cases for DW_RLE_base_addressx,
+       DW_RLE_startx_length, DW_RLE_startx_endx.  Also, update to only add
+       the base address to DW_RLE_offset_pairs (not to all ranges), moving
+       test inside if-condition and updating complaint message.
+       (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
+       dwarf2_rnglists_process.
+       (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
+       dwarf2_ranges_process.
+       (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
+       need_ranges_base and update comment appropriately.  Also pass die tag
+       to dwarf2_ranges_read.
+       (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
+       need_ranges_base and update comment appropriately.  Also pass die tag
+       to dwarf2_ranges_process.
+       (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
+       cu->ranges_base.  Also pass die tag to read_attribute_reprocess.
+       (partial_die_info::read): Check for DW_FORM_rnglistx when setting
+       need_ranges_base and update comment appropriately.  Also pass die tag
+       to read_attribute_reprocess and dwarf2_ranges_read.
+       (read_loclist_header): Rename function to read_loclists_rnglists_header,
+       and update function comment appropriately.
+       (read_loclist_index): Call read_loclists_rnglists_header instead of
+       read_loclist_header.
+       (read_rnglist_index): New function.
+       (read_attribute_reprocess):  Add tag parameter. Add code for
+       DW_FORM_rnglistx, passing tag to read_rnglist_index.
+       (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
+
+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,
This page took 0.02934 seconds and 4 git commands to generate.