X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=cd30155141da16600c216236049491d1a521671b;hb=7ff8817441fcebe3d32343dbd9d514366bfe8e23;hp=d795b4a65291ef6830f00ede7e6d3cc0495379c1;hpb=2d79090eabe8aa972b07cb71a3dd73ef9498acfa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d795b4a652..cd30155141 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,845 @@ +2018-05-23 Tom Tromey + + * complaints.c (struct complain) : Remove. + (find_complaint): Remove file, line parameters. + (complaint_internal): Update. + +2018-05-23 Tom Tromey + + * complaints.c (vcomplaint): Remove. + (complaint_internal) Merge in contents of vcomplaint. + +2018-05-23 Tom Tromey + + * complaints.c (struct complaints) : Remove. + (symfile_explanations): Remove. + (symfile_complaint_book): Update. + (vcomplaint): Update. + (struct explanation): Remove. + +2018-05-23 Tom Tromey + + * 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 + + * 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 + + * complaints.c (enum complaint_series): Remove FIRST_MESSAGE, + SUBSEQUENT_MESSAGE. + (vcomplaint, clear_complaints): Update. + (symfile_explanations): Remove some messages. + +2018-05-23 Tom Tromey + + * complaints.c (internal_complaint): Remove. + * complaints.h (internal_complaint): Remove. + +2018-05-22 Maciej W. Rozycki + + * i387-tdep.c (i387_collect_xsave): Make `i' unsigned. + +2018-05-22 Pedro Alves + + * 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) : 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) : Add + remote_target parameter. + (struct remote_notif_state) : 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) : New field. + (struct remote_state) : 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) : 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) : 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 + + * remote.c (vcont_builder): Now a class. Make all data members + private. + (vcont_builder) : + 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 + + * 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 + + * remote.c (remote_target::mourn_inferior): Move + discard_pending_stop_replies call here from ... + (_initialize_remote): ... here. + +2018-05-22 Pedro Alves + + * remote.c (compare_section_command): Remove set_general_process + call. + +2018-05-22 Pedro Alves + + * remote.c (struct packet_reg, struct remote_arch_state): + Move higher up in the file. + (remote_state) : Store remote_arch_state values + instead of remote_arch_state pointers. + (remote_state::get_remote_arch_state): Adjust. + +2018-05-22 Pedro Alves + + * remote.c: Include . + (remote_state): Now a class. + (remote_state) : Declare method. + : New field. + (remote_arch_state) : Declare ctor. + : 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 + + * remote.c (struct readahead_cache) : 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 + + * 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 + + (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 + 張俊芝 + + 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * configure.nat : 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 + + * 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 + + * ada-lang.c (catch_assert_command): Pass empty string instead + of NULL for excep_string argument. + +2018-05-22 Maciej W. Rozycki + + * 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 + + * 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 + + * 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) : 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 + + * ada-lang.c (ada_collect_symbol_completion_matches): Remove + cleanup. + +2018-05-21 Tom Tromey + + * ada-lang.c (ada_exception_message_1, ada_exception_message): + Return unique_xmalloc_ptr. + (print_it_exception): Update. + +2018-05-21 Tom Tromey + + * tracepoint.c (trace_dump_actions): Use std::string. + +2018-05-21 Tom Tromey + + * symfile.c (reread_symbols): Use std::string for original_name. + +2018-05-21 Tom Tromey + + * 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 + + * 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 + + * 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 + + * 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 + + * stack.c (backtrace_command_1): Remove useless variable int i. + +2018-05-19 Philippe Waroquiers + + * stack.c (print_frame_info): Fix comment. + +2018-05-18 Tom Tromey + + * dwarf2read.c (struct dwz_file): Add constructor, initializers. + : Now a gdb_bfd_ref_ptr. + (~dwarf2_per_objfile): Update + (dwarf2_get_dwz_file): Use new. + * dwarf2read.h (struct dwarf2_per_objfile) : Now a + unique_ptr. + +2018-05-18 Tom Tromey + + * dwarf2read.h (struct dwarf2_per_objfile) : Now a + unique_ptr. + * dwarf2read.c (struct dwp_file): Add constructor and + initializers. + (open_and_init_dwp_file): Return a unique_ptr. + (dwarf2_per_objfile, create_dwp_hash_table) + (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2) + (lookup_dwo_unit_in_dwp): Update. + (open_and_init_dwp_file, get_dwp_file): Update. + +2018-05-18 Tom Tromey + + * dwarf2read.c (dwarf2_per_objfile): Update. + (struct mapped_index): Add initializers. + (dwarf2_read_index): Use new. + (dw2_symtab_iter_init): Update. + * dwarf2read.h (struct dwarf2_per_objfile) : Now a + unique_ptr. + +2018-05-18 Simon Marchi + + * dwarf2read.c (mapped_index) : Remove. + +2018-05-18 Simon Marchi + + * unittests/format_pieces-selftests.c (test_format_specifier): + Add ARI comments. + +2018-05-18 Tom Tromey + + * c-typeprint.c (maybe_print_hole): New function. + (c_print_type_struct_field_offset): Update. + (c_type_print_base_struct_union): Call maybe_print_hole. + +2018-05-17 Keith Seitz + + * breakpoint.c (build_bpstat_chain): New function, moved from + bpstat_stop_status. + (bpstat_stop_status): Add optional parameter, `stop_chain'. + If no stop chain is passed, call build_bpstat_chain to build it. + * breakpoint.h (build_bpstat_chain): Declare. + (bpstat_stop_status): Move documentation here from breakpoint.c. + * infrun.c (handle_signal_stop): Before eliding inlined frames, + build the stop chain and pass it to skip_inline_frames. + Pass this stop chain to bpstat_stop_status. + * inline-frame.c: Include breakpoint.h. + (stopped_by_user_bp_inline_frame): New function. + (skip_inline_frames): Add parameter `stop_chain'. + Move documention to inline-frame.h. + If non-NULL, use stopped_by_user_bp_inline_frame to determine + whether the frame should be elided. + * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'. + Add moved documentation and update for new parameter. + +2018-05-17 Simon Marchi + + PR cli/14975 + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/format_pieces-selftests.c. + * common/format.h (format_piece) : New. + (format_pieces) : Remove. + * common/format.c (format_pieces::format_pieces): Handle \e. + * unittests/format_pieces-selftests.c: New. + +2018-05-17 Tom Tromey + + PR symtab/23010: + * dwarf2read.c (load_cu, dw2_do_instantiate_symtab) + (dw2_instantiate_symtab): Add skip_partial parameter. + (dw2_find_last_source_symtab, dw2_map_expand_apply) + (dw2_lookup_symbol, dw2_expand_symtabs_for_function) + (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname) + (dw2_expand_symtabs_matching_one) + (dw2_find_pc_sect_compunit_symtab) + (dw2_debug_names_lookup_symbol) + (dw2_debug_names_expand_symtabs_for_function): Update. + (init_cutu_and_read_dies): Add skip_partial parameter. + (process_psymtab_comp_unit, build_type_psymtabs_1) + (process_skeletonless_type_unit, load_partial_comp_unit) + (psymtab_to_symtab_1): Update. + (load_full_comp_unit): Add skip_partial parameter. + (process_imported_unit_die, dwarf2_read_addr_index) + (follow_die_offset, dwarf2_fetch_die_loc_sect_off) + (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off) + (read_signatured_type): Update. + +2018-05-17 Simon Marchi + + * value.c (release_value): Remove unused variable. + (record_latest_value): Likewise. + (access_value_history): Likewise. + (preserve_values): Likewise. + +2018-05-17 Tom Tromey + + * extension.h (struct ext_lang_type_printers) : + Initialize. + +2018-05-16 Maciej W. Rozycki + + PR gdb/22286 + * linux-nat-trad.c (linux_nat_trad_target::fetch_register): + Also handle registers whose width is not a multiple of + PTRACE_TYPE_RET. + (linux_nat_trad_target::store_register): Likewise. + +2018-05-16 Tom Tromey + + * gdbcore.h (core_bfd): Redefine. + * corelow.c (core_target::close): Update. + (core_target_open): Update. + * progspace.h (struct program_space) : Now a + gdb_bfd_ref_ptr. + +2018-05-16 Tom Tromey + + PR cli/19551: + * symfile-add-flags.h (enum symfile_add_flags) + : New constant. + * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get + objfile name from BFD. + (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME. + * minidebug.c (find_separate_debug_file_in_section): Put + ".gnu_debugdata" into BFD's file name. + +2018-05-16 Simon Marchi + + * regcache.c (regcache_read_ftype, regcache_write_ftype): + Remove. + +2018-05-15 Tamar Christina + + PR binutils/21446 + * aarch64-tdep.c (aarch64_analyze_prologue, + aarch64_software_single_step, aarch64_displaced_step_copy_insn): + Indicate not interested in errors. + +2018-05-15 Maciej W. Rozycki + + * mips-linux-nat.c (mips_linux_nat_target::fetch_registers): + Supply the MIPS_ZERO_REGNUM register. + +2018-05-15 Maciej W. Rozycki + + * mips-tdep.c (mask_address_var): Make variable static. + 2018-05-14 Tom Tromey * dwarf2read.c (rust_union_quirks): Clear rust_unions.