X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=9f33d6820fb12e81452cc6e28227d5ff4a6c654d;hb=112e8700a6fd2fed65ca70132c9cbed4132e8bd4;hp=21d10c4be3e67b319f8a0a4e742101a654c4ba2b;hpb=e4975d6a9cd8aaf3fb14135b36850964def131d7;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 21d10c4be3..9f33d6820f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,1047 @@ +2016-12-22 Simon Marchi + + * ui-out.h (ui_out_begin, ui_out_end, ui_out_table_header, + ui_out_table_body, ui_out_field_int, ui_out_field_fmt_int, + ui_out_field_core_addr, ui_out_field_string, ui_out_field_stream, + ui_out_field_fmt, ui_out_field_skip, ui_out_spaces, ui_out_text, + ui_out_message, ui_out_wrap_hint, ui_out_flush, ui_out_test_flags, + ui_out_query_field, ui_out_is_mi_like_p, ui_out_redirect): + Remove, replace with a method in class ui_out. + (table_begin_ftype): Remove, replace with pure virtual method in + class ui_out. + (table_body_ftype): Likewise. + (table_end_ftype): Likewise. + (table_header_ftype): Likewise. + (ui_out_begin_ftype): Likewise. + (ui_out_end_ftype): Likewise. + (field_int_ftype): Likewise. + (field_skip_ftype): Likewise. + (field_string_ftype): Likewise. + (field_fmt_ftype): Likewise. + (spaces_ftype): Likewise. + (text_ftype): Likewise. + (message_ftype): Likewise. + (wrap_hint_ftype): Likewise. + (flush_ftype): Likewise. + (redirect_ftype): Likewise. + (data_destroy_ftype): Likewise. + (struct ui_out_impl): Remove, replace with class ui_out. + (ui_out_new): Remove. + (class ui_out): New class. + * ui-out.c (struct ui_out): Remove, replaced with class ui_out. + (current_level): Remove, replace with ui_out method. + (push_level): Likewise. + (pop_level): Likewise. + (uo_table_begin, uo_table_body, uo_table_end, uo_table_header, + uo_begin, uo_end, uo_field_int, uo_field_skip, uo_field_fmt, + uo_spaces, uo_text, uo_message, uo_wrap_hint, uo_flush, + uo_redirect, uo_field_string): Remove. + (ui_out_table_begin): Replace with ... + (ui_out::table_begin): ... this. + (ui_out_table_body): Replace with ... + (ui_out::table_body): ... this. + (ui_out_table_end): Replace with ... + (ui_out::table_end): ... this. + (ui_out_table_header): Replace with ... + (ui_out::table_header): ... this. + (ui_out_begin): Replace with ... + (ui_out::begin): ... this. + (ui_out_end): Replace with ... + (ui_out::end): ... this. + (ui_out_field_int): Replace with ... + (ui_out::field_int): ... this. + (ui_out_field_fmt_int): Replace with ... + (ui_out::field_fmt_int): ... this. + (ui_out_field_core_addr): Replace with ... + (ui_out::field_core_addr): ... this. + (ui_out_field_stream): Replace with ... + (ui_out::field_stream): ... this. + (ui_out_field_skip): Replace with ... + (ui_out::field_skip): ... this. + (ui_out_field_string): Replace with ... + (ui_out::field_string): ... this. + (ui_out_field_fmt): Replace with ... + (ui_out::field_fmt): ... this. + (ui_out_spaces): Replace with ... + (ui_out::spaces): ... this. + (ui_out_text): Replace with ... + (ui_out::text): ... this. + (ui_out_message): Replace with ... + (ui_out::message): ... this. + (ui_out_wrap_hint): Replace with ... + (ui_out::wrap_hint): ... this. + (ui_out_flush): Replace with ... + (ui_out::flush): ... this. + (ui_out_redirect): Replace with ... + (ui_out::redirect): ... this. + (ui_out_test_flags): Replace with ... + (ui_out::test_flags): ... this. + (ui_out_is_mi_like_p): Replace with ... + (ui_out::is_mi_like_p): ... this. + (verify_field): Replace with ... + (ui_out::verify_field): ... this. + (ui_out_query_field): Replace with ... + (ui_out::query_table_field): ... this. + (ui_out_data): Remove. + (ui_out_new): Remove, replace with ... + (ui_out::ui_out): ... this constructor. + (do_cleanup_table_end, make_cleanup_ui_out_tuple_begin_end, + do_cleanup_end, make_cleanup_ui_out_tuple_begin_end, + make_cleanup_ui_out_list_begin_end): Update fallouts of struct + ui_out -> class ui_out change. + * cli-out.c (cli_out_data): Remove. + (cli_uiout_dtor): Remove. + (cli_table_begin): Replace with ... + (cli_ui_out::do_table_begin): ... this new method. + (cli_table_body): Replace with ... + (cli_ui_out::do_table_body): ... this new method. + (cli_table_end): Replace with ... + (cli_ui_out::do_table_end): ... this new method. + (cli_table_header): Replace with ... + (cli_ui_out::do_table_header): ... this new method. + (cli_begin): Replace with ... + (cli_ui_out::do_begin): ... this new method. + (cli_end): Replace with ... + (cli_ui_out::do_end): ... this new method. + (cli_field_int): Replace with ... + (cli_ui_out::do_field_int): ... this new method. + (cli_field_skip): Replace with ... + (cli_ui_out::do_field_skip): ... this new method. + (cli_field_string): Replace with ... + (cli_ui_out::do_field_string): ... this new method. + (cli_field_fmt): Replace with ... + (cli_ui_out::do_field_fmt): ... this new method. + (cli_spaces): Replace with ... + (cli_ui_out::do_spaces): ... this new method. + (cli_text): Replace with ... + (cli_ui_out::do_text): ... this new method. + (cli_message): Replace with ... + (cli_ui_out::do_message): ... this new method. + (cli_wrap_hint): Replace with ... + (cli_ui_out::do_wrap_hint): ... this new method. + (cli_flush): Replace with ... + (cli_ui_out::do_flush): ... this new method. + (cli_redirect): Replace with ... + (cli_ui_out::do_redirect): ... this new method. + (out_field_fmt): Replace with ... + (cli_ui_out::out_field_fmt): ... this new method. + (field_separator): Replace with ... + (cli_ui_out::field_separator): ... this new method. + (cli_out_set_stream): Replace with ... + (cli_ui_out::set_stream): ... this new method. + (cli_ui_out_impl): Remove. + (cli_out_data_ctor): Remove. + (cli_ui_out_impl::cli_ui_out_impl): New constructor. + (cli_ui_out_impl::~cli_ui_out_impl): New destructor. + (cli_out_new): Change return type to cli_ui_out *, instantiate a + cli_ui_out. + * cli-out.h (cli_ui_out_data): Remove, replace with class + cli_ui_out. + (class cli_ui_out): New class. + (cli_ui_out_impl): Remove. + (cli_out_data_ctor): Remove. + (cli_out_new): Change return type to cli_ui_out*. + (cli_out_set_stream): Remove. + * cli/cli-interp.c (struct cli_interp) : Change type + to cli_ui_out*. + (cli_interpreter_resume): Adapt. + (cli_interpreter_exec): Adapt. + * mi/mi-out.c (mi_ui_out_data, mi_out_data): Remove. + (mi_ui_out_impl): Remove. + (mi_table_begin): Replace with ... + (mi_ui_out::do_table_begin): ... this. + (mi_table_body): Replace with ... + (mi_ui_out::do_table_body): ... this. + (mi_table_end): Replace with ... + (mi_ui_out::do_table_end): ... this. + (mi_table_header): Replace with ... + (mi_ui_out::do_table_header): ... this. + (mi_begin): Replace with ... + (mi_ui_out::do_begin): ... this. + (mi_end): Replace with ... + (mi_ui_out::do_end): ... this. + (mi_field_int): Replace with ... + (mi_ui_out::do_field_int): ... this. + (mi_field_skip): Replace with ... + (mi_ui_out::do_field_skip): ... this. + (mi_field_string): Replace with ... + (mi_ui_out::do_field_string): ... this. + (mi_field_fmt): Replace with ... + (mi_ui_out::do_field_fmt): ... this. + (mi_spaces): Replace with ... + (mi_ui_out::do_spaces): ... this. + (mi_text): Replace with ... + (mi_ui_out::do_text): ... this. + (mi_message): Replace with ... + (mi_ui_out::do_message): ... this. + (mi_wrap_hint): Replace with ... + (mi_ui_out::do_wrap_hint): ... this. + (mi_flush): Replace with ... + (mi_ui_out::do_flush): ... this. + (mi_redirect): Replace with ... + (mi_ui_out::do_redirect): + (field_separator): Replace with ... + (mi_ui_out::field_separator): + (mi_open): Replace with ... + (mi_ui_out::open): ... this. + (mi_close): Replace with ... + (mi_ui_out::close): ... this. + (mi_out_rewind): Replace with ... + (mi_ui_out::rewind): ... this. + (mi_out_put): Replace with ... + (mi_ui_out::put): ... this. + (mi_version): Replace with ... + (mi_ui_out::version): ... this. + (mi_out_data_ctor): Replace with ... + (mi_ui_out::mi_ui_out): ... this. + (mi_out_data_dtor): Replace with ... + (mi_ui_out::~mi_ui_out): ... this. + (mi_out_new): Change return type to mi_ui_out*, instantiate + an mi_ui_out object. + (as_mi_ui_out): New function. + (mi_version): Update fallouts of struct ui_out to class ui_out + transition. + (mi_out_put): Likewise. + (mi_out_rewind): Likewise. + * mi/mi-out.h (mi_out_new): Change return type to mi_ui_out*. + * tui/tui-out.c (tui_ui_out_data, tui_out_data, tui_ui_out_impl): + Remove. + (tui_field_int): Replace with ... + (tui_ui_out::do_field_int): ... this. + (tui_field_string): Replace with ... + (tui_ui_out::do_field_string): ... this. + (tui_field_fmt): Replace with ... + (tui_ui_out::do_field_fmt): ... this. + (tui_text): Replace with ... + (tui_ui_out::do_text): ... this. + (tui_out_new): Change return type to tui_ui_out*, instantiate + tui_ui_out object. + (tui_ui_out::tui_ui_out): New. + * tui/tui-out.h: New file. + * tui/tui.h (tui_out_new): Move declaration to tui/tui-out.h. + * tui/tui-io.c: Include tui/tui-out.h. + (tui_old_uiout): Change type to cli_ui_out*. + (tui_setup_io): Use dynamic_cast. + * tui/tui-io.h (tui_old_uiout): Change type to cli_ui_out*. + * tui/tui-interp.c (tui_resume): Adapt. + * ada-lang.c (print_it_exception): Update fallouts of struct + ui_out to class ui_out transition. + (print_one_exception): Likewise. + (print_mention_exception): Likewise. + * ada-tasks.c (print_ada_task_info): Likewise. + (info_task): Likewise. + (task_command): Likewise. + * auto-load.c (print_script): Likewise. + (auto_load_info_scripts): Likewise. + (info_auto_load_cmd): Likewise. + * break-catch-sig.c (signal_catchpoint_print_one): Likewise. + * break-catch-syscall.c (print_it_catch_syscall): Likewise. + (print_one_catch_syscall): Likewise. + * break-catch-throw.c (print_it_exception_catchpoint): Likewise. + (print_one_exception_catchpoint): Likewise. + (print_one_detail_exception_catchpoint): Likewise. + (print_mention_exception_catchpoint): Likewise. + * breakpoint.c (maybe_print_thread_hit_breakpoint): Likewise. + (print_solib_event): Likewise. + (watchpoint_check): Likewise. + (wrap_indent_at_field): Likewise. + (print_breakpoint_location): Likewise. + (output_thread_groups): Likewise. + (print_one_breakpoint_location): Likewise. + (breakpoint_1): Likewise. + (default_collect_info): Likewise. + (watchpoints_info): Likewise. + (print_it_catch_fork): Likewise. + (print_one_catch_fork): Likewise. + (print_it_catch_vfork): Likewise. + (print_one_catch_vfork): Likewise. + (print_it_catch_solib): Likewise. + (print_one_catch_solib): Likewise. + (print_it_catch_exec): Likewise. + (print_one_catch_exec): Likewise. + (mention): Likewise. + (print_it_ranged_breakpoint): Likewise. + (print_one_ranged_breakpoint): Likewise. + (print_one_detail_ranged_breakpoint): Likewise. + (print_mention_ranged_breakpoint): Likewise. + (print_it_watchpoint): Likewise. + (print_mention_watchpoint): Likewise. + (print_it_masked_watchpoint): Likewise. + (print_one_detail_masked_watchpoint): Likewise. + (print_mention_masked_watchpoint): Likewise. + (bkpt_print_it): Likewise. + (tracepoint_print_one_detail): Likewise. + (tracepoint_print_mention): Likewise. + (update_static_tracepoint): Likewise. + (tracepoints_info): Likewise. + (save_breakpoints): Likewise. + * cli/cli-cmds.c (complete_command): Likewise. + * cli/cli-logging.c (set_logging_redirect): Likewise. + (pop_output_files): Likewise. + (handle_redirections): Likewise. + * cli/cli-script.c (print_command_lines): Likewise. + * cli/cli-setshow.c (do_show_command): Likewise. + (cmd_show_list): Likewise. + * cp-abi.c (list_cp_abis): Likewise. + (show_cp_abi_cmd): Likewise. + * darwin-nat-info.c (darwin_debug_regions_recurse): Likewise. + * disasm.c (gdb_pretty_print_insn): Likewise. + (do_mixed_source_and_assembly_deprecated): Likewise. + (do_mixed_source_and_assembly): Likewise. + * gdb_bfd.c (print_one_bfd): Likewise. + (maintenance_info_bfds): Likewise. + * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise. + * guile/scm-ports.c (ioscm_with_output_to_port_worker): Likewise. + * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Likewise. + * i386-tdep.c (i386_mpx_print_bounds): Likewise. + * infcmd.c (run_command_1): Likewise. + (print_return_value_1): Likewise. + * inferior.c (print_selected_inferior): Likewise. + (print_inferior): Likewise. + * infrun.c (print_end_stepping_range_reason): Likewise. + (print_signal_exited_reason): Likewise. + (print_exited_reason): Likewise. + (print_signal_received_reason): Likewise. + (print_no_history_reason): Likewise. + * interps.c (interp_set): Likewise. + * linespec.c (decode_line_full): Likewise. + * linux-thread-db.c (info_auto_load_libthread_db): Likewise. + * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise. + (mi_cmd_env_path): Likewise. + (mi_cmd_env_dir): Likewise. + (mi_cmd_inferior_tty_show): Likewise. + * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Likewise. + (print_partial_file_name): Likewise. + (mi_cmd_file_list_exec_source_files): Likewise. + * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Likewise. + (mi_cmd_info_gdb_mi_command): Likewise. + * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth): Likewise. + (mi_cmd_stack_list_args): Likewise. + (list_arg_or_local): Likewise. + * mi/mi-cmd-var.c (print_varobj): Likewise. + (mi_cmd_var_create): Likewise. + (mi_cmd_var_delete): Likewise. + (mi_cmd_var_set_format): Likewise. + (mi_cmd_var_show_format): Likewise. + (mi_cmd_var_info_num_children): Likewise. + (mi_cmd_var_list_children): Likewise. + (mi_cmd_var_info_type): Likewise. + (mi_cmd_var_info_path_expression): Likewise. + (mi_cmd_var_info_expression): Likewise. + (mi_cmd_var_show_attributes): Likewise. + (mi_cmd_var_evaluate_expression): Likewise. + (mi_cmd_var_assign): Likewise. + (varobj_update_one): Likewise. + * mi/mi-interp.c (as_mi_interp): Likewise. + (mi_on_normal_stop_1): Likewise. + (mi_tsv_modified): Likewise. + (mi_breakpoint_created): Likewise. + (mi_breakpoint_modified): Likewise. + (mi_solib_loaded): Likewise. + (mi_solib_unloaded): Likewise. + (mi_command_param_changed): Likewise. + (mi_memory_changed): Likewise. + (mi_user_selected_context_changed): Likewise. + * mi/mi-main.c (print_one_inferior): Likewise. + (output_cores): Likewise. + (list_available_thread_groups): Likewise. + (mi_cmd_data_list_register_names): Likewise. + (mi_cmd_data_list_changed_registers): Likewise. + (output_register): Likewise. + (mi_cmd_data_evaluate_expression): Likewise. + (mi_cmd_data_read_memory): Likewise. + (mi_cmd_data_read_memory_bytes): Likewise. + (mi_cmd_list_features): Likewise. + (mi_cmd_list_target_features): Likewise. + (mi_cmd_add_inferior): Likewise. + (mi_execute_command): Likewise. + (mi_load_progress): Likewise. + (print_variable_or_computed): Likewise. + (mi_cmd_trace_frame_collected): Likewise. + * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Likewise. + * osdata.c (info_osdata_command): Likewise. + * probe.c (gen_ui_out_table_header_info): Likewise. + (print_ui_out_not_applicables): Likewise. + (print_ui_out_info): Likewise. + (info_probes_for_ops): Likewise. + (enable_probes_command): Likewise. + (disable_probes_command): Likewise. + * progspace.c (print_program_space): Likewise. + * python/py-breakpoint.c (bppy_get_commands): Likewise. + * python/py-framefilter.c (py_print_type): Likewise. + (py_print_value): Likewise. + (py_print_single_arg): Likewise. + (enumerate_args): Likewise. + (enumerate_locals): Likewise. + (py_print_args): Likewise. + (py_print_frame): Likewise. + * record-btrace.c (btrace_ui_out_decode_error): Likewise. + (btrace_call_history_insn_range): Likewise. + (btrace_call_history_src_line): Likewise. + (btrace_call_history): Likewise. + * remote.c (show_remote_cmd): Likewise. + * skip.c (skip_info): Likewise. + * solib.c (info_sharedlibrary_command): Likewise. + * source.c (print_source_lines_base): Likewise. + * spu-tdep.c (info_spu_event_command): Likewise. + (info_spu_signal_command): Likewise. + (info_spu_mailbox_list): Likewise. + (info_spu_dma_cmdlist): Likewise. + (info_spu_dma_command): Likewise. + (info_spu_proxydma_command): Likewise. + * stack.c (print_stack_frame): Likewise. + (print_frame_arg): Likewise. + (read_frame_arg): Likewise. + (print_frame_args): Likewise. + (print_frame_info): Likewise. + (print_frame): Likewise. + * symfile.c (load_progress): Likewise. + (generic_load): Likewise. + (print_transfer_performance): Likewise. + * thread.c (do_captured_list_thread_ids): Likewise. + (print_thread_info_1): Likewise. + (restore_selected_frame): Likewise. + (do_captured_thread_select): Likewise. + (print_selected_thread_frame): Likewise. + * top.c (execute_command_to_string): Likewise. + * tracepoint.c (tvariables_info_1): Likewise. + (trace_status_mi): Likewise. + (tfind_1): Likewise. + (print_one_static_tracepoint_marker): Likewise. + (info_static_tracepoint_markers_command): Likewise. + * utils.c (do_ui_out_redirect_pop): Likewise. + (fputs_maybe_filtered): Likewise. + +2016-12-20 Pedro Alves + + * nto-tdep.c (nto_find_and_open_solib): Constify 'solib' + parameter. + * nto-tdep.h (nto_find_and_open_solib): Constify 'solib' + parameter. + * solib.c (solib_find_1, exec_file_find, solib_find): Constify + in_pathname' parameter. + * solist.h (struct target_so_ops) : Constify + 'soname' parameter. + (exec_file_find, solib_find): Constify 'in_pathname' parameter. + +2016-12-20 Pedro Alves + Yao Qi + + PR gdb/20977 + * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept): New + noexcept function, factored out from ... + (gdb_rl_callback_read_char_wrapper): ... this. + (gdb_rl_callback_handler): Mark noexcept. + +2016-12-20 Antoine Tremblay + + * .dir-locals.el: Set c++ mode for the directory and set indent + properly. + * gdb-code-style.el: Set c-set-offset 'innamespace as a safe value + to be used in .dir-locals.el. + +2016-12-16 Bernhard Heckel + + * darwin-nat-info.c (info_mach_region_command): Use expression_up. + +2016-12-12 Yao Qi + + PR tdep/20955 + * cris-tdep.c (cris_delayed_get_disassembler): Remove the + assert. + +2016-12-09 Pedro Alves + + * Makefile.in (ALL_TARGET_OBS): Remove vax-obsd-tdep.o. + * alpha-fbsd-tdep.c (_initialize_alphafbsd_tdep): Adjust. + * alpha-nbsd-tdep.c: Move comment to _initialize_alphanbsd_tdep. + (alphanbsd_core_osabi_sniffer): Delete. + (_initialize_alphanbsd_tdep): No longer handle a.out. + * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Adjust. + * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Adjust. + * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Adjust. + * amd64-obsd-tdep.c (amd64obsd_supply_regset) + (amd64obsd_combined_regset) + (amd64obsd_iterate_over_regset_sections, amd64obsd_core_init_abi): + Delete. + (_initialize_amd64obsd_tdep): Don't handle a.out. + * arm-nbsd-nat.c (struct md_core, fetch_core_registers) + (arm_netbsd_core_fns): Delete. + (_initialize_arm_netbsd_nat): Don't register arm_netbsd_core_fns. + * arm-nbsd-tdep.c (arm_netbsd_aout_init_abi) + (arm_netbsd_aout_osabi_sniffer): Delete. + (_initialize_arm_netbsd_tdep): Don't handle a.out. + * arm-obsd-tdep.c (armobsd_core_osabi_sniffer): Delete. + (_initialize_armobsd_tdep): Don't handle a.out. + * arm-tdep.c (arm_gdbarch_init): Remove bfd_target_aout_flavour + case. + * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Remove + SunOS a.out handling. + * configure.tgt (vax-*-netbsd* | vax-*-knetbsd*-gnu): Remove + vax-obsd-tdep.o from gdb_target_objs. + (vax-*-openbsd*): Likewise. + (*-*-freebsd*): Adjust default gdb_osabi. + (*-*-openbsd*): Likewise. + * dbxread.c (block_address_function_relative): Delete. + (dbx_symfile_read): Remove reference to + block_address_function_relative. + (dbx_symfile_read): Don't call read_dbx_dynamic_symtab. + (read_dbx_dynamic_symtab): Delete. + (process_one_symbol): Remove references to + block_address_function_relative. + * defs.h (GDB_OSABI_FREEBSD_AOUT, GDB_OSABI_NETBSD_AOUT): Remove. + (GDB_OSABI_FREEBSD_ELF): Rename to ... + (GDB_OSABI_FREEBSD): ... this. + (GDB_OSABI_NETBSD_ELF): Rename to ... + (GDB_OSABI_NETBSD): ... this. + (GDB_OSABI_OPENBSD_ELF): Rename to ... + (GDB_OSABI_OPENBSD): ... this. + (GDB_OSABI_HPUX_ELF, GDB_OSABI_HPUX_SOM): Remove. + * fbsd-tdep.c: Adjust comment. + * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Adjust. + * hppa-obsd-tdep.c (GDB_OSABI_NETBSD_CORE): Delete. + (hppaobsd_core_osabi_sniffer): Delete. + (_initialize_hppabsd_tdep): Don't handle a.out. + * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't handle + GDB_OSABI_HPUX_SOM. + (hppa_gdbarch_init): Likewise. + * i386-bsd-tdep.c (i386bsd_aout_osabi_sniffer) + (i386bsd_core_osabi_sniffer, _initialize_i386bsd_tdep): Delete. + * i386-fbsd-tdep.c (i386fbsdaout_init_abi): Delete. Merge bits + with ... + (i386fbsd_init_abi): ... this. + (_initialize_i386fbsd_tdep): Don't handle a.out. + * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Adjust. + * i386-obsd-tdep.c (i386obsd_aout_supply_regset) + (i386obsd_aout_gregset) + (i386obsd_aout_iterate_over_regset_sections): Delete. + (i386obsd_init_abi): Merge with i386obsd_elf_init_abi. + (i386obsd_aout_init_abi): Delete. + (_initialize_i386obsd_tdep): Don't handle a.out. + * m68k-bsd-tdep.c (m68kobsd_sigtramp_cache_init) + (m68kobsd_sigtramp): Delete. + (m68kbsd_init_abi): Merge with ... + (m68kbsd_elf_init_abi): ... this, and delete it. + (m68kbsd_aout_init_abi): Delete. + (m68kbsd_aout_osabi_sniffer, m68kbsd_core_osabi_sniffer): Delete. + (_initialize_m68kbsd_tdep): Don't handle a.out. + * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Adjust. + * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Adjust. + * osabi.c (gdb_osabi_names): Remove "a.out" entries. Drop "ELF" + suffixes. Remove "HP-UX" entries. + (generic_elf_osabi_sniff_abi_tag_sections): Adjust. + (generic_elf_osabi_sniffer): No longer handle GDB_OSABI_HPUX_ELF. + Adjust. + (_initialize_ppcfbsd_tdep): Adjust. + * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Adjust. + * ppc-obsd-tdep.c (GDB_OSABI_NETBSD_CORE) + (ppcobsd_core_osabi_sniffer): Delete. + (_initialize_ppcobsd_tdep): Don't handle a.out. + * rs6000-tdep.c (rs6000_gdbarch_init): Adjust. + * sh-nbsd-tdep.c (GDB_OSABI_NETBSD_CORE) + (shnbsd_core_osabi_sniffer): Delete. + (_initialize_shnbsd_tdep): Don't handle a.out. + * solib.c (clear_solib): Don't handle SunOS/a.out. + * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Make extern. + (sparc32nbsd_aout_init_abi): Delete. + (sparc32nbsd_elf_init_abi): Merged into sparc32nbsd_init_abi. + (sparcnbsd_aout_osabi_sniffer): Delete. + (GDB_OSABI_NETBSD_CORE, sparcnbsd_core_osabi_sniffer): Delete. + (_initialize_sparcnbsd_tdep): No longer handle a.out. + * sparc-obsd-tdep.c (sparc32obsd_init_abi) + (_initialize_sparc32obsd_tdep): Adjust. + * sparc-tdep.h (sparc32nbsd_elf_init_abi): Rename to ... + (sparc32nbsd_init_abi): ... this. + * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Adjust. + * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Adjust. + * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Adjust. + * stabsread.c: Update comment. + * symmisc.c (print_objfile_statistics): Don't mention "a.out" in + output. + * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Adjust. + * vax-obsd-tdep.c: Delete file. + +2016-12-09 Yao Qi + + PR tdep/20954 + * rx-tdep.c (rx_psw_type): New function. + (rx_fpsw_type): New function. + (rx_register_type): Call rx_psw_type and rx_fpsw_type. + (rx_gdbarch_init): Move code to rx_psw_type and + rx_fpsw_type. + +2016-12-09 Yao Qi + + PR tdep/20953 + * rl78-tdep.c (rl78_psw_type): New function. + (rl78_register_type): Call rl78_psw_type. + (rl78_gdbarch_init): Move code to rl78_psw_type. + +2016-12-09 Yao Qi + + * aarch64-tdep.c (instruction_reader::read): Call + read_code_unsigned_integer instead of + read_memory_unsigned_integer. + +2016-12-09 Yao Qi + + * arm-tdep.c (skip_prologue_function): Call + read_code_unsigned_integer instead of + read_memory_unsigned_integer. + (thumb_analyze_prologue): Likewise. + (arm_analyze_load_stack_chk_guard): Likewise. + (arm_skip_stack_protector): Likewise. + (arm_analyze_prologue):Likewise. + (extend_buffer_earlier): Call target_read_code instead + of target_read_memory. + (arm_adjust_breakpoint_address): Likewise. + +2016-12-09 Thomas Schwinge + + * gnu-nat.c (gnu_create_inferior): After startup_inferior, call + prune_threads. + + * inferior.c (print_selected_inferior): Avoid PATH_MAX usage. + +2016-12-08 Simon Marchi + Thomas Schwinge + + * gnu-nat.c (set_sig_thread_cmd): Use parse_thread_id instead of + global_thread_id_to_ptid. + +2016-12-08 Thomas Schwinge + + * config/i386/i386gnu.mh (%_S.o %_U.o): Add "-x c" to + "COMPILE.post". + * gnu-nat.c: #include Mach/Hurd headers before all others. Wrap + Mach/Hurd headers and MIG stubs' prototypes in 'extern "C"'. + * i386-gnu-nat.c: Likewise. + + * gnu-nat.c (proc_get_exception_port, proc_set_exception_port) + (INF_RESUME_MSGPORT_RPC, proc_get_state, _proc_get_exc_port) + (proc_steal_exc_port, proc_restore_exc_port, make_proc) + (inf_startup, inf_set_pid, inf_validate_procinfo) + (inf_validate_task_sc, inf_set_traced, inf_validate_procs) + (inf_signal, inf_continue, gnu_wait, S_exception_raise_request) + (do_mach_notify_dead_name, S_proc_wait_reply) + (S_msg_sig_post_untraced_reply, S_msg_sig_post_reply) + (port_msgs_queued, gnu_read_inferior, gnu_write_inferior) + (gnu_find_memory_regions, steal_exc_port, thread_takeover_sc_cmd) + (flush_inferior_icache): Instead of "error_t" use "kern_return_t". + * i386-gnu-nat.c (fetch_fpregs, store_fpregs, i386_gnu_dr_get) + (i386_gnu_dr_set): Likewise. + + * gnu-nat.c (set_task_pause_cmd, set_signals_cmd) + (set_exceptions_cmd): Add variants taking an "int arg" instead of + a "char *". Make the "char *" variants use the former. + (set_noninvasive_cmd): Also use the "int arg" variants. + + * gnu-nat.c (gnu_create_inferior): Move nested "trace_me" + function... + (gnu_ptrace_me): ... here. + + * i386-gnu-nat.c (i386_gnu_dr_set_control_one) + (i386_gnu_dr_set_addr_one): Explicitly cast "void *". + +2016-12-07 Thomas Schwinge + + * gnu-nat.c (set_sig_thread_cmd): Call global_thread_id_to_ptid + instead of thread_id_to_pid. + +2016-12-06 Simon Marchi + + * inferior.c (inferior_command): Remove duplicate + find_inferior_id call. + +2016-12-06 Yao Qi + + * frame.c (frame_register_unwind): Set *realnump if *lvalp is + lval_register. + * value.c (deprecated_value_next_frame_id_hack): Assert + value->lval is lval_register. + (deprecated_value_regnum_hack): Likewise. + +2016-12-02 Simon Marchi + + * ui-out.h: Include "common/enum-flags.h". + (enum ui_flags): Rename to ... + (enum ui_out_flag): ... this. + (ui_out_flags): Define enum flag type. + (ui_out_test_flags): Change type of parameter to ui_out_flags. + (ui_out_new): Likewise. + * ui-out.c (ui_out_test_flags): Likewise. + (ui_out_new): Likewise. + * cli-out.c (cli_out_new): Update variable type. + * mi/mi-out.c (mi_out_new): Likewise. + * tui/tui-out.c (tui_out_new): Likewise. + +2016-12-02 Pedro Alves + + * NEWS: Mention that user commands now accept an unlimited number + of arguments. + * cli/cli-script.c: Include . + (struct string_view): New type. + (MAXUSERARGS): Delete. + (struct user_args): Now a C++ class. + (user_args_stack): New. + (struct scoped_user_args_level): New type. + (execute_user_command): Use scoped_user_args_level. + (arg_cleanup): Delete. + (setup_user_args): Deleted, and refactored as ... + (user_args::user_args): ... this new constructor. Limit of number + of arguments removed. + (insert_user_defined_cmd_args): Defer to user_args_stack. + (user_args::insert_args): New, bits based on old + insert_user_defined_cmd_args with limit of number of arguments + eliminated. + +2016-12-02 Pedro Alves + + PR cli/20559 + * NEWS: Mention "eval" expands user-defined command arguments. + * cli/cli-script.c (execute_control_command): Adjust to rename. + (insert_args): Rename to ... + (insert_user_defined_cmd_args): ... this, and make extern. + * cli/cli-script.h (insert_user_defined_cmd_args): New + declaration. + * printcmd.c: Include "cli/cli-script.h". + (eval_command): Call insert_user_defined_cmd_args. + +2016-12-02 Tom Tromey + + PR symtab/16264: + * dwarf2read.c (struct partial_die_info) : New + member. + (add_partial_symbol): Call set_objfile_main_name. + (read_partial_die): Handle DW_AT_main_subprogram. + : don't call set_objfile_main_name, but + set main_subprogram flag. + +2016-12-02 Simon Marchi + + * tracefile-tfile.c (tfile_write_status): Adjust to renames. + * tracefile.c (trace_save_command): Rename to... + (tsave_command): ...this. + (_initialize_tracefile): Adjust to renames. + * tracepoint.c (trace_actions_command): Rename to... + (actions_command): ...this. + (trace_start_command): Rename to... + (tstart_command): ...this, and adjust to renames.. + (trace_stop_command): Rename to... + (tstop_command): ...this. + (trace_status_command): Rename to... + (tstatus_command): ...this, and adjust to renames. + (trace_find_command): Rename to... + (tfind_command): ...this. + (trace_find_pc_command): Rename to... + (tfind_pc_command): ...this. + (trace_find_tracepoint_command): Rename to... + (tfind_tracepoint_command): ...this. + (trace_find_line_command): Rename to... + (tfind_line_command): ...this. + (trace_find_range_command): Rename to... + (tfind_range_command): ...this. + (trace_find_outside_command): Rename to... + (tfind_outside_command): ...this. + (trace_dump_command): Rename to... + (tdump_command): ...this. + (tfind_1): Adjust to renames. + (trace_find_end_command): Rename to... + (tfind_end_command): ...this, and adjust to renames.. + (trace_status_mi): Adjust to renames. + (parse_trace_status): Adjust to renames. + (_initialize_tracepoint): Adjust to renames. + * tracepoint.h (enum trace_stop_reason) : Rename + to... + : ...this. + +2016-12-02 Simon Marchi + + * mi/mi-out.c (mi_ui_out_data) : Remove. + (mi_table_body): Remove suppress_output check. + (mi_table_end): Likewise. + (mi_table_header): Likewise. + (mi_begin): Likewise. + (mi_end): Likewise. + (mi_field_int): Likewise. + (mi_field_string): Likewise. + (mi_field_fmt): Likewise. + (mi_out_data_ctor): Likewise. + +2016-12-02 Yao Qi + Pedro Alves + + * aarch64-tdep.c (aarch64_analyze_prologue): Recognize STR + instruction. + (aarch64_analyze_prologue_test): More tests. + +2016-12-02 Yao Qi + Pedro Alves + + * aarch64-tdep.c: Include "selftest.h". + (abstract_instruction_reader): New class. + (instruction_reader): New class. + (aarch64_analyze_prologue): Add new parameter reader. Call + reader.read instead of read_memory_unsigned_integer. + [GDB_SELF_TEST] (instruction_reader_test): New class. + (aarch64_analyze_prologue_test): New function. + (_initialize_aarch64_tdep) [GDB_SELF_TEST]: Register + selftests::aarch64_analyze_prologue_test. + * trad-frame.c (trad_frame_cache_zalloc): + (trad_frame_alloc_saved_regs): Add a new function. + * trad-frame.h (trad_frame_alloc_saved_regs): Declare. + +2016-12-01 Simon Marchi + + * ui-out.c (enum ui_out_table_state): Move to class + ui_out_table as ui_out_table::state. + (struct ui_out_table): Change to ... + (class ui_out_table): ... this. + : Remove. + : Rename to ... + : ... this. + : Rename to ... + : ... this. + : Rename to ... + : ... this. + : Rename to ... + : ... this. + : Rename to ... + : ... this. + : New methods. + (struct ui_out) : Change type to unique_ptr to + ui_out_table. + (append_header_to_list, get_next_header, clear_header_list, + clear_table): Remove. + (ui_out_table_begin): Instantiate ui_out_table object. Update + table check. + (ui_out_table_body): Update table check, replace code with call + to ui_out_table::start_body. + (ui_out_table_end): Update table check, replace manual cleanup + with assignment of uiout->table unique_ptr to nullptr. + (ui_out_table_header): Update table check, replace call to + append_header_to_list with call to append_header method. + (ui_out_begin): Remove one table state check, update another. + Replace code with call to start_row method. + (verify_field): Update table checks. + (ui_out_query_field): Update table check, replace code with call + to query_field method. + (ui_out_new): Remove table initialization code. + +2016-12-01 Simon Marchi + + * ui-out.c (enum ui_out_table_state): New enum. + (struct ui_out_table) : Remove field. + : New field. + (ui_out_table_begin): Replace usages of body_flag with state. + (ui_out_table_body): Likewise. + (ui_out_table_end): Likewise. + (ui_out_table_header): Likewise. + (ui_out_begin): Likewise. + (verify_field): Likewise. + (ui_out_new): Likewise. + +2016-12-01 Simon Marchi + + * ui-out.h (ui_out_begin_ftype): Remove level parameter. + (ui_out_end_ftype): Likewise. + * ui-out.c (struct ui_out) : Replace field with a method + that dynamically computes the result. + (current_level): Get vector's back item instead of using + uiout->level. + (push_level): Make return type void. + (pop_level): Make return type void and update access to + ui_out::level. + (uo_begin): Remove level parameter. + (uo_end): Likewise. + (ui_out_table_begin): Update access to uiout::level. + (ui_out_begin): Don't read return value from push_level, call + uiout->level() instead, update call to uo_begin. + (ui_out_end): Don't read return value from pop_level, update + call to uo_end. + (verify_field): Update access to uiout->level. + (ui_out_new): Don't initialize ui_out::level, call push_level + to push the initial level instead of doing it by hand. + * cli-out.c (cli_begin): Remove level parameter. + (cli_end): Likewise. + * mi/mi-out.c (mi_begin): Likewise. + (mi_end): Likewise. + +2016-12-01 Simon Marchi + + * ui-out.c (struct ui_out_level): Replace with ... + (class ui_out_level): ... this. + (current_level): Update. + (push_level): Update. + (pop_level): Update. + (verify_field): Update. + (ui_out_new): Update. + +2016-12-01 Simon Marchi + + * ui-out.c (struct ui_out_hdr): Replace with ... + (class ui_out_hdr): ... this. + (append_header_to_list): Update. + (get_next_header): Update. + (ui_out_query_field): Update. + +2016-12-01 Simon Marchi + + * mi/mi-out.c (mi_table_header): Change char * args to + std::string. + * cli-out.c (cli_table_header): Likewise. + * ui-out.h (table_header_ftype): Likewise. + (ui_out_table_header): Constify colhdr argument. + (ui_out_query_field): Constify col_name argument. + * ui-out.c (ui_out_hdr) : Change type to + std::string. + (uo_table_header): Change char * args to std::string. + (ui_out_table_header): Likewise. + (get_next_header): Constify colhdr argument and adapt. + (clear_header_list): Don't free col_name/colhdr fields. + (append_header_to_list): Change char * args to std::string and + adapt. + (verify_field): Constify variable. + (ui_out_query_field): Constify col_name argument and adapt. + * breakpoint.c (wrap_indent_at_field): Constify variable. + +2016-12-01 Simon Marchi + + * ui-out.c (struct ui_out_hdr) : Remove. + (struct ui_out_table) : Remove. + : New fields. + (ui_out_table_body): Update for the new data structure. + (ui_out_begin): Likewise. + (clear_header_list): Likewise. + (append_header_to_list): Likewise. + (get_next_header): Likewise. + (ui_out_query_field): Likewise. + (ui_out_new): Likewise. + +2016-11-30 Simon Marchi + + * ui-out.c (struct ui_out_table) : Change type to + std::string. + (ui_out_table_begin): Change tblid parameter type to + std::string, adapt code. + update following type change. + (clear_table): Update. + (ui_out_new): Update. + +2016-11-30 Simon Marchi + + * cli-out.h (cli_ui_out_data) : Change type to + std::vector. + * cli-out.c: Remove vec.h include. + (cli_uiout_dtor): Update. + (cli_field_fmt): Update. + (cli_spaces): Update. + (cli_text): Update. + (cli_message): Update. + (cli_flush): Update. + (cli_redirect): Update. + (out_field_fmt): Update. + (field_separator): Update. + (cli_out_data_ctor): Update. + (cli_out_new): Update. + (cli_out_set_stream): Update. + +2016-11-30 Simon Marchi + + * mi/mi-out.c: Remove vec.h include. + (mi_ui_out_data) : Change type to std::vector. + (mi_field_string): Update. + (mi_field_fmt): Update. + (mi_flush): Update. + (mi_redirect): Update. + (field_separator): Update. + (mi_open): Update. + (mi_close): Update. + (mi_out_buffered): Update. + (mi_out_rewind): Update. + (mi_out_put): Update. + (mi_out_data_ctor): Update. + (mi_out_data_dtor): Don't free streams. + +2016-11-30 Simon Marchi + + * ui-out.c (ui_out_level_p): Remove typedef. + (DEF_VEC_P (ui_out_level_p)): Remove definition. + (struct ui_out) : Change type to vector of unique_ptr of + ui_out_level. + (current_level): Update. + (push_level): Update. + (pop_level): Update, don't manually delete the ui_out_level + instance. + (ui_out_new): Update. + +2016-11-30 Simon Marchi + + * cli-out.c (cli_uiout_dtor): Use delete instead of xfree. + (cli_out_new): Use new instead of XNEW. + * mi/mi-out.c (mi_out_data_dtor): Use delete instead of xfree. + (mi_out_new): Use new instead of XNEW. + * tui/tui-out.c (tui_out_new): Likewise. + * ui-out.c (push_level): Likewise. + (pop_level): Use delete instead of xfree. + (clear_header_list): Use delete instead of xfree. + (append_header_to_list): Use new instead of XNEW. + (ui_out_new): Likewise. + +2016-11-30 Simon Marchi + + * disable-implicit-rules.mk: New file. + * Makefile.in: Include disable-implicit-rules.mk. + * data-directory/Makefile.in: Likewise. + * gnulib/Makefile.in: Likewise. + +2016-11-30 Yao Qi + + * arm-tdep.c (arm_scan_prologue): Read memory as unsigned integer. + (arm_exidx_unwind_sniffer): Likewise. + +2016-11-28 Simon Marchi + + * record-full.c (record_full_open_1): Fix debug output. + +2016-11-26 Simon Marchi + + * mi/mi-out.c (mi_message): Remove verbosity argument. + * ada-tasks.c (print_ada_task_info, info_task, task_command): + Update call. + * auto-load.c (auto_load_info_scripts): Likewise. + * breakpoint.c (breakpoint_1, watchpoints_info, tracepoints_info): + Likewise. + * cli-out.c (cli_message): Remove verbosity argument. + * inferior.c (print_inferior): Update call. + * linux-thread-db.c (info_auto_load_libthread_db): Likewise. + * probe.c (info_probes_for_ops): Likewise. + * skip.c (skip_info): Likewise. + * solib.c (info_sharedlibrary_command): Likewise. + * symfile.c (load_progress): Likewise. + * thread.c (print_thread_info_1): Likewise. + * ui-out.c (uo_message, ui_out_message): Remove verbosity argument. + (ui_out_get_verblvl): Remove. + * ui-out.h (ui_out_message): Remove verbosity argument. + (ui_out_get_verblvl): Remove. + (message_ftype): Remove verbosity argument. + +2016-11-26 Simon Marchi + + * mi/mi-out.c (mi_wrap_hint): Constify argument. + * cli-out.c (cli_wrap_hint): Likewise. + * ui-out.c (ui_out_wrap_hint, uo_wrap_hint): Likewise. + * ui-out.h (ui_out_wrap_hint, wrap_hint_ftype): Likewise. + * utils.c (wrap_here): Likewise. + (wrap_indent): Constify. + * utils.h (wrap_here): Constify argument. + +2016-11-26 Simon Marchi + + * ui-out.c (uo_redirect): Return the return value from the + implementation function. + 2016-11-26 Simon Marchi * ui-out.c (ui_out_destroy, uo_data_destroy): Remove.