]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog
Remove cleanups from coff-pe-read.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
index 3c829df12d495fd46fb0f244a1f1c8ca749419b0..dd01ce376c8c7f050d5abfdce3b89090f7655229 100644 (file)
@@ -1,3 +1,776 @@
+2018-05-25  Tom Tromey  <tom@tromey.com>
+
+       * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
+       a std::string.
+       (get_pe_section_index, add_pe_exported_sym): Update.
+       (read_pe_exported_syms): Use gdb::def_vector.
+
+2018-05-25  Tom Tromey  <tom@tromey.com>
+
+       * frame.c (remove_prev_frame): Remove.
+       (get_prev_frame_if_no_cycle): Use TRY/CATCH.
+
+2018-05-25  Maciej W. Rozycki  <macro@mips.com>
+
+       * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
+       Remove prototypes.
+       * mips-linux-nat.c (supply_fpregset): Always call
+       `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
+       (fill_fpregset): Always call `mips64_fill_fpregset' rather than
+       `mips_fill_fpregset'.
+       * mips-linux-tdep.c (mips_supply_fpregset)
+       (mips_supply_fpregset_wrapper, mips_fill_fpregset)
+       (mips_fill_fpregset_wrapper): Remove functions.
+       (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
+       (mips_linux_fpregset): Remove variable.
+       (mips_linux_iterate_over_regset_sections): Use
+       `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
+       (mips_linux_o32_sigframe_init): Remove comment.
+
+2018-05-25  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
+       (struct readahead_cache, struct packet_reg, struct
+       remote_arch_state, class remote_state): Move higher up in the
+       file.
+       (remote_target::m_remote_state): Now an object instead of a pointer.
+       (remote_target::get_remote_state): Adjust.
+
+2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * stack.c (select_and_print_frame): Delete.
+       (struct function_bounds): Move struct within function.
+       (func_command): Most content moved into new function
+       find_frame_for_function, use new function, print result, add
+       function comment.
+       (find_frame_for_function): New function, now returns a result.
+
+2018-05-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * stack.c (iterate_over_block_arg_vars): Fix comment.
+       (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
+
+2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       PR gdb/23203
+       * frame.c
+       (scoped_restore_selected_frame::scoped_restore_selected_frame):
+       Define.
+       (scoped_restore_selected_frame::~scoped_restore_selected_frame):
+       Define.
+       * frame.h (class scoped_restore_selected_frame): New class.
+       * stack.c (print_frame_local_vars): Remove catching and rethrowing
+       of any exception, use scoped_restore_selected_frame to restore the
+       frame instead.
+
+2018-05-24  Pedro Alves  <palves@redhat.com>
+
+       * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
+       override.
+
+2018-05-23  Tom Tromey  <tom@tromey.com>
+
+       * complaints.c (struct complaints): Remove.
+       (symfile_complaint_book): Remove.
+       (series): New global.
+       (complaint_internal): Update.
+       (clear_complaints): Update.
+
+2018-05-23  Tom Tromey  <tom@tromey.com>
+
+       * complaints.c (counters): New global.
+       (struct complain): Remove.
+       (struct complaints) <root>: Remove.
+       (complaint_sentinel): Remove.
+       (symfile_complaint_book): Update.
+       (find_complaint) Remove.
+       (complaint_internal, clear_complaints): Update.
+
+2018-05-23  Tom Tromey  <tom@tromey.com>
+
+       * complaints.c (struct complain) <file, line>: Remove.
+       (find_complaint): Remove file, line parameters.
+       (complaint_internal): Update.
+
+2018-05-23  Tom Tromey  <tom@tromey.com>
+
+       * complaints.c (vcomplaint): Remove.
+       (complaint_internal) Merge in contents of vcomplaint.
+
+2018-05-23  Tom Tromey  <tom@tromey.com>
+
+       * complaints.c (struct complaints) <explanation>: Remove.
+       (symfile_explanations): Remove.
+       (symfile_complaint_book): Update.
+       (vcomplaint): Update.
+       (struct explanation): Remove.
+
+2018-05-23  Tom Tromey  <tom@tromey.com>
+
+       * complaints.c (symfile_complaints): Remove.
+       (complaint_internal): Remove "complaints" parameter.
+       (clear_complaints, vcomplaint): Remove "c" parameter.
+       (get_complaints): Remove.
+       * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
+       (dwarf2_debug_line_missing_file_complaint)
+       (dwarf2_debug_line_missing_end_sequence_complaint)
+       (dwarf2_complex_location_expr_complaint)
+       (dwarf2_const_value_length_mismatch_complaint)
+       (dwarf2_section_buffer_overflow_complaint)
+       (dwarf2_macro_malformed_definition_complaint)
+       (dwarf2_invalid_attrib_class_complaint)
+       (create_addrmap_from_index, dw2_symtab_iter_next)
+       (dw2_expand_marked_cus)
+       (dw2_debug_names_iterator::find_vec_in_debug_names)
+       (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
+       (create_debug_type_hash_table, init_cutu_and_read_dies)
+       (partial_die_parent_scope, add_partial_enumeration)
+       (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
+       (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
+       (read_import_statement, read_file_scope, create_dwo_cu_reader)
+       (create_cus_hash_table, create_dwp_hash_table)
+       (inherit_abstract_dies, read_func_scope, read_call_site_scope)
+       (dwarf2_rnglists_process, dwarf2_ranges_process)
+       (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
+       (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
+       (handle_struct_member_die, process_structure_scope)
+       (read_array_type, read_common_block, read_module_type)
+       (read_tag_pointer_type, read_typedef, read_base_type)
+       (read_subrange_type, load_partial_dies, partial_die_info::read)
+       (partial_die_info::read, partial_die_info::read)
+       (partial_die_info::read, read_checked_initial_length_and_offset)
+       (dwarf2_string_attr, read_formatted_entries)
+       (dwarf_decode_line_header)
+       (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
+       (new_symbol, dwarf2_const_value_attr, lookup_die_type)
+       (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
+       (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
+       (get_signatured_type, get_DW_AT_signature_type)
+       (decode_locdesc, file_file_name, consume_improper_spaces)
+       (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
+       (dwarf_decode_macro_bytes, dwarf_decode_macros)
+       (dwarf2_symbol_mark_computed, set_die_type)
+       (read_attribute_value): Update.
+       * stap-probe.c (handle_stap_probe, get_stap_base_address):
+       Update.
+       * dbxread.c (unknown_symtype_complaint)
+       (lbrac_mismatch_complaint, repeated_header_complaint)
+       (set_namestring, function_outside_compilation_unit_complaint)
+       (read_dbx_symtab, process_one_symbol): Update.
+       * gdbtypes.c (stub_noname_complaint): Update.
+       * windows-nat.c (handle_unload_dll): Update.
+       * coffread.c (coff_symtab_read, enter_linenos, decode_type)
+       (decode_base_type): Update.
+       * xcoffread.c (bf_notfound_complaint, ef_complaint)
+       (eb_complaint, record_include_begin, record_include_end)
+       (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
+       (process_xcoff_symbol, read_symbol)
+       (function_outside_compilation_unit_complaint)
+       (scan_xcoff_symtab): Update.
+       * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
+       * buildsym.c (finish_block_internal, make_blockvector)
+       (end_symtab_get_static_block, augment_type_symtab): Update.
+       * dtrace-probe.c (dtrace_process_dof)
+       (dtrace_static_probe_ops::get_probes): Update.
+       * complaints.h (struct complaint): Don't declare.
+       (symfile_complaints): Remove.
+       (complaint_internal): Remove "complaints" parameter.
+       (complaint): Likewise.
+       (clear_complaints): Likewise.
+       * symfile.c (syms_from_objfile_1, finish_new_objfile)
+       (reread_symbols): Update.
+       * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
+       (dwarf2_frame_cache, decode_frame_entry): Update.
+       * dwarf2loc.c (dwarf_reg_to_regnum): Update.
+       * objc-lang.c (lookup_objc_class, lookup_child_selector)
+       (info_selectors_command): Update.
+       * macrotab.c (macro_include, check_for_redefinition)
+       (macro_undef): Update.
+       * objfiles.c (filter_overlapping_sections): Update.
+       * stabsread.c (invalid_cpp_abbrev_complaint)
+       (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
+       (define_symbol, error_type, read_type, rs6000_builtin_type)
+       (stabs_method_name_from_physname, read_member_functions)
+       (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
+       (attach_fields_to_type, complain_about_struct_wipeout)
+       (read_range_type, read_args, common_block_start)
+       (common_block_end, cleanup_undefined_types_1, scan_file_globals):
+       Update.
+       * mdebugread.c (index_complaint, unknown_ext_complaint)
+       (basic_type_complaint, bad_tag_guess_complaint)
+       (bad_rfd_entry_complaint, unexpected_type_code_complaint)
+       (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
+       (parse_procedure, parse_lines)
+       (function_outside_compilation_unit_complaint)
+       (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
+       (bad_tag_guess_complaint, reg_value_complaint): Update.
+       * cp-support.c (demangled_name_complaint): Update.
+       * macroscope.c (sal_macro_scope): Update.
+       * dwarf-index-write.c (class debug_names): Update.
+
+2018-05-23  Tom Tromey  <tom@tromey.com>
+
+       * complaints.c (clear_complaints): Remove "noisy" parameter.
+       * complaints.h (clear_complaints): Update.
+       * symfile.c (syms_from_objfile_1, finish_new_objfile)
+       (reread_symbols): Update.
+
+2018-05-23  Tom Tromey  <tom@tromey.com>
+
+       * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
+       SUBSEQUENT_MESSAGE.
+       (vcomplaint, clear_complaints): Update.
+       (symfile_explanations): Remove some messages.
+
+2018-05-23  Tom Tromey  <tom@tromey.com>
+
+       * complaints.c (internal_complaint): Remove.
+       * complaints.h (internal_complaint): Remove.
+
+2018-05-22  Maciej W. Rozycki  <macro@mips.com>
+
+       * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
+       (remote_fileio_badfd, remote_fileio_return_errno)
+       (remote_fileio_return_success, remote_fileio_func_open)
+       (remote_fileio_func_open, remote_fileio_func_close)
+       (remote_fileio_func_read, remote_fileio_func_write)
+       (remote_fileio_func_lseek, remote_fileio_func_rename)
+       (remote_fileio_func_unlink, remote_fileio_func_stat)
+       (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
+       (remote_fileio_func_isatty, remote_fileio_func_system): Add
+       remote_target parameter.
+       (remote_fio_func_map) <func>: Add remote_target parameter.
+       (do_remote_fileio_request, remote_fileio_request):
+       * remote-fileio.h (remote_fileio_request):
+       * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
+       remote_target parameter.
+       (remote_notif_process, handle_notification): Adjust to pass down
+       the remote.
+       (remote_notif_state_allocate): Add remote_target parameter.  Save
+       it.
+       * remote-notif.h (struct remote_target): Forward declare.
+       (struct notif_client) <parse, ack, can_get_pending_events>: Add
+       remote_target parameter.
+       (struct remote_notif_state) <remote>: New field.
+       (remote_notif_ack, remote_notif_parse): Add remote_target
+       parameter.
+       (remote_notif_state_allocate, remote_notif_state_allocate): Add
+       remote_target parameter.
+       * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
+       (threads_listing_context, rmt_thread_action, protocol_feature)
+       (packet_reg, stop_reply, stop_reply_p, enum packet_support)
+       (packet_result, struct threads_listing_context, remote_state):
+       Move definitions and declarations higher up.
+       (remote_target) <~remote_target>: Declare.
+       (remote_download_command_source, remote_file_put, remote_file_get)
+       (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
+       (remote_hostio_pread_vFile, remote_hostio_send_command)
+       (remote_hostio_set_filesystem, remote_hostio_open)
+       (remote_hostio_close, remote_hostio_unlink, remote_state)
+       (get_remote_state, get_remote_packet_size, get_memory_packet_size)
+       (get_memory_write_packet_size, get_memory_read_packet_size)
+       (append_pending_thread_resumptions, remote_detach_1)
+       (append_resumption, remote_resume_with_vcont)
+       (add_current_inferior_and_thread, wait_ns, wait_as)
+       (process_stop_reply, remote_notice_new_inferior)
+       (process_initial_stop_replies, remote_add_thread)
+       (btrace_sync_conf, remote_btrace_maybe_reopen)
+       (remove_new_fork_children, kill_new_fork_children)
+       (discard_pending_stop_replies, stop_reply_queue_length)
+       (check_pending_events_prevent_wildcard_vcont)
+       (discard_pending_stop_replies_in_queue, stop_reply)
+       (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
+       (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
+       (remote_interrupt_as, remote_interrupt_ns)
+       (remote_get_noisy_reply, remote_query_attached)
+       (remote_add_inferior, remote_current_thread, get_current_thread)
+       (set_thread, set_general_thread, set_continue_thread)
+       (set_general_process, write_ptid)
+       (remote_unpack_thread_info_response, remote_get_threadinfo)
+       (parse_threadlist_response, remote_get_threadlist)
+       (remote_threadlist_iterator, remote_get_threads_with_ql)
+       (remote_get_threads_with_qxfer)
+       (remote_get_threads_with_qthreadinfo, extended_remote_restart)
+       (get_offsets, remote_check_symbols, remote_supported_packet)
+       (remote_query_supported, remote_packet_size)
+       (remote_serial_quit_handler, remote_detach_pid)
+       (remote_vcont_probe, remote_resume_with_hc)
+       (send_interrupt_sequence, interrupt_query)
+       (remote_notif_get_pending_events, fetch_register_using_p)
+       (send_g_packet, process_g_packet, fetch_registers_using_g)
+       (store_register_using_P, store_registers_using_G)
+       (set_remote_traceframe, check_binary_download)
+       (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
+       (remote_xfer_live_readonly_partial, remote_read_bytes)
+       (remote_send_printf, remote_flash_write, readchar)
+       (remote_serial_write, putpkt, putpkt_binary, skip_frame)
+       (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
+       (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
+       (extended_remote_disable_randomization, extended_remote_run)
+       (send_environment_packet, extended_remote_environment_support)
+       (extended_remote_set_inferior_cwd, remote_write_qxfer)
+       (remote_read_qxfer, push_stop_reply, vcont_r_supported)
+       (packet_command): Now methods of ...
+       (remote_target): ... this class.
+       (m_remote_state) <remote_target>: New field.
+       (struct remote_state) <stop_reply_queue,
+       remote_async_inferior_event_token, wait_forever_enabled_p>: New
+       fields.
+       (remote_state::remote_state): Allocate stop_reply_queue.
+       (remote_state): Delete global.
+       (get_remote_state_raw): Delete.
+       (remote_target::get_remote_state): Allocate m_remote_state on
+       demand.
+       (get_current_remote_target): New.
+       (remote_ops, extended_remote_ops): Delete.
+       (wait_forever_enabled_p, remote_async_inferior_event_token):
+       Delete, moved to struct remote_state.
+       (remote_target::close): Delete self.  Destruction bits split to
+       ...
+       (remote_target::~remote_target): ... this.
+       (show_memory_packet_size): Adjust to use
+       get_current_remote_target.
+       (struct protocol_feature) <func>: Add remote_target parameter.
+       All callers adjusted.
+       (curr_quit_handler_target): New.
+       (remote_serial_quit_handler): Reimplement.
+       (remote_target::open_1): Adjust to use get_current_remote_target.
+       Heap-allocate remote_target/extended_remote_target instances.
+       (vcont_builder::vcont_builder): Add remote_target parameter, and
+       save it in m_remote.  All callers adjusted.
+       (vcont_builder::m_remote): New field.
+       (vcont_builder::restart, vcont_builder::flush)
+       (vcont_builder::push_action): Use it.
+       (remote_target::commit_resume): Use it.
+       (struct queue_iter_param) <remote>: New field.
+       (remote_target::remove_new_fork_children): Fill in 'remote' field.
+       (check_pending_event_prevents_wildcard_vcont_callback_data): New.
+       (check_pending_event_prevents_wildcard_vcont_callback)
+       (remote_target::check_pending_events_prevent_wildcard_vcont)
+       (remote_target::discard_pending_stop_replies)
+       (remote_target::discard_pending_stop_replies_in_queue)
+       (remote_target::remote_notif_remove_queued_reply): Fill in
+       'remote' field.
+       (remote_notif_get_pending_events): New.
+       (remote_target::readchar, remote_target::remote_serial_write):
+       Save/restore curr_quit_handler_target.
+       (putpkt): New.
+       (kill_new_fork_children): Fill in 'remote' field.
+       (packet_command): Use get_current_remote_target, defer to
+       remote_target method of same name.
+       (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
+       parameter, and save it in m_remote.  All callers adjusted.
+       (scoped_remote_fd::release): Use m_remote.
+       (scoped_remote_fd::m_remote): New field.
+       (remote_file_put, remote_file_get, remote_file_delete): Use
+       get_current_remote_target, defer to remote_target method of same
+       name.
+       (remote_btrace_reset): Add remote_state paremeter.  Update all
+       callers.
+       (remote_async_inferior_event_handler). Pass down 'data'.
+       (remote_new_objfile): Use get_current_remote_target.
+       (remote_target::vcont_r_supported): New.
+       (set_range_stepping): Use get_current_remote_target and
+       remote_target::vcont_r_supported.
+       (_initialize_remote): Don't allocate 'remote_state' and
+       'stop_reply_queue' globals.
+       * remote.h (struct remote_target): Forward declare.
+       (getpkt, putpkt, remote_notif_get_pending_events): Add
+       'remote_target' parameter.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (vcont_builder): Now a class.  Make all data members
+       private.
+       (vcont_builder) <vcont_builder, restart, flush, push_action>:
+       Declare methods.
+       (vcont_builder_restart): Rename to ...
+       (vcont_builder::restart): ... this.
+       (vcont_builder_flush): Rename to ...
+       (vcont_builder::flush): ... this.
+       (vcont_builder_push_action): Rename to ...
+       (vcont_builder::push_action): ... this.
+       (remote_target::commit_resume): Adjust.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
+       (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
+       (get_fixed_memory_packet_size): New.
+       (get_memory_packet_size): Use it.
+       (set_memory_packet_size): Don't override the config size with
+       DEFAULT_MAX_MEMORY_PACKET_SIZE.
+       (show_memory_packet_size): Use get_fixed_memory_packet_size.
+       Don't refer to get_memory_packet_size if not connected to a remote
+       target.  Show "(default)" if configured size is 0.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (remote_target::mourn_inferior): Move
+       discard_pending_stop_replies call here from ...
+       (_initialize_remote): ... here.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (compare_section_command): Remove set_general_process
+       call.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (struct packet_reg, struct remote_arch_state):
+       Move higher up in the file.
+       (remote_state) <m_arch_states>: Store remote_arch_state values
+       instead of remote_arch_state pointers.
+       (remote_state::get_remote_arch_state): Adjust.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c: Include <unordered_map>.
+       (remote_state): Now a class.
+       (remote_state) <get_remote_arch_state>: Declare method.
+       <get_remote_arch_state>: New field.
+       (remote_arch_state) <remote_arch_state>: Declare ctor.
+       <regs>: Now a unique_ptr.
+       (remote_gdbarch_data_handle): Delete.
+       (get_remote_arch_state): Delete.
+       (remote_state::get_remote_arch_state): New.
+       (get_remote_state): Adjust to call remote_state's
+       get_remote_arch_state method.
+       (init_remote_state): Delete, bits factored out to ...
+       (remote_arch_state::remote_arch_state): ... this new method.
+       (get_remote_packet_size, get_memory_packet_size)
+       (process_g_packet, remote_target::fetch_registers)
+       (remote_target::prepare_to_store, store_registers_using_G)
+       (remote_target::store_registers, remote_target::get_trace_status):
+       Adjust to call remote_state's method.
+       (_initialize_remote): Remove reference to
+       remote_gdbarch_data_handle.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
+       pread>: New method declarations.
+       (remote_target::open_1): Adjust.
+       (readahead_cache_invalidate): Rename to ...
+       (readahead_cache::invalidate): ... this, and adjust to be a class
+       method.
+       (readahead_cache_invalidate_fd): Rename to ...
+       (readahead_cache::invalidate_fd): ... this, and adjust to be a
+       class method.
+       (remote_hostio_pwrite): Adjust.
+       (remote_hostio_pread_from_cache): Rename to ...
+       (readahead_cache::pread): ... this, and adjust to be a class
+       method.
+       (remote_hostio_close): Adjust.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (remote_hostio_close_cleanup): Delete.
+       (class scoped_remote_fd): New.
+       (remote_file_put, remote_file_get): Use it.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       (struct vCont_action_support): Use bool and initialize all fields.
+       (struct readahead_cache): Initialize all fields.
+       (remote_state): Use bool and initialize all fields.
+       (remote_state::remote_state, remote_state::~remote_state): New.
+       (new_remote_state): Delete.
+       (_initialize_remote): Use new to allocate remote_state.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+           張俊芝  <zjz@zjz.name>
+
+       PR gdb/22973
+       * c-exp.y: Include "c-support.h".
+       (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
+       of tolower.  Use c_ident_is_alpha to scan names.
+       * c-lang.c: Include "c-support.h".
+       (convert_ucn, convert_octal, convert_hex, convert_escape): Use
+       ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
+       * c-support.h: New file, with bits factored out from ...
+       * cp-name-parser.y: ... this file.
+       Include "c-support.h".
+       (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
+       c-support.h and renamed.
+       (symbol_end, yylex): Adjust.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
+       parameter type to CORE_ADDR.
+       * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
+       parameter type in declaration to CORE_ADDR.
+       * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
+       target_auxv_search to get AT_HWCAP and use the result to get the
+       target description.
+       * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
+       to CORE_ADDR. Remove the cast of the return value to unsigned
+       long. Fix error predicate of target_auxv_search.
+       (ppc_linux_nat_target::read_description): Change the type of the
+       hwcap variable to CORE_ADDR.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
+       if the size of fpscr is larger than 32 bits.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
+       (ppc32_linux_vsxregmap): New global.
+       (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
+       regcache_supply_regset, and regcache_collect_regset.
+       * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
+       * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
+       (fetch_vsx_register, store_vsx_register): Remove.
+       (fetch_vsx_registers): Add regno parameter. Get regset using
+       ppc_linux_vsxregset. Use regset to supply registers.
+       (store_vsx_registers): Add regno parameter. Get regset using
+       ppc_linux_vsxregset. Use regset to collect registers.
+       (fetch_register): Call fetch_vsx_registers instead of
+       fetch_vsx_register.
+       (store_register): Call store_vsx_registers instead of
+       store_vsx_register.
+       (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
+       new regno parameter.
+       (store_ppc_registers): Call store_vsx_registers with -1 for the
+       new regno parameter.
+       * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
+       (ppc_collect_vsxregset): Remove.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
+       offset fields.
+       * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
+       for vector register offset fields.
+       (ppc64_fbsd_reg_offsets): Likewise.
+       * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
+       to vector register offset fields.
+       * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
+       to vector register offset fields.
+       * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
+       vector register offset fields.
+       * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
+       initializers for vector register offset fields.
+       (rs6000_aix64_reg_offsets): Likewise.
+       * rs6000-tdep.c (ppc_vrreg_offset): Remove.
+       (ppc_supply_vrregset): Remove.
+       (ppc_collect_vrregset): Remove.
+       * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
+       (ppc_linux_vrregset) : New function.
+       (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
+       (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
+       (ppc32_linux_vrregset): Remove.
+       (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
+       and use result instead of ppc32_linux_vrregset.
+       (ppc32_linux_reg_offsets): Remove initializers for vector register
+       offset fields.
+       (ppc64_linux_reg_offsets): Likewise.
+       * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
+       * ppc-linux-nat.c: Include regset.h.
+       (gdb_vrregset_t): Adjust comment to account for little-endian
+       mode.
+       (supply_vrregset, fill_vrregset): Remove.
+       (fetch_altivec_register, store_altivec_register): Remove.
+       (fetch_altivec_registers): Add regno parameter. Get regset using
+       ppc_linux_vrregset. Use regset to supply registers.
+       (store_altivec_registers): Add regno parameter. Get regset using
+       ppc_linux_vrregset. Use regset to collect registers.
+       (fetch_register): Call fetch_altivec_registers instead of
+       fetch_altivec_register.
+       (store_register): Call store_altivec_registers instead of
+       store_altivec_register.
+       (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
+       the new regno parameter.
+       (store_ppc_registers): Call store_altivec_registers with -1 for
+       the new regno parameter.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
+       (PPC_LINUX_SIZEOF_VSXREGSET): Define.
+       * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
+       (gdb_vrregset_t): Change array type size to
+       PPC_LINUX_SIZEOF_VRREGSET.
+       (gdb_vsxregset_t): Change array type size to
+       PPC_LINUX_SIZEOF_VSXREGSET.
+       * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
+       Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
+       PPC_LINUX_SIZEOF_VSXREGSET.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
+       * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
+       nat/ppc-linux.c.
+       (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
+       ppc_linux_target_wordsize with tid.
+       (ppc_linux_nat_target::read_description): Call ppc_linux_target
+       wordsize with tid.
+       * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
+       (ppc64_64bit_inferior_p): Add static and inline specifiers.
+       (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
+       tid parameter. Remove static specifier.
+       * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
+       (ppc_linux_target_wordsize): New declaration.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * arch/ppc-linux-common.c: New file.
+       * arch/ppc-linux-common.h: New file.
+       * arch/ppc-linux-tdesc.h: New file.
+       * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
+       * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
+       (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
+       arch/ppc-linux-tdesc.h.
+       * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
+       arch/ppc-linux-tdesc.h.
+       (ppc_linux_nat_target::read_description): Remove target
+       description matching code. Fill a ppc_linux_features struct and
+       call ppc_linux_match_description with it. Move comment about ISA
+       2.05 to ppc-linux-common.c.
+       * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
+       arch/ppc-linux-tdesc.h.
+       (ppc_linux_core_read_description): Remove target description
+       matching code. Fill a ppc_linux_features struct and call
+       ppc_linux_match_description with it.
+       * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
+       (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
+       (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
+       (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
+       (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
+       (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
+       (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
+       (tdesc_powerpc_e500l): Remove.
+
+2018-05-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (catch_assert_command): Pass empty string instead
+       of NULL for excep_string argument.
+
+2018-05-22  Maciej W. Rozycki  <macro@mips.com>
+
+       * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
+       the width of the requested register exceeds the width of the
+       `ptrace' data type.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * printcmd.c (output_command): Remove.
+       (output_command_const): Rename to output_command.
+       * valprint.h (output_command): Rename from output_command_const.
+       * tracepoint.c (trace_dump_actions): Call output_command.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
+       (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
+       * ada-lang.h (create_ada_exception_catchpoint): Update.
+       * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
+       std::string.
+       (create_excep_cond_exprs, ~ada_catchpoint)
+       (should_stop_exception, print_one_exception)
+       (print_mention_exception, print_recreate_exception): Update.
+       (ada_get_next_arg): Remove.
+       (catch_ada_exception_command_split): Use std::string.  Change type
+       of "excep_string", "cond_string".
+       (catch_ada_exception_command): Update.
+       (create_ada_exception_catchpoint): Change type of excep_string.
+       (ada_exception_sal): Remove excep_string parameter.
+       (~ada_catchpoint): Remove.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * ada-lang.c (ada_collect_symbol_completion_matches): Remove
+       cleanup.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * ada-lang.c (ada_exception_message_1, ada_exception_message):
+       Return unique_xmalloc_ptr.
+       (print_it_exception): Update.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * tracepoint.c (trace_dump_actions): Use std::string.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * symfile.c (reread_symbols): Use std::string for original_name.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
+       (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN.  Default
+       constructor.
+
+2018-05-20  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
+       instance to...
+       (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
+       * objfiles.c (get_objfile_bfd_data): Allocate
+       objfile_per_bfd_storage with obstack_new when allocating on
+       obstack.
+
+2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
+       OBSTACK_ZALLOC.
+       * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
+       * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
+       * mdebugread.c (mdebug_build_psymtabs): Likewise.
+       (add_pending): Likewise.
+       (parse_symbol): Likewise.
+       (parse_partial_symbols): Likewise.
+       (psymtab_to_symtab_1): Likewise.
+       (new_psymtab): Likewise.
+       (elfmdebug_build_psymtabs): Likewise.
+       * minsyms.c (terminate_minimal_symbol_table): Likewise.
+       * objfiles.c (get_objfile_bfd_data): Likewise.
+       (objfile_register_static_link): Likewise.
+       * psymtab.c (allocate_psymtab): Likewise.
+       * stabsread.c (read_member_functions): Likewise.
+       * xcoffread.c (xcoff_end_psymtab): Likewise.
+
+2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
+       compiler supports std::is_trivially_constructible.
+       * common/poison.h: Include obstack.h.
+       (IsMallocable): Define to is_trivially_constructible if the
+       compiler supports it, define to true_type otherwise.
+       (xobnew): New.
+       (XOBNEW): Redefine.
+       (xobnewvec): New.
+       (XOBNEWVEC): Redefine.
+       * gdb_obstack.h (obstack_zalloc): New.
+       (OBSTACK_ZALLOC): Redefine.
+       (obstack_calloc): New.
+       (OBSTACK_CALLOC): Redefine.
+       (obstack_new): New.
+       * gdbarch.sh: Include gdb_obstack in gdbarch.h.
+       (gdbarch_obstack): New declaration in gdbarch.h, definition in
+       gdbarch.c.
+       (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
+       obstack_calloc/obstack_zalloc.
+       (gdbarch_obstack_zalloc): Remove.
+       * target-descriptions.c (tdesc_data_init): Use obstack_new.
+
+2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * stack.c (backtrace_command_1): Remove useless variable int i.
+
+2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * stack.c (print_frame_info): Fix comment.
+
 2018-05-18  Tom Tromey  <tom@tromey.com>
 
        * dwarf2read.c (struct dwz_file): Add constructor, initializers.