X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=6b5c336b1e372bffec98424bec978a243947dc41;hb=4e9668d0d1ddad73af7c20a92a00704fbea2a8d9;hp=8c6e5ff4683ccdd7669b7720d863152dda81b405;hpb=c0c9f665d9d4cdcef59cc7951396d843a7ea6a48;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8c6e5ff468..6b5c336b1e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,495 @@ +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.