X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=600925fc18bc7f55751c2a00bd7ee72b0a60a745;hb=112e8700a6fd2fed65ca70132c9cbed4132e8bd4;hp=313e24c1f2f68796c8f69cd75fc50efac911e4ae;hpb=22f13eb869197fc45a0da2a8a96b03d39809862e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 313e24c1f2..9f33d6820f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,2981 @@ +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. + * ui-out.h (ui_out_destroy): Remove. + +2016-11-26 Simon Marchi + + * mi/mi-out.c (ui_out_data): Rename to ... + (mi_ui_out_data): ... this. + +2016-11-26 Simon Marchi + + * ui-out.c (_initialize_ui_out): Remove. + (ui_out_set_flags): Remove. + (ui_out_clear_flags): Remove. + * ui-out.h (ui_out_begin_cleanup_end): Remove. + (ui_out_begin_cleanup_end): Remove. + (ui_out_set_flags): Remove. + (ui_out_clear_flags): Remove. + * mi/mi-out.c (_initialize_mi_out): Remove. + (mi_out_buffered): Remove. + * mi/mi-out.h (mi_out_buffered): Remove. + +2016-11-26 Simon Marchi + + * ui-out.h (struct ui_out_impl): Remove comment. + * ui-out.c (struct ui_out): Remove comment. + +2016-11-25 John Baldwin + + * contrib/ari/gdb_ari.sh (no parameter function): Remove check. + +2016-11-25 Simon Marchi + + * Makefile.in: Fix typo. + +2016-11-25 Simon Marchi + + * record-full.c (record_full_resume): Fix typos in comment. + +2016-11-25 Simon Marchi + + * infcmd.c (interrupt_command): Fix typo in comment. + +2016-11-24 John Baldwin + + * ada-lang.c (create_excep_cond_exprs): Do not use 'std::move'. + * ax-gdb.c (agent_eval_command_one): Likewise. + (agent_eval_command_one): Likewise. + * breakpoint.c (parse_cond_to_aexpr): Likewise. + (parse_cmd_to_aexpr): Likewise. + * dtrace-probe.c (dtrace_process_dof_probe): Likewise. + * parse.c (parse_expression_for_completion): Likewise. + +2016-11-24 John Baldwin + + * common/new-op.c (operator new): Mark 'noexcept'. + (operator new[]): Likewise. + +2016-11-24 Andreas Arnez + + * dwarf2loc.c (copy_bitwise): Use memcpy for the middle part, if + it is byte-aligned. + +2016-11-24 Andreas Arnez + Pedro Alves + + * dwarf2loc.c (bits_to_str, check_copy_bitwise) + (copy_bitwise_tests): New functions. + (_initialize_dwarf2loc): Register the new function + copy_bitwise_tests as a unit test. + * selftest.c (run_self_tests): Improve the failure message's + wording and formatting. + +2016-11-24 Andreas Arnez + + * dwarf2loc.c (extract_bits_primitive): Remove. + (extract_bits): Remove. + (copy_bitwise): Rewrite. Fixes a possible corruption that may + occur for non-byte-aligned copies. + +2016-11-24 Andreas Arnez + + PR gdb/12616 + * dwarf2read.c (dwarf2_add_field): Handle the DWARF V4 attribute + DW_AT_data_bit_offset. + +2016-11-23 Pedro Alves + + * Makefile.in (SFILES): Add common/run-time-clock.c. + (HFILES_NO_SRCDIR): Add common/run-time-clock.h. + (COMMON_OBS): Add run-time-clock.o. + * common/run-time-clock.c, common/run-time-clock.h: New files. + * defs.h (struct timeval, print_transfer_performance): Delete + declarations. + * event-loop.c (struct gdb_timer) : Now a + std::chrono::steady_clock::time_point. + (create_timer): use std::chrono::steady_clock instead of + gettimeofday. Use new instead of malloc. + (delete_timer): Use delete instead of xfree. + (duration_cast_timeval): New. + (update_wait_timeout): Use std::chrono::steady_clock instead of + gettimeofday. + * maint.c: Include instead of "gdb_sys_time.h", + and "timeval-utils.h". + (scoped_command_stats::~scoped_command_stats) + (scoped_command_stats::scoped_command_stats): Use + std::chrono::steady_clock instead of gettimeofday. Use + user_cpu_time_clock instead of get_run_time. + * maint.h: Include "run-time-clock.h" and . + (scoped_command_stats): : Now a + user_cpu_time_clock::time_point. + : Now a std::chrono::steady_clock::time_point. + * mi/mi-main.c: Include "run-time-clock.h" and instead of + "gdb_sys_time.h" and . + (rusage): Delete. + (mi_execute_command): Use new instead of XNEW. + (mi_load_progress): Use std::chrono::steady_clock instead of + gettimeofday. + (timestamp): Rewrite in terms of std::chrono::steady_clock, + user_cpu_time_clock and system_cpu_time_clock. + (timeval_diff): Delete. + (print_diff): Adjust to use std::chrono::steady_clock, + user_cpu_time_clock and system_cpu_time_clock. + * mi/mi-parse.h: Include "run-time-clock.h" and instead + of "gdb_sys_time.h". + (struct mi_timestamp): Change fields types to + std::chrono::steady_clock::time_point, user_cpu_time_clock::time + and system_cpu_time_clock::time_point, instead of struct timeval. + * symfile.c: Include instead of and + "gdb_sys_time.h". + (struct time_range): New. + (generic_load): Use std::chrono::steady_clock instead of + gettimeofday. + (print_transfer_performance): Replace timeval parameters with a + std::chrono::steady_clock::duration parameter. Adjust. + * utils.c: Include instead of "timeval-utils.h", + "gdb_sys_time.h", and . + (prompt_for_continue_wait_time): Now a + std::chrono::steady_clock::duration. + (defaulted_query, prompt_for_continue): Use + std::chrono::steady_clock instead of + gettimeofday/timeval_sub/timeval_add. + (reset_prompt_for_continue_wait_time): Use + std::chrono::steady_clock::duration instead of struct timeval. + (get_prompt_for_continue_wait_time): Return a + std::chrono::steady_clock::duration instead of struct timeval. + (vfprintf_unfiltered): Use std::chrono::steady_clock instead of + gettimeofday. Use std::string. Use '.' instead of ':'. + * utils.h: Include . + (get_prompt_for_continue_wait_time): Return a + std::chrono::steady_clock::duration instead of struct timeval. + +2016-11-22 Simon Marchi + + * Makefile.in: Fix whitespace formatting. + +2016-11-22 Simon Marchi + + * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS, + HFILES_NO_SRCDIR, ALLDEPFILES): Rename files. + * alphabsd-nat.c: Rename to ... + * alpha-bsd-nat.c: ... this, adjust include. + * alphabsd-tdep.c: Rename to ... + * alpha-bsd-tdep.c: ... this, adjust include. + * alphabsd-tdep.h: Rename to ... + * alpha-bsd-tdep.h: ... this, adjust include barrier and comment. + * alphafbsd-tdep.c: Rename to ... + * alpha-fbsd-tdep.c: ... this. + * alphanbsd-tdep.c: Rename to ... + * alpha-nbsd-tdep.c: ... this, adjust include. + * alphaobsd-tdep.c: Rename to ... + * alpha-obsd-tdep.c: ... this, adjust include. + * amd64bsd-nat.c: Rename to ... + * amd64-bsd-nat.c: ... this, adjust include. + * amd64fbsd-nat.c: Rename to ... + * amd64-fbsd-nat.c: ... this, adjust include. + * amd64fbsd-tdep.c: Rename to ... + * amd64-fbsd-tdep.c: ... this, adjust include. + * amd64nbsd-nat.c: Rename to ... + * amd64-nbsd-nat.c: ... this. + * amd64nbsd-tdep.c: Rename to ... + * amd64-nbsd-tdep.c: ... this. + * amd64obsd-nat.c: Rename to ... + * amd64-obsd-nat.c: ... this. + * amd64obsd-tdep.c: Rename to ... + * amd64-obsd-tdep.c: ... this. + * amd64-tdep.h: Update comments. + * armbsd-tdep.c: Rename to ... + * arm-bsd-tdep.c: ... this. + * armnbsd-nat.c: Rename to ... + * arm-nbsd-nat.c: ... this. + * armnbsd-tdep.c: Rename to ... + * arm-nbsd-tdep.c: ... this. + * armobsd-tdep.c: Rename to ... + * arm-obsd-tdep.c: ... this. + * arm-tdep.h: Update comments. + * hppabsd-tdep.c: Rename to ... + * hppa-bsd-tdep.c: ... this, adjust include. + * hppabsd-tdep.h: Rename to ... + * hppa-bsd-tdep.h: ... this, adjust include barrier and comment. + * hppanbsd-nat.c: Rename to ... + * hppa-nbsd-nat.c: ... this. + * hppanbsd-tdep.c: Rename to ... + * hppa-nbsd-tdep.c: ... this, adjust include. + * hppaobsd-nat.c: Rename to ... + * hppa-obsd-nat.c: ... this. + * hppaobsd-tdep.c: Rename to ... + * hppa-obsd-tdep.c: ... this, adjust include. + * i386bsd-nat.c: Rename to ... + * i386-bsd-nat.c: ... this, adjust include. + * i386bsd-nat.h: Rename to ... + * i386-bsd-nat.h: ... this, adjust include barrier and comment. + * i386bsd-tdep.c: Rename to ... + * i386-bsd-tdep.c: ... this. + * i386fbsd-nat.c: Rename to ... + * i386-fbsd-nat.c: ... this, adjust include. + * i386fbsd-tdep.c: Rename to ... + * i386-fbsd-tdep.c: ... this, adjust include. + * i386fbsd-tdep.h: Rename to ... + * i386-fbsd-tdep.h: ... this, adjust include barrier and comment. + * i386gnu-nat.c: Rename to ... + * i386-gnu-nat.c: ... this. + * i386gnu-tdep.c: Rename to ... + * i386-gnu-tdep.c: ... this. + * i386nbsd-nat.c: Rename to ... + * i386-nbsd-nat.c: ... this, adjust include. + * i386nbsd-tdep.c: Rename to ... + * i386-nbsd-tdep.c: ... this. + * i386obsd-nat.c: Rename to ... + * i386-obsd-nat.c: ... this, adjust include. + * i386obsd-tdep.c: Rename to ... + * i386-obsd-tdep.c: ... this. + * i386v4-nat.c: Rename to ... + * i386-v4-nat.c: ... this. + * i386-tdep.h: Update comments. + * m68k-tdep.h: Update comments. + * m68kbsd-nat.c: Rename to ... + * m68k-bsd-nat.c: ... this. + * m68kbsd-tdep.c: Rename to ... + * m68k-bsd-tdep.c: ... this. + * m68klinux-nat.c: Rename to ... + * m68k-linux-nat.c: ... this. + * m68klinux-tdep.c: Rename to ... + * m68k-linux-tdep.c: ... this. + * m88kbsd-nat.c: Rename to ... + * m88k-bsd-nat.c: ... this. + * mipsnbsd-nat.c: Rename to ... + * mips-nbsd-nat.c: ... this, adjust include. + * mipsnbsd-tdep.c: Rename to ... + * mips-nbsd-tdep.c: ... this, adjust include. + * mipsnbsd-tdep.h: Rename to ... + * mips-nbsd-tdep.h: ... this, adjust include barrier and comment. + * mips64obsd-nat.c: Rename to ... + * mips64-obsd-nat.c: ... this. + * mips64obsd-tdep.c: Rename to ... + * mips64-obsd-tdep.c: ... this. + * ppcfbsd-nat.c: Rename to ... + * ppc-fbsd-nat.c: ... this, adjust include. + * ppcfbsd-tdep.c: Rename to ... + * ppc-fbsd-tdep.c: ... this, adjust include. + * ppcfbsd-tdep.h: Rename to ... + * ppc-fbsd-tdep.h: ... this, adjust include barrier and comment. + * ppcnbsd-nat.c: Rename to ... + * ppc-nbsd-nat.c: ... this, adjust include. + * ppcnbsd-tdep.c: Rename to ... + * ppc-nbsd-tdep.c: ... this, adjust include. + * ppcnbsd-tdep.h: Rename to ... + * ppc-nbsd-tdep.h: ... this, adjust include barrier and comment. + * ppcobsd-nat.c: Rename to ... + * ppc-obsd-nat.c: ... this, adjust include. + * ppcobsd-tdep.c: Rename to ... + * ppc-obsd-tdep.c: ... this, adjust include. + * ppcobsd-tdep.h: Rename to ... + * ppc-obsd-tdep.h: ... this, adjust include barrier and comment. + * shnbsd-nat.c: Rename to ... + * sh-nbsd-nat.c: ... this. + * shnbsd-tdep.c: Rename to ... + * sh-nbsd-tdep.c: ... this. + * sparcnbsd-nat.c: Rename to ... + * sparc-nbsd-nat.c: ... this. + * sparcnbsd-tdep.c: Rename to ... + * sparc-nbsd-tdep.c: ... this. + * sparcobsd-tdep.c: Rename to ... + * sparc-obsd-tdep.c: ... this. + * sparc64fbsd-nat.c: Rename to ... + * sparc64-fbsd-nat.c: ... this. + * sparc64fbsd-tdep.c: Rename to ... + * sparc64-fbsd-tdep.c: ... this. + * sparc64nbsd-nat.c: Rename to ... + * sparc64-nbsd-nat.c: ... this. + * sparc64nbsd-tdep.c: Rename to ... + * sparc64-nbsd-tdep.c: ... this. + * sparc64obsd-nat.c: Rename to ... + * sparc64-obsd-nat.c: ... this. + * sparc64obsd-tdep.c: Rename to ... + * sparc64-obsd-tdep.c: ... this. + * sparc64-tdep.h: Update comments. + * vaxbsd-nat.c: Rename to ... + * vax-bsd-nat.c: ... this. + * vaxnbsd-tdep.c: Rename to ... + * vax-nbsd-tdep.c: ... this. + * vaxobsd-tdep.c: Rename to ... + * vax-obsd-tdep.c: ... this. + * x86bsd-nat.h: Rename to ... + * x86-bsd-nat.h: ... this, adjust include barrier and comment. + * x86bsd-nat.c: Rename to ... + * x86-bsd-nat.c: ... this, adjust include. + * configure.tgt: Update renamed files. + * config/alpha/fbsd.mh: Update renamed files. + * config/alpha/nbsd.mh: Update renamed files. + * config/arm/nbsdelf.mh: Update renamed files. + * config/djgpp/fnchange.lst: Update renamed files. + * config/i386/fbsd.mh: Update renamed files. + * config/i386/fbsd64.mh: Update renamed files. + * config/i386/i386gnu.mh: Update renamed files. + * config/i386/i386sol2.mh: Update renamed files. + * config/i386/nbsd64.mh: Update renamed files. + * config/i386/nbsdelf.mh: Update renamed files. + * config/i386/obsd.mh: Update renamed files. + * config/i386/obsd64.mh: Update renamed files. + * config/i386/sol2-64.mh: Update renamed files. + * config/m68k/linux.mh: Update renamed files. + * config/m68k/nbsdelf.mh: Update renamed files. + * config/m68k/obsd.mh: Update renamed files. + * config/m88k/obsd.mh: Update renamed files. + * config/mips/nbsd.mh: Update renamed files. + * config/mips/obsd64.mh: Update renamed files. + * config/pa/nbsd.mh: Update renamed files. + * config/pa/obsd.mh: Update renamed files. + * config/powerpc/fbsd.mh: Update renamed files. + * config/powerpc/nbsd.mh: Update renamed files. + * config/powerpc/obsd.mh: Update renamed files. + * config/sh/nbsd.mh: Update renamed files. + * config/sparc/fbsd.mh: Update renamed files. + * config/sparc/nbsd64.mh: Update renamed files. + * config/sparc/nbsdelf.mh: Update renamed files. + * config/sparc/obsd64.mh: Update renamed files. + * config/vax/nbsdelf.mh: Update renamed files. + * config/vax/obsd.mh: Update renamed files. + +2016-11-22 Simon Marchi + + * Makefile.in: Add comment about file lists ordering. + (SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_MI_OBS, SUBDIR_MI_SRCS, + SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS, SUBDIR_GCC_COMPILE_OBS, + SUBDIR_GCC_COMPILE_SRCS, SUBDIR_GUILE_OBS, SUBDIR_GUILE_SRCS, + SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS, SUBDIR_GDBTK_OBS, + SUBDIR_GDBTK_SRCS, XMLFILES, REMOTE_OBS, ALL_64_TARGET_OBS, + ALL_TARGET_OBS, SFILES, HFILES_NO_SRCDIR, HFILES_WITH_SRCDIR, + COMMON_OBS, YYFILES, YYOBJ, generated_files, ALLDEPFILES): + Flatten list and order alphabetically. + * data-directory/Makefile.in: Add comment about file lists + ordering. + (GEN_SYSCALLS_FILES, PYTHON_FILE_LIST): Flatten list and order + alphabetically. + +2016-11-22 Ambrogino Modigliani + + * contrib/expect-read1.sh: Fix spelling in comments. + * gdb_buildall.sh: Fix spelling in comments. + * gdb_mbuild.sh: Fix spelling in comments. + +2016-11-22 Ambrogino Modigliani + + * configure.ac: Fix spelling in comments. + * configure: Regenerate. + +2016-11-22 Yao Qi + + * gdbarch.sh (software_single_step): Change parameter from frame_info + to regcache. + * gdbarch.c, gdbarch.h: Regenerated. + * aarch64-tdep.c (aarch64_software_single_step): Change parameter + from frame_info to regcache. Don't call get_current_regcache. + * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise. + (alpha_software_single_step): Likewise. + * alpha-tdep.h (alpha_software_single_step): Update declaration. + * arm-linux-tdep.c (arm_linux_software_single_step): Likewise. + * arm-tdep.c (arm_software_single_step): Likewise. + * arm-tdep.h (arm_software_single_step): Likewise. + * breakpoint.c (insert_single_step_breakpoint): Pass regcache to + gdbarch_software_single_step. + * cris-tdep.c (cris_software_single_step): Change parameter from + frame_info to regcache. Don't call get_current_regcache. + * mips-tdep.c (mips_software_single_step): Likewise. + * mips-tdep.h (mips_software_single_step): Update declaration. + * moxie-tdep.c (moxie_software_single_step): Likewise. + * nios2-tdep.c (nios2_software_single_step): Likewise. + * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update declaration. + * rs6000-aix-tdep.c (rs6000_software_single_step): Likewise. + * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise. + * s390-linux-tdep.c (s390_software_single_step): Likewise. + * sparc-tdep.c (sparc_software_single_step): Likewise. + * spu-tdep.c (spu_software_single_step): Likewise. + * tic6x-tdep.c (tic6x_software_single_step): Likewise. + +2016-11-22 Yao Qi + + * spu-tdep.c (spu_software_single_step): Call get_regcache_arch + instead of get_frame_arch. Call regcache_read_pc instead of + get_frame_pc. Call regcache_raw_get_unsigned instead of + get_frame_register_unsigned. + +2016-11-22 Yao Qi + + * tic6x-tdep.c (tic6x_condition_true): Replace frame with + regcache. Call regcache_raw_get_signed instead of + get_frame_register_signed. + (tic6x_get_next_pc): Likewise. Caller updated. + +2016-11-22 Yao Qi + + * rs6000-aix-tdep.c (branch_dest): Replace parameter frame with + regcache. Call get_regcache_arch instead of get_frame_arch. + Call regcache_raw_get_unsigned instead of + get_frame_register_unsigned. + (rs6000_software_single_step): Likewise. + * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Call + get_regcache_arch instead of get_frame_arch. Call + regcache_read_pc instead of get_frame_pc. + +2016-11-22 Yao Qi + + * s390-linux-tdep.c (s390_software_single_step): Call + get_regcache_arch instead of get_frame_arch. Call + regcache_read_pc instead of get_frame_pc. + +2016-11-22 Yao Qi + + * sparc-tdep.c (sparc_analyze_control_transfer): Replace parameter + frame with regcache. Call get_current_frame. + (sparc_software_single_step): Call get_regcache_arch instead of + get_frame_arch. Call regcache_raw_get_unsigned instead of + get_frame_register_unsigned. + +2016-11-22 Yao Qi + + * nios2-tdep.c (nios2_get_next_pc): Replace parameter frame + with regcache. Call regcache_raw_get_signed instead of + get_frame_register_unsigned. + (nios2_software_single_step): Call get_regcache_arch + instead of get_frame_arch. + +2016-11-22 Yao Qi + + * moxie-tdep.c (moxie_software_single_step): Call + get_regcache_arch instead of get_frame_arch. Call + regcache_read_pc instead of get_frame_pc. + +2016-11-22 Yao Qi + + * mips-tdep.c (mips32_bc1_pc): Replace parameter frame with + regcache. Call regcache_raw_get_unsigned instead of + get_frame_register_unsigned. + (mips32_next_pc): Likewise. + (micromips_bc1_pc): Likewise. + (micromips_next_pc): Likewise. + (extended_mips16_next_pc): Likewise. + (mips16_next_pc): Likewise. + (mips_next_pc): Likewise. + (mips_software_single_step): Call get_regcache_arch instead + of get_frame_arch. + +2016-11-22 Yao Qi + + * cris-tdep.c (find_step_target): Replace parameter frame + with regcache. Call get_regcache_arch instead of + get_frame_arch. Call regcache_raw_get_unsigned instead of + get_frame_register_unsigned. + (cris_software_single_step): Call get_regcache_arch instead + of get_frame_arch. + +2016-11-22 Yao Qi + + * alpha-tdep.c (alpha_deal_with_atomic_sequence): Call + get_regcache_arch instead of get_frame_arch. Call + regcache_read_pc instead of get_frame_pc. + (alpha_next_pc): Replace parameter frame with regcache. + Call regcache_raw_get_unsigned instead of + get_frame_register_unsigned. + +2016-11-22 Yao Qi + + * aarch64-tdep.c (aarch64_software_single_step): Call + get_regcache_arch instead of get_frame_arch. Call + regcache_read_pc instead of get_frame_pc. + +2016-11-22 Yao Qi + + * regcache.c (regcache_raw_get_signed): New function. + * regcache.h (regcache_raw_get_signed): Declare. + +2016-11-22 Yao Qi + + * value.c (value_from_component): Use VALUE_NEXT_FRAME_ID + instead of VALUE_FROM_ID. + +2016-11-21 Simon Marchi + + * Makefile.in (%o: $(srcdir)/mi/%.c): Add missing POSTCOMPILE + step. + +2016-11-21 Yao Qi + + * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): + Don't call value_from_contents_and_address and + set_value_address. Call value_from_component. + * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): + Likewise. + * value.c (value_from_component): New function. + * value.h (value_from_component): Likewise. + * valarith.c (value_subscripted_rvalue): Call + value_from_component. + +2016-11-19 Joel Brobecker + + * contrib/ari/gdb_ari.sh: Add detection of printf_vma and + sprintf_vma. + +2016-11-18 Simon Marchi + + * Makefile.in (%.o: $(srcdir)/gdbtk/generic/%.c): Fix typo. + +2016-11-17 Simon Marchi + + (PYTHON_CFLAGS): Move up. + (%.o: $(srcdir)/arch/%.c): New rule. + (%.o: $(srcdir)/cli/%.c): New rule. + (%.o: $(srcdir)/common/%.c): New rule. + (%.o: $(srcdir)/compile/%.c): New rule. + (%.o: $(srcdir)/gdbtk/generic/%.c): New rule. + (%.o: $(srcdir)/guile/%.c): New rule. + (%.o: $(srcdir)/mi/%.c): New rule. + (%.o: $(srcdir)/nat/%.c): New rule. + (%.o: $(srcdir)/python/%.c): New rule. + (%.o: $(srcdir)/target/%.c): New rule. + (%.o: $(srcdir)/tui/%.c): New rule. + (cli-cmds.o): Remove. + (cli-decode.o): Likewise. + (cli-dump.o): Likewise. + (cli-interp.o): Likewise. + (cli-logging.o): Likewise. + (cli-script.o): Likewise. + (cli-setshow.o): Likewise. + (cli-utils.o): Likewise. + (compile.o): Likewise. + (compile-c-types.o): Likewise. + (compile-c-symbols.o): Likewise. + (compile-object-load.o): Likewise. + (compile-object-run.o): Likewise. + (compile-loc2c.o): Likewise. + (compile-c-support.o): Likewise. + (gdbtk.o): Likewise. + (gdbtk-bp.o): Likewise. + (gdbtk-cmds.o): Likewise. + (gdbtk-hooks.o): Likewise. + (gdbtk-interp.o): Likewise. + (gdbtk-main.o): Likewise. + (gdbtk-register.o): Likewise. + (gdbtk-stack.o): Likewise. + (gdbtk-varobj.o): Likewise. + (gdbtk-wrapper.o): Likewise. + (mi-cmd-break.o): Likewise. + (mi-cmd-catch.o): Likewise. + (mi-cmd-disas.o): Likewise. + (mi-cmd-env.o): Likewise. + (mi-cmd-file.o): Likewise. + (mi-cmd-info.o): Likewise. + (mi-cmds.o): Likewise. + (mi-cmd-stack.o): Likewise. + (mi-cmd-target.o): Likewise. + (mi-cmd-var.o): Likewise. + (mi-console.o): Likewise. + (mi-getopt.o): Likewise. + (mi-interp.o): Likewise. + (mi-main.o): Likewise. + (mi-out.o): Likewise. + (mi-parse.o): Likewise. + (mi-symbol-cmds.o): Likewise. + (mi-common.o): Likewise. + (signals.o): Likewise. + (common-utils.o): Likewise. + (gdb_vecs.o): Likewise. + (xml-utils.o): Likewise. + (ptid.o): Likewise. + (buffer.o): Likewise. + (filestuff.o): Likewise. + (format.o): Likewise. + (vec.o): Likewise. + (print-utils.o): Likewise. + (rsp-low.o): Likewise. + (errors.o): Likewise. + (common-debug.o): Likewise. + (cleanups.o): Likewise. + (common-exceptions.o + (posix-strerror.o): Likewise. + (mingw-strerror.o): Likewise. + (btrace-common.o): Likewise. + (fileio.o): Likewise. + (common-regcache.o): Likewise. + (signals-state-save-restore.o): Likewise. + (new-op.o): Likewise. + (waitstatus.o): Likewise. + (arm.o): Likewise. + (arm-linux.o): Likewise. + (arm-get-next-pcs.o): Likewise. + (x86-dregs.o): Likewise. + (linux-btrace.o): Likewise. + (linux-osdata.o): Likewise. + (linux-procfs.o): Likewise. + (linux-ptrace.o): Likewise. + (linux-waitpid.o): Likewise. + (mips-linux-watch.o): Likewise. + (ppc-linux.o): Likewise. + (linux-personality.o): Likewise. + (x86-linux.o): Likewise. + (x86-linux-dregs.o): Likewise. + (amd64-linux-siginfo.o): Likewise. + (linux-namespaces.o): Likewise. + (aarch64-linux-hw-point.o): Likewise. + (aarch64-linux.o): Likewise. + (aarch64-insn.o): Likewise. + (tui.o): Likewise. + (tui-command.o): Likewise. + (tui-data.o): Likewise. + (tui-disasm.o): Likewise. + (tui-file.o): Likewise. + (tui-hooks.o): Likewise. + (tui-interp.o): Likewise. + (tui-io.o): Likewise. + (tui-layout.o): Likewise. + (tui-out.o): Likewise. + (tui-regs.o): Likewise. + (tui-source.o): Likewise. + (tui-stack.o): Likewise. + (tui-win.o): Likewise. + (tui-windata.o): Likewise. + (tui-wingeneral.o): Likewise. + (tui-winsource.o): Likewise. + (guile.o): Likewise. + (scm-arch.o): Likewise. + (scm-auto-load.o): Likewise. + (scm-block.o): Likewise. + (scm-breakpoint.o): Likewise. + (scm-cmd.o): Likewise. + (scm-disasm.o): Likewise. + (scm-exception.o): Likewise. + (scm-frame.o): Likewise. + (scm-gsmob.o): Likewise. + (scm-iterator.o): Likewise. + (scm-lazy-string.o): Likewise. + (scm-math.o): Likewise. + (scm-objfile.o): Likewise. + (scm-param.o): Likewise. + (scm-ports.o): Likewise. + (scm-pretty-print.o): Likewise. + (scm-progspace.o): Likewise. + (scm-safe-call.o): Likewise. + (scm-string.o): Likewise. + (scm-symbol.o): Likewise. + (scm-symtab.o): Likewise. + (scm-type.o): Likewise. + (scm-utils.o): Likewise. + (scm-value.o): Likewise. + (python.o): Likewise. + (py-arch.o): Likewise. + (py-auto-load.o): Likewise. + (py-block.o): Likewise. + (py-bpevent.o): Likewise. + (py-breakpoint.o): Likewise. + (py-cmd.o): Likewise. + (py-continueevent.o): Likewise. + (py-xmethods.o): Likewise. + (py-event.o): Likewise. + (py-evtregistry.o): Likewise. + (py-evts.o): Likewise. + (py-exitedevent.o): Likewise. + (py-finishbreakpoint.o): Likewise. + (py-frame.o): Likewise. + (py-framefilter.o): Likewise. + (py-function.o): Likewise. + (py-gdb-readline.o): Likewise. + (py-inferior.o): Likewise. + (py-infevents.o): Likewise. + (py-infthread.o): Likewise. + (py-lazy-string.o): Likewise. + (py-linetable.o): Likewise. + (py-newobjfileevent.o): Likewise. + (py-objfile.o): Likewise. + (py-param.o): Likewise. + (py-prettyprint.o): Likewise. + (py-progspace.o): Likewise. + (py-signalevent.o): Likewise. + (py-stopevent.o): Likewise. + (py-symbol.o): Likewise. + (py-symtab.o): Likewise. + (py-threadevent.o): Likewise. + (py-type.o): Likewise. + (py-unwind.o): Likewise. + (py-utils.o): Likewise. + (py-value.o): Likewise. + (py-varobj.o): Likewise. + +2016-11-17 Simon Marchi + + * Makefile.in (.c.o): Replace rule with ... + (%.o: %.c): ... this one. + (.po.gmo): Replace rule with ... + (%.gmo: %.po): ... this one. + (.po.pox): Replace rule with ... + (%.pox: %.po): ... this one. + (.y.c): Replace rule with ... + (%.c: %.y): ... this one. + (.l.c): Replace rule with ... + (%.c: %.l): ... this one. + (.SUFFIXES): Remove all instances. + +2016-11-17 Simon Marchi + + * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines + prefixed with @GMAKE_FALSE@. Update comment related to non-GNU + make. + * configure.ac: Remove checks for the make program. + * configure: Re-generate. + +2016-11-17 Simon Marchi + + * NEWS: Mention requirement of GNU make. + +2016-11-17 Pedro Alves + + * c-exp.y (c_print_token): Use parser_fprintf instead of fprintf. + +2016-11-17 Pedro Alves + + * ctf.c [USE_WIN32API] (mkdir): Delete. + +2016-11-16 Pedro Alves + + * ada-lang.c (ada_value_primitive_packed_val): Use unique_ptr and + new gdb_byte[] instead of malloc and cleanups. + +2016-11-17 Pedro Alves + + * tracepoint.c (collection_list::add_memrange): Add gdbarch + parameter. Use paddress instead of printf_vma. Adjust recursive + calls. + (collection_list::stringify): Use paddress and phex_nz instead of + sprintf_vma. Adjust add_memrange call. + * tracepoint.h (collection_list::add_memrange): Add gdbarch + parameter. + +2016-11-16 Kevin Buettner + + * frame.c (get_prev_frame): Stash frame id for current frame + prior to computing frame id for previous frame. + +2016-11-16 Kevin Buettner + + * python/py-unwind.c (pending_framepy_read_register): Use + value_of_register() instead of get_frame_register_value(). + +2016-11-16 Kevin Buettner + + * value.h (VALUE_FRAME_ID): Rename to VALUE_NEXT_FRAME_ID. Update + comment. Create new VALUE_FRAME_ID which is defined in terms of + VALUE_NEXT_FRAME_ID. + (deprecated_value_frame_id_hack): Rename to + deprecated_value_next_frame_id_hack. + * dwarf2loc.c, findvar.c, frame-unwind.c, sentinel-frame.c, + valarith.c, valops.c, value.c: Adjust nearly all occurences of + VALUE_FRAME_ID to VALUE_NEXT_FRAME_ID. Add comments for those + which did not change. + * value.c (struct value): Rename frame_id field to next_frame_id. + Update comment. + (deprecated_value_frame_id_hack): Rename to + deprecated_value_next_frame_id_hack. + (value_fetch_lazy): Call frame_unwind_register_value() + instead of get_frame_register_value(). + * frame.c (get_prev_frame_id_by_id): New function. + * frame.h (get_prev_frame_id_by_id): Declare. + * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Make + VALUE_NEXT_FRAME_ID refer to the next frame. + * findvar.c (value_of_register_lazy): Likewise. + (default_value_from_register): Likewise. + (value_from_register): Likewise. + * frame_unwind.c (frame_unwind_got_optimized): Likewise. + * sentinel-frame.c (sentinel_frame_prev_register): Likewise. + * value.h (VALUE_FRAME_ID): Update comment describing this macro. + +2016-11-16 Kevin Buettner + + * frame.h (enum frame_id_stack_status): Add FID_STACK_SENTINEL. + (struct frame_id): Increase number of bits required for storing + stack status to 3 from 2. + (sentinel_frame_id): New declaration. + (get_next_frame_sentinel_okay): Declare. + (frame_find_by_id_sentinel_okay): Declare. + * frame.c (current_frame): Rename this static global to... + (sentinel_frame): ...this static global, which has also been + moved an earlier location in the file. + (fprint_frame_id): Add case for sentinel frame id. + (get_frame_id): Return early for sentinel frame. + (sentinel_frame_id): Define. + (frame_find_by_id): Add case for sentinel_frame_id. + (create_sentinel_frame): Use sentinel_frame_id for this_id.value + instead of null_frame_id. + (get_current_frame): Add local declaration for `current_frame'. + Remove local declaration for `sentinel_frame.' + (get_next_frame_sentinel_okay): New function. + (reinit_frame_cache): Use `sentinel_frame' in place of + `current_frame'. + +2016-11-15 Pedro Alves + + * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to + 38237baf99386101934cd93278023aa4ae523ec0. + * gnulib/configure, gnulib/config.in: Regenerate. + * gnulib/import/Makefile.am: Regenerate. + * gnulib/import/Makefile.in: Regenerate. + * gnulib/import/canonicalize-lgpl.c: Update. + * gnulib/import/extra/snippet/c++defs.h: Update. + * gnulib/import/m4/stdint.m4: Update. + * gnulib/import/m4/stdlib_h.m4: Update. + * gnulib/import/math.in.h: Update. + * gnulib/import/stdlib.in.h: Update. + * gnulib/import/sys_time.in.h: Update. + +2016-11-15 Pedro Alves + + * common/common-defs.h: Update comment. + * common/gdb_unique_ptr.h: Update header comment and copyright + year. + (gdb::unique_ptr, gdb::move): Delete. + +2016-11-15 Pedro Alves + + * ada-lang.c (create_excep_cond_exprs): Use std::move instead of + gdb::move. + * break-catch-throw.c (handle_gnu_v3_exceptions): Use + std::unique_ptr instead of gdb::unique_ptr. + * breakpoint.c (watch_command_1): Use std::move instead of + gdb::move. + * cli/cli-dump.c (dump_memory_to_file, restore_binary_file): Use + std::unique_ptr instead of gdb::unique_ptr. + * dtrace-probe.c (dtrace_process_dof_probe): Use std::move instead + of gdb::move. + * elfread.c (elf_read_minimal_symbols): Use std::unique_ptr + instead of gdb::unique_ptr. + * mi/mi-main.c (mi_cmd_data_read_memory): Use std::unique_ptr + instead of gdb::unique_ptr. + * parse.c (parse_expression_for_completion): Use std::move instead + of gdb::move. + * printcmd.c (display_command): std::move instead of gdb::move. + +2016-11-14 Markus Metzger + + * nat/linux-btrace.c (perf_event_read): Allow data_head < size. + * nat/linux-btrace.c (perf_event_read_all): Do not adjust size. + +2016-11-12 Tom Tromey + + * rust-exp.y (super_name): Use std::vector. + (lex_number): Use std::string. + (convert_params_to_types): Return std::vector. + (convert_ast_to_type, convert_name): Update. + * rust-lang.c (rust_get_disr_info): Use unique_xmalloc_ptr. + +2016-11-12 Tom Tromey + + * rust-lang.c (rust_get_disr_info): Use std::string in one more + spot. + +2016-11-11 Yao Qi + + * spu-tdep.c (spu_software_single_step): Don't call + get_frame_register_bytes, call get_frame_register_unsigned + instead. + +2016-11-11 Yao Qi + + * cp-valprint.c (cp_print_value): Remove local base_valaddr. + * extension-priv.h (struct extension_language_ops) + : Remove the second parameter. + Remove const from "struct value *". Callers updated. + * extension.c (apply_ext_lang_val_pretty_printer): Update + comments. Remove parameter valaddr. Remove const from + "struct value *". + * extension.h (apply_ext_lang_val_pretty_printer): Update + declaration. + * guile/guile-internal.h (gdbscm_apply_val_pretty_printer): + Update declaration. + * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): + Remove parameter valaddr. Remove const from "struct value *". + * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): + Likewise. + * python/python-internal.h (gdbpy_apply_val_pretty_printer): + Update declaration. + +2016-11-11 Yao Qi + + * c-lang.h (cp_print_value_fields): Update declaration. + * cp-valprint.c (cp_print_value): Update declaration. + (cp_print_value_fields): Remove parameter valaddr. Callers + updated. + (cp_print_value): Likewise. + +2016-11-09 Tom Tromey + + * varobj.h (varobj_get_display_hint): Change return type. + * varobj.c (varobj_get_display_hint): Return unique_xmalloc_ptr. + (varobj_value_get_print_value): Update. + * python/python.c (gdbpy_before_prompt_hook, gdbpy_print_stack) + (gdbpy_apply_type_printers): Update. + * python/python-internal.h (unicode_to_target_string) + (python_string_to_target_string, python_string_to_host_string) + (gdbpy_obj_to_string, gdbpy_exception_to_string) + (gdbpy_get_display_hint): Change return types. + * python/py-varobj.c (py_varobj_iter_next): Update. + * python/py-value.c (valpy_getitem, convert_value_from_python): + Update. + * python/py-utils.c (unicode_to_encoded_string) + (unicode_to_target_string, python_string_to_target_string) + (python_string_to_host_string, gdbpy_obj_to_string) + (gdbpy_exception_to_string): Return unique_xmalloc_ptr. + * python/py-unwind.c (pyuw_parse_register_id): Update. + * python/py-type.c (typy_getitem): Update. + * python/py-prettyprint.c (gdbpy_get_display_hint) + (print_stack_unless_memory_error, print_children) + (gdbpy_apply_val_pretty_printer): Update. + * python/py-param.c (set_parameter_value): Update. + (get_doc_string, call_doc_function): Return unique_xmalloc_ptr. + (get_set_value, get_show_value, compute_enum_values, parmpy_init): + Update. + * python/py-infthread.c (thpy_set_name): Update. + * python/py-function.c (fnpy_call, fnpy_init): Update. + * python/py-framefilter.c (extract_sym): Change "name" to + unique_xmalloc_ptr. + (enumerate_args, enumerate_locals): Update. + (py_print_frame): Use unique_xmalloc_ptr. + * python/py-frame.c (frapy_read_var): Update. Remove cleanup. + * python/py-cmd.c (cmdpy_function, cmdpy_completer, cmdpy_init): + Update. + * python/py-breakpoint.c (bppy_set_condition): Use + unique_xmalloc_ptr. + (bppy_init): Likewise. Remove cleanup. + (local_setattro): Update. + * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_list_children) + (varobj_update_one): Update. + +2016-11-09 Pedro Alves + + * ax-gdb.c (agent_eval_command_one): Use std::move instead of + gdb::move. + * ax.h (agent_expr_up): Use std::unique_ptr instead of + gdb::unique_ptr. + * breakpoint.c (parse_cond_to_aexpr): Use std::move instead of + gdb::move. + * tracepoint.c (collection_list::collect_symbol): Likewise. + (collection_list::~collection_list): Delete. + (encode_actions_1): Use std::move instead of gdb::move. + (collection_list::add_aexpr): Use std::move instead of + unique_ptr::release. + * tracepoint.h (collection_list) <~collection_list>: Delete + declaration. + : Now a vector of agent_ptr_up. + +2016-11-09 Pedro Alves + + * main.c (struct cmdarg): Add constructor. + (captured_main_1): Use vector::emplace_back. + * tracepoint.c (collection_list::add_memrange): Likewise. + +2016-11-09 Andreas Arnez + + * tui/tui-winsource.c (tui_alloc_source_buffer): Remove + failed-xmalloc handling. + +2016-11-09 Andreas Arnez + + * tui/tui-winsource.c (tui_alloc_source_buffer): Subtract + highlight box's overhead when calculating the content height. + +2016-11-09 Andreas Arnez + + * tui/tui-disasm.c (tui_set_disassem_content): Fix calculation of + the longest disassembly line's length. + +2016-11-09 Andreas Arnez + + * tui/tui-disasm.c (tui_set_disassem_content): Fix line buffer + overrun due to unchecked strcpy. + +2016-11-09 Tristan Gingold + + * darwin-nat.c (find_inferior_task_it): Fix indentation. + (find_inferior_notify_it): Remove. + (find_inferior_pid_it): New function. + (darwin_find_inferior_by_notify): Remove. + (darwin_find_inferior_by_pid): New function. + (darwin_find_new_inferior): New function. + (darwin_check_message_ndr): New function from + darwin_decode_exception_message. + (darwin_decode_exception_message): Call darwin_check_message_ndr. + Handle SIGTRAP addressed to an unknown task (when a task spawned). + (darwin_decode_notify_message): New function. + (darwin_decode_message): Handle unknown task. + (darwin_deallocate_threads): New function from darwin_mourn_inferior. + (darwin_mourn_inferior): Use darwin_deallocate_threads and + darwin_deallocate_exception_ports. + (darwin_deallocate_exception_ports): New function from + darwin_mourn_inferior. + (darwin_setup_exceptions): New function from darwin_attach_pid. + (darwin_setup_request_notification): Likewise. + (darwin_attach_pid): Call darwin_setup_request_notification and + darwin_setup_request_notification. + +2016-11-08 Tom Tromey + + * python/py-framefilter.c (py_print_frame): Use + get_addr_from_python. Check for errors when getting line number. + +2016-11-08 Yao Qi + + * ada-lang.h (ada_val_print): Remove second parameter. Remove + const from "struct value *". + * ada-valprint.c (print_field_values): Remove const from + "struct value *". + (val_print_packed_array_elements): Likewise. + (print_variant_part): Likewise. + (ada_val_print_string): Likewise. + (ada_val_print_gnat_array): Likewise. + (ada_val_print_ptr): Likewise. + (ada_val_print_num): Likewise. + (ada_val_print_enum): Likewise. + (ada_val_print_flt): Likewise. + (ada_val_print_union): Likewise. + (ada_val_print_struct_union): Likewise. + (ada_val_print_ref): Likewise. + (ada_val_print_1): Remove second parameter. Remove const from + "struct value *". + (ada_val_print): Likewise. + * c-lang.h (c_val_print): Likewise. + * c-valprint.c (c_val_print_array): Remove const from + "struct value *". + (c_val_print_ptr): Likewise. + (c_val_print_struct): Likewise. + (c_val_print_union): Likewise. + (c_val_print_int): Likewise. + (c_val_print_memberptr): Likewise. + (c_val_print): Remove second parameter. Remove const from + "struct value *". All callers updated. + * cp-valprint.c (cp_print_value): Remove const from + "struct value *". + (cp_print_value_fields): Likewise. + (c_val_print_value): Likewise. + * d-lang.h (d_val_print): Remove second parameter. Remove const + from "struct value *". + * d-valprint.c (dynamic_array_type): Likewise. + (d_val_print): Likewise. + * f-lang.h (f_val_print): Likewise. + * f-valprint.c (f_val_print): Likewise. + * go-lang.h (go_val_print): Likewise. + * go-valprint.c (print_go_string): Likewise. + (go_val_print): Likewise. + * language.c (unk_lang_val_print): Likewise. + * language.h (struct language_defn) : Likewise. + Update comments. + (LA_VAL_PRINT): Remove. + * m2-lang.h (m2_val_print): Remove const from + "struct value *". + * m2-valprint.c (m2_print_array_contents): Likewise. + (m2_val_print): Likewise. + * p-lang.h (pascal_val_print): Remove second parameter. Remove + const from "struct value *". + (pascal_object_print_value_fields): Likewise. + * p-valprint.c (pascal_val_print): Likewise. + (pascal_object_print_value_fields): Likewise. + (pascal_object_print_value): Likewise. + * rust-lang.c (rust_get_disr_info): Likewise. + (val_print_struct): Likewise. + (rust_val_print): Likewise. + * valprint.c (generic_val_print_array): Likewise. + (generic_val_print_ptr): Likewise. + (generic_val_print_memberptr): Likewise. + (generic_val_print_ref): Likewise. + (generic_val_print_enum): Likewise. + (generic_val_print_flags): Likewise. + (generic_val_print_func): Likewise. + (generic_val_print_bool): Likewise. + (generic_val_print_int): Likewise. + (generic_val_print_char): Likewise. + (generic_val_print_float): Likewise. + (generic_val_print_decfloat): Likewise. + (generic_val_print_complex): Likewise. + (generic_val_print): Likewise. + (val_print): Likewise. + (common_val_print): Likewise. + (val_print_type_code_flags): Likewise. + (val_print_scalar_formatted): Likewise. + (val_print_array_elements): Likewise. + * valprint.h (val_print_array_elements): Update declaration. + (val_print_scalar_formatted): Likewise. + (generic_val_print): Likewise. + * value.h (val_print): Likewise. + +2016-11-08 Yao Qi + + * mt-tdep.c (mt_registers_info): Call + get_frame_register_value instead of + deprecated_frame_register_read. + * sh64-tdep.c (sh64_do_register): Likewise. + +2016-11-08 Pedro Alves + + * ax.h (agent_expr_p): Delete. + (DEF_VEC_P (agent_expr_p)): Delete. + * breakpoint.c (build_target_condition_list) + (build_target_command_list): Adjust to use of std::vector. + (bp_location_dtor): Remove now unnecessary VEC_free calls. + * breakpoint.h: Include . + (struct bp_target_info) : Now + std::vector's. + * remote.c (remote_add_target_side_condition): bp_tgt->conditions + is now a std::vector; adjust. + (remote_add_target_side_commands, remote_insert_breakpoint): + bp_tgt->tcommands is now a std::vector; adjust. + +2016-11-08 Pedro Alves + + * ax-gdb.c (is_nontrivial_conversion): Use agent_expr_up. + (gen_trace_for_var, gen_trace_for_expr, gen_eval_for_expr) + (gen_trace_for_return_address, gen_printf): Use and return an + agent_expr_up. Don't use make_cleanup_free_agent_expr. + (agent_eval_command_one, maint_agent_printf_command): Use + agent_expr_up. Don't use make_cleanup_free_agent_expr. + * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var) + (gen_trace_for_return_address, gen_eval_for_expr, gen_printf): Use + agent_expr_up. + * ax-general.c (new_agent_expr): Rename to ... + (agent_expr::agent_expr): ... this, and now a constructor. + (free_agent_expr): Rename to ... + (agent_expr::~agent_exp): ... this, and now a destructor. + (do_free_agent_expr_cleanup, make_cleanup_free_agent_expr): + Delete. + * ax.h (struct agent_expr): Add ctor/dtor. + (agent_expr_up): New typedef. + (new_agent_expr, free_agent_expr, make_cleanup_free_agent_expr): + Delete declarations. + * breakpoint.c (parse_cond_to_aexpr): Use and return an + agent_expr_up. Don't use make_cleanup_free_agent_expr. + (build_target_condition_list): Adjust to use agent_expr_up. + (parse_cmd_to_aexpr): Use and return an agent_expr_up. Don't use + make_cleanup_free_agent_expr. + (build_target_command_list): Adjust to use agent_expr_up. + (force_breakpoint_reinsertion): Adjust to use agent_expr_up. + (bp_location_dtor): Remove unnecessary free_agent_expr and xfree + calls. + * breakpoint.h (struct bp_target_info) : Now agent_expr_up's. + * remote.c (remote_download_tracepoint): Adjust to use + agent_expr_up and remove use of make_cleanup_free_agent_expr. + * tracepoint.c (validate_actionline, collect_symbol): Adjust to + use agent_expr_up and remove uses of make_cleanup_free_agent_expr. + (collection_list::~collection_list): Call delete instead of + free_agent_expr. + (encode_actions_1): Adjust to use agent_expr_up and remove uses of + make_cleanup_free_agent_expr. + (add_aexpr): Change parameter type to agent_expr_up; Return a raw + agent_expr pointer. + +2016-11-08 Pedro Alves + + * ada-lang.c (ada_name_for_lookup, type_as_string): Use and return + std::string. + (type_as_string_and_cleanup): Delete. + (ada_lookup_struct_elt_type): Use type_as_string. + * ada-lang.h (ada_name_for_lookup): Now returns std::string. + * ada-varobj.c (ada_varobj_scalar_image): Return a std::string. + (ada_varobj_describe_child): Make 'child_name' and + 'child_path_expr' parameters std::string pointers. + (ada_varobj_describe_struct_child, ada_varobj_describe_ptr_child): + Likewise, and use string_printf. + (ada_varobj_describe_simple_array_child) + (ada_varobj_describe_child): Likewise. + (ada_varobj_get_name_of_child, ada_varobj_get_path_expr_of_child) + (ada_varobj_get_value_image) + (ada_varobj_get_value_of_array_variable) + (ada_varobj_get_value_of_variable, ada_name_of_variable) + (ada_name_of_child, ada_path_expr_of_child) + (ada_value_of_variable): Now returns std::string. Use + string_printf. + (ada_value_of_child): Adjust. + * break-catch-throw.c (check_status_exception_catchpoint): Adjust + to use std::string. + * breakpoint.c (watch_command_1): Adjust to use std::string. + * c-lang.c (c_get_string): Adjust to use std::string. + * c-typeprint.c (print_name_maybe_canonical): Use std::string. + * c-varobj.c (varobj_is_anonymous_child): Use ==/!= std::string + operators. + (c_name_of_variable): Now returns a std::string. + (c_describe_child): The 'cname' and 'cfull_expression' output + parameters are now std::string pointers. Adjust. + (c_name_of_child, c_path_expr_of_child, c_value_of_variable) + (cplus_number_of_children): Adjust to use std::string and + string_printf. + (cplus_name_of_variable): Now returns a std::string. + (cplus_describe_child): The 'cname' and 'cfull_expression' output + parameters are now std::string pointers. Adjust. + (cplus_name_of_child, cplus_path_expr_of_child) + (cplus_value_of_variable): Now returns a std::string. + * cp-abi.c (cplus_typename_from_type_info): Return std::string. + * cp-abi.h (cplus_typename_from_type_info): Return std::string. + (struct cp_abi_ops) : Return + std::string. + * cp-support.c (inspect_type): Use std::string. + (cp_canonicalize_string_full, cp_canonicalize_string_no_typedefs) + (cp_canonicalize_string): Return std::string and adjust. + * cp-support.h (cp_canonicalize_string) + (cp_canonicalize_string_no_typedefs, cp_canonicalize_string_full): + Return std::string. + * dbxread.c (read_dbx_symtab): Use std::string. + * dwarf2read.c (dwarf2_canonicalize_name): Adjust to use std::string. + * gdbcmd.h (lookup_struct_elt_type): Adjust to use std::string. + * gnu-v3-abi.c (gnuv3_get_typeid): Use std::string. + (gnuv3_get_typename_from_type_info): Return a std::string and + adjust. + (gnuv3_get_type_from_type_info): Adjust to use std::string. + * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use + std::string. + * infcmd.c (print_return_value_1): Adjust to use std::string. + * linespec.c (find_linespec_symbols): Adjust to + demangle_for_lookup API change. Use std::string. + * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_set_format) + (mi_cmd_var_info_type, mi_cmd_var_info_path_expression) + (mi_cmd_var_info_expression, mi_cmd_var_evaluate_expression) + (mi_cmd_var_assign, varobj_update_one): Adjust to use std::string. + * minsyms.c (lookup_minimal_symbol): Use std::string. + * python/py-varobj.c (py_varobj_iter_next): Use new instead of + XNEW. vitem->name is a std::string now, adjust. + * rust-exp.y (convert_ast_to_type, convert_name): Adjust to use + std::string. + * stabsread.c (define_symbol): Adjust to use std::string. + * symtab.c (demangle_for_lookup): Now returns 'const char *'. Add + a demangle_result_storage parameter. Use it for storage. + (lookup_symbol_in_language) + (lookup_symbol_in_objfile_from_linkage_name): Adjust to new + demangle_for_lookup API. + * symtab.h (struct demangle_result_storage): New type. + (demangle_for_lookup): Now returns 'const char *'. Add a + demangle_result_storage parameter. + * typeprint.c (type_to_string): Return std::string and use + ui_file_as_string. + * value.h (type_to_string): Change return type to std::string. + * varobj-iter.h (struct varobj_item) : Now a std::string. + (varobj_iter_delete): Use delete instead of xfree. + * varobj.c (create_child): Return std::string instead of char * in + output parameter. + (name_of_variable, name_of_child, my_value_of_variable): Return + std::string instead of char *. + (varobj_create, varobj_get_handle): Constify 'objname' parameter. + Adjust to std::string fields. + (varobj_get_objname): Return a const char * instead of a char *. + (varobj_get_expression): Return a std::string. + (varobj_list_children): Adjust to use std::string. + (varobj_get_type): Return a std::string. + (varobj_get_path_expr): Return a const char * instead of a char *. + Adjust to std::string fields. + (varobj_get_formatted_value, varobj_get_value): Return a + std::string. + (varobj_set_value): Change type of 'expression' parameter to + std::string. Use std::string. + (install_new_value): Use std::string. + (delete_variable_1): Adjust to use std::string. + (create_child): Change the 'name' parameter to a std::string + reference. Swap it into the new item's name. + (create_child_with_value): Swap item's name into the new child's + name. Use string_printf. + (new_variable): Use new instead of XNEW. + (free_variable): Don't xfree fields that are now std::string. + (name_of_variable, name_of_child): Now returns std::string. + (value_of_root): Adjust to use std::string. + (my_value_of_variable, varobj_value_get_print_value): Return + and use std::string. + (varobj_value_get_print_value): Adjust to use ui_file_as_string + and std::string. + * varobj.h (struct varobj) : Now std::string's. + : Return std::string. + (varobj_create, varobj_get_handle): Constify 'objname' parameter. + (varobj_get_objname): Return a const char * instead of a char *. + (varobj_get_expression, varobj_get_type): Return a std::string. + (varobj_get_path_expr): Return a const char * instead of a char *. + (varobj_get_formatted_value, varobj_get_value): Return a + std::string. + (varobj_set_value): Constify 'expression' parameter. + (varobj_value_get_print_value): Return a std::string. + +2016-11-08 Pedro Alves + + * language.c (add_language): Use ui_file_as_string and adjust to + use std::string. + +2016-11-08 Pedro Alves + Tom Tromey + + * rust-lang.c (struct disr_info) : Now a std::string. + (rust_get_disr_info): Use ui_file_as_string and adjust to use + std::string. + (rust_val_print): Adjust to use std::string. + +2016-11-08 Pedro Alves + + * infrun.c (print_target_wait_results): Use ui_file_as_string and + std::string. + +2016-11-08 Pedro Alves + + * ada-lang.c (type_as_string): Use ui_file_as_string and return + std::string. + (type_as_string_and_cleanup): Delete. + (ada_lookup_struct_elt_type): Use type_as_string. + +2016-11-08 Pedro Alves + + * gdbarch.sh (verify_gdbarch): Use ui_file_as_string and + std::string. + * gdbarch.c: Regenerate. + +2016-11-08 Pedro Alves + + * c-exp.y (OPERATOR NEW): Adjust to use ui_file_as_string and + std::string. + +2016-11-08 Pedro Alves + + * c-lang.h (c_compute_program): Now returns std::string. + * compile/compile-internal.h (class compile_file_names): New + class. + * compile/compile-object-load.c (compile_object_load): Replace + object_file and source_file parameters with a compile_file_names + parameter. Adjust. + * compile-object-load.h: Include "compile-internal.h". + (compile_object_load): Replace object_file and source_file + parameters with a compile_file_names parameter. + * compile/compile-c-support.c (c_compute_program): Now returns a + std::string. Use ui_file_as_string. + * compile/compile.c (get_new_file_names): Remove parameters and + return a compile_file_names instead. + (compile_to_object): Now returns a compile_file_names. Use + ui_file_as_string. + (eval_compile_command): Use compile_file_names. + * language.h (struct language_defn) : Now + returns std::string. + +2016-11-08 Pedro Alves + + * cli/cli-setshow.c (do_show_command): Adjust to use + ui_file_as_string and std::string. + +2016-11-08 Pedro Alves + + * remote.c (escape_buffer): Use ui_file_as_string and return + std::string. + (putpkt_binary, read_frame): Adjust to use std::string. + +2016-11-08 Pedro Alves + + * python/py-arch.c (archpy_disassemble): Use ui_file_as_string and + std::string. + * python/py-breakpoint.c (bppy_get_commands): Use + ui_file_as_string and std::string. + * python/py-frame.c (frapy_str): Likewise. + * python/py-type.c (typy_str): Likewise. + * python/py-unwind.c (unwind_infopy_str): Likewise. + * python/py-value.c (valpy_str): Likewise. + +2016-11-08 Pedro Alves + + * printcmd.c (eval_command): Use ui_file_as_string and + std::string. + +2016-11-08 Pedro Alves + + * top.c (quit_confirm): Use ui_file_as_string and std::string. + +2016-11-08 Pedro Alves + + * gdbcmd.h (execute_command_to_string): Now returns std::string. + (lookup_struct_elt_type): Adjust to use std::string. + * top.c (execute_command_to_string): Use ui_file_as_string and + return std::string. + * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use + std::string. + * python/python.c (execute_gdb_command): Adjust to use + std::string. + +2016-11-08 Pedro Alves + + * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use + ui_file_as_string and adjust to use std::string. + * guile/scm-disasm.c (gdbscm_arch_disassemble): Likewise. + * guile/scm-frame.c (frscm_print_frame_smob): Likewise. + * guile/scm-type.c (tyscm_type_name): Use ui_file_as_string and + adjust to use std::string. Throw exception directly instead of + returning it in EXCP output parameter. + (tyscm_print_type_smob, gdbscm_type_print_name): Adjust to + tyscm_type_name interface change. + * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): + Use ui_file_as_string and std::string. + +2016-11-08 Pedro Alves + + * arm-tdep.c (_initialize_arm_tdep): Use ui_file_as_string and + std::string. + +2016-11-08 Pedro Alves + + * utils.c (error_stream): Use ui_file_as_string and std::string. + +2016-11-08 Pedro Alves + + * ui-out.c (ui_out_field_stream): Use ui_file_as_string. + +2016-11-08 Pedro Alves + + * ada-valprint.c (ada_print_floating): Use ui_file_as_string and + std::string. + +2016-11-08 Pedro Alves + + * xtensa-tdep.c (xtensa_verify_config): Use ui_file_as_string and + std::string. + +2016-11-08 Pedro Alves + + * dwarf2read.c (dwarf2_compute_name): Use ui_file_as_string and + std::string. + +2016-11-08 Pedro Alves + + * mi/mi-main.c (print_variable_or_computed): Constify 'expression' + parameter. + (mi_cmd_trace_frame_collected): Call encode_actions instead of + encode_actions_and_make_cleanup. Adjust to use std::vector. + * tracepoint.c (memrange_cmp): Delete. + (memrange_comp): New. + (memrange_sortmerge): Take a memrange vector as parameter instead + of a collection_list. Use std::sort instead of qsort. + (add_register): Now a method of collection_list. Adjust to m_ + prefix of data fields. + (add_memrange): Now a method of collection_list. Adjust to m_ + prefix of data fields. Adjust to use std::vector. + (collect_symbol): Now a method of collection_list. Adjust to m_ + prefix of data fields. + (do_collect_symbol): Adjust. Call add_wholly_collected instead of + accessing the vector directly. + (collection_list::add_wholly_collected): New. + (add_local_symbols): Now a method of collection_list. + (add_static_trace_data): Now a method of collection_list. Adjust + to use bool. + (clear_collection_list, do_clear_collection_list): Delete. + (init_collection_list): Delete. + (collection_list::collection_list): New. + (collection_list::~collection_list): New. + (stringify_collection_list): Rename to ... + (collection_list::stringify): ... this and adjust to being a + method of collection_list. Adjust to use of std::vector. + (append_exp): Now a method of collection_list. Use + ui_file_as_string. Adjust to std::vector. + (collection_list::finish): New. + (encode_actions_1): Adjust. + (encode_actions_and_make_cleanup): Rename to ... + (encode_actions)... this. No longer returns a cleanup. No longer + call init_collection_list nor install do_clear_collection_list + cleanups. Call collection_list::finish instead of + memrange_sortmerge directly. + (encode_actions_rsp): Adjust to call encode_actions instead of + encode_actions_and_make_cleanup. Adjust to method renames. + (add_aexpr): Now a method of collection_list. + * tracepoint.h: Include and . + (struct memrange): Add constructors. + (struct collection_list): Now a class. + (class collection_list) : New methods. + : Rename to ... + : ... this. + : Delete fields. + : New field. + : Delete fields. + : New field. + : Rename to ... + : ... this. Now a bool. + : Rename to ... + : ... this. Now a std::vector. + : Rename to ... + : ... this. Now a std::vector. + (encode_actions_and_make_cleanup): Delete declaration. + (encode_actions): New declaration. + +2016-11-08 Pedro Alves + + * ui-file.c (do_ui_file_as_string, ui_file_as_string): New + functions. + * ui-file.h: Include . + (ui_file_as_string): New declaration. + +2016-11-08 Pedro Alves + + * ada-lang.c (ada_read_renaming_var_value): Use expression_up. + (struct ada_catchpoint_location) : Now an + expression_up. + (ada_catchpoint_location_dtor): Reset excep_cond_expr instead of + using xfree. + (create_excep_cond_exprs): Use expression_up and gdb::move. + (allocate_location_exception): Use new instead of XNEW. + (should_stop_exception): Likewise. Adjust to use expression_up. + (create_ada_exception_catchpoint): Use new instead of XNEW. + * ax-gdb.c (agent_eval_command_one): Use expression_up instead of + cleanups. + (maint_agent_printf_command): Use expression_up. + * break-catch-sig.c (create_signal_catchpoint): Use new instead of + XNEW. + * break-catch-syscall.c (create_syscall_event_catchpoint): + Likewise. + * break-catch-throw.c (handle_gnu_v3_exceptions): Use new instead + of XCNEW. Use gdb::unique_ptr instead of cleanups. + * breakpoint.c (set_breakpoint_condition, update_watchpoint) + (parse_cmd_to_aexpr, watchpoint_check) + (bpstat_check_breakpoint_conditions, watchpoint_locations_match): + Adjust to use expression_up. + (init_bp_location): Adjust. + (free_bp_location): Use delete instead of xfree. + (set_raw_breakpoint_without_location, set_raw_breakpoint) + (add_solib_catchpoint, create_fork_vfork_event_catchpoint) + (new_single_step_breakpoint, create_breakpoint_sal): Use new + instead of XNEW. + (find_condition_and_thread): Adjust to use expression_up. + (create_breakpoint): Use new instead of XNEW. + (dtor_watchpoint): Don't xfree expression pointers, they're + unique_ptr's now. + (insert_watchpoint, remove_watchpoint): Adjust. + (watch_command_1): Use expression_up. Use new instead of XCNEW. + (catch_exec_command_1): Use new instead of XNEW. + (bp_location_dtor): Don't xfree expression pointers, they're + unique_ptr's now. + (base_breakpoint_allocate_location) + (strace_marker_create_breakpoints_sal): Use new instead of XNEW. + (delete_breakpoint): Use delete instead of xfree. + * breakpoint.h (struct bp_location) : Now an + unique_ptr instead of a raw pointer. + (struct watchpoint) : Likewise. + * cli/cli-script.c (execute_control_command): Use expression_up + instead of cleanups. + * dtrace-probe.c (dtrace_process_dof_probe): Use expression_up. + * eval.c (parse_and_eval_address, parse_and_eval_long) + (parse_and_eval, parse_to_comma_and_eval, parse_and_eval_type): + Use expression_up instead of cleanups. + * expression.h (expression_up): New typedef. + (parse_expression, parse_expression_with_language, parse_exp_1): + Change return type to expression_up. + * mi/mi-main.c (mi_cmd_data_evaluate_expression) + (print_variable_or_computed): Use expression_up. + * objc-lang.c (print_object_command): Use expression_up instead of + cleanups. + * parse.c (parse_exp_1, parse_exp_in_context) + (parse_exp_in_context_1, parse_expression) + (parse_expression_with_language): Return an expression_up instead + of a raw pointer. + (parse_expression_for_completion): Use expression_up. + * printcmd.c (struct display) : Now an expression_up instead + of a raw pointer. + (print_command_1, output_command_const, set_command, x_command): + Use expression_up instead of cleanups. + (display_command): Likewise. Use new instead of XNEW. + (free_display): Use delete instead of xfree. + (do_one_display): Adjust to use expression_up. + * remote.c (remote_download_tracepoint): Likewise. + * stack.c (return_command): Likewise. + * tracepoint.c (validate_actionline, encode_actions_1): Use + expression_up instead of cleanups. + * typeprint.c (whatis_exp, maintenance_print_type): Likewise. + * value.c (init_if_undefined_command): Likewise. + * varobj.c (struct varobj_root) : Now an expression_up + instead of a raw pointer. + (varobj_create): Adjust. + (varobj_set_value): Use an expression_up instead of cleanups. + (new_root_variable): Use new instead of XNEW. + (free_variable): Use delete instead of xfree. + (value_of_root_1): Use std::swap. + +2016-11-08 Pedro Alves + + * cli/cli-script.c (execute_control_command): Use std::string + instead of cleanups. + (locate_arg): Constify return type. + (insert_args): Constify paremeter. Simplify using std::string. + Return a std::string. + +2016-11-08 Pedro Alves + + * breakpoint.c (struct commands_info) : Constify. + (commands_command_1): Constify 'arg' parameter. Use std::string + and string_printf. + (commands_from_control_command): Constify 'arg' parameter. + (map_breakpoint_numbers): Constify 'args' parameter. + * breakpoint.h (commands_from_control_command): Constify 'arg' + parameter. + +2016-11-08 Pedro Alves + + * cli/cli-script.c (execute_control_command): Assume insert_args + never returns NULL. + (insert_args): Assume xmalloc never returns NULL. + +2016-11-08 Pedro Alves + + * Makefile.in (COMMON_OBS): Add utils-selftests.o. + * common/common-utils.c (string_printf): New function. + * common/common-utils.h: Include . + (string_printf): Declare. + * utils-selftests.c: New file. + +2016-11-08 Yao Qi + + * aarch64-tdep.c (aarch64_software_single_step): Return + VEC (CORE_ADDR) *. Return NULL instead of 0. Don't call + insert_single_step_breakpoint. + * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise. + (alpha_software_single_step): Likewise. + * alpha-tdep.h (alpha_software_single_step): Update declaration. + * arm-linux-tdep.c (arm_linux_software_single_step): Return + VEC (CORE_ADDR) *. Return NULL instead of 0. + * arm-tdep.c (arm_software_single_step): Return NULL instead of 0. + * arm-tdep.h (arm_software_single_step): Update declaration. + * breakpoint.c (insert_single_step_breakpoints): New function. + * breakpoint.h (insert_single_step_breakpoints): Declare. + * cris-tdep.c (cris_software_single_step): Return + VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint. + * gdbarch.sh (software_single_step): Change it to return + VEC (CORE_ADDR) *. + * gdbarch.c, gdbarch.h: Regenerated. + * infrun.c (maybe_software_singlestep): Adjust. + * mips-tdep.c (mips_deal_with_atomic_sequence): Return + VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint. + (micromips_deal_with_atomic_sequence): Likewise. + (deal_with_atomic_sequence): Likewise. + (mips_software_single_step): Likewise. + * mips-tdep.h (mips_software_single_step): Update declaration. + * moxie-tdep.c (moxie_software_single_step): Likewise. + * nios2-tdep.c (nios2_software_single_step): Likewise. + * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update + declaration. + * record-full.c (record_full_resume): Adjust. + (record_full_wait_1): Likewise. + * rs6000-aix-tdep.c (rs6000_software_single_step): Return + VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint. + * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Return + VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint. + * s390-linux-tdep.c (s390_software_single_step): Likewise. + * sparc-tdep.c (sparc_software_single_step): Likewise. + * spu-tdep.c (spu_software_single_step): Likewise. + * tic6x-tdep.c (tic6x_software_single_step): Likewise. + +2016-11-08 Yao Qi + + * arm-linux-tdep.c (arm_linux_software_single_step): Write + adjusted address back to vector. Call insert_single_step_breakpoint + in a new loop. + * arm-tdep.c (arm_software_single_step): Likewise. + +2016-11-08 Yao Qi + + * arm-linux-tdep.c (arm_linux_software_single_step): Don't + call arm_insert_single_step_breakpoint, call + insert_single_step_breakpoint instead. + * arm-tdep.c (arm_insert_single_step_breakpoint): Remove. + (arm_software_single_step): Don't call + arm_insert_single_step_breakpoint, call + insert_single_step_breakpoint instead. + * arm-tdep.h (arm_insert_single_step_breakpoint): Remove + declaration. + +2016-11-08 Cordian A. Daniluk + + PR breakpoints/20739 + * breakpoint.c (check_fast_tracepoint_sals): Don't print duplicate + 0x prefix. + +2016-11-08 Yao Qi + + * rust-lang.c (val_print_struct): Fix indentation. + +2016-11-08 Lionel Flandrin + + * remote.c (process_g_packet): Detect truncated registers in 'g' + packets and raise an error. + +2016-11-07 Doug Evans + + * guile/scm-value.c (gdbscm_value_field): Fix call to value_struct_elt. + * python/py-value.c (valpy_getitem): Ditto. + +2016-11-07 Doug Evans + + * i386-tdep.c (i386_gdbarch_init): Add comments. + +2016-11-07 Doug Evans + + * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate. + +2016-11-07 Doug Evans + + * configure.tgt (x86_64-*-elf*): Remove i386bsd-tdep.o. + +2016-11-04 Simon Marchi + + * maint.c (scoped_command_stats::scoped_command_stats): Fix typo. + * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise. + * ppcobsd-tdep.c (_initialize_ppcobsd_tdep): Likewise. + * ui-out.c (ui_out_new): Likewise. + * utils.c (init_page_info): Likewise. + (reset_prompt_for_continue_wait_time): Likewise. + * windows-nat.c (windows_init_thread_list): Likewise. + * xtensa-tdep.c (call0_analyze_prologue): Likewise. + +2016-10-29 Manish Goregaokar + + * rust-exp.y: Parse `sizeof(exp)` as `UNOP_SIZEOF`. + +2016-10-28 Manish Goregaokar + + * rust-lang.c (rust_union_is_untagged): Add function to check if a + union is an untagged union. + (rust_val_print): Handle printing of untagged union values. + (rust_print_type): Handle printing of untagged union types. + (rust_evaluate_subexp): Handle evaluating field access on untagged + unions. + +2016-10-27 Manish Goregaokar + + * rust-lang.c (rust_get_disr_info): Treat univariant enums without + discriminants as encoded enums with a real field. + * rust-lang.c (rust_evaluate_subexp): Handle field access on + encoded struct-like enums. + +2016-11-03 Yao Qi + + * Makefile.in (.y.c): Replace YY_NULL with YY_NULLPTR. + +2016-11-03 Yao Qi + Pedro Alves + + * aarch64-tdep.c (aarch64_default_breakpoint): Change it to + constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (aarch64_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * alpha-tdep.c (break_insn): Rename to alpha_break_insn. + Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (alpha_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * arc-tdep.c (arc_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Remove. + (struct bp_manipulation): New. + (SET_GDBARCH_BREAKPOINT_MANIPULATION): Remove. + (struct bp_manipulation_endian): New. + (BP_MANIPULATION): New. + (BP_MANIPULATION_ENDIAN): New. + * arm-tdep.c (arm_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * avr-tdep.c (avr_break_insn): Change it constexpr. + (avr_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * bfin-tdep.c (bfin_gdbarch_init): Likewise. + * cris-tdep.c (cris_gdbarch_init): Likewise. + * frv-tdep.c (breakpoint): Rename it to frv_break_insn, and + change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (frv_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * ft32-tdep.c (breakpoint): Rename it to ft32_break_insn and + change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (ft32_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * h8300-tdep.c (breakpoint): Rename it to h8300_break_insn. + Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (h8300_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * hppa-tdep.c (breakpoint): Rename it to h8300_break_insn. + Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (hppa_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * i386-tdep.c (break_insn): Rename it to i386_break_insn. + Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (i386_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * iq2000-tdep.c (iq2000_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * lm32-tdep.c (breakpoint): Rename it to lm32_break_insn and + change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (lm32_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * m32c-tdep.c (break_insn): Rename it to m32c_break_insn and change + its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (m32c_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * m32r-tdep.c (m32r_gdbarch_init): Likewise. + * m68hc11-tdep.c (breakpoint): Rename it to m68hc11_break_insn and + change its type to constexpr. + Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (m68hc11_gdbarch_init): Don't use SET_GDBARCH_BREAKPOINT_MANIPULATION. + * m68k-tdep.c (break_insn): Rename it to m68k_break_insn and change + its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (m68k_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * m88k-tdep.c (break_insn): Rename it to m88k_break_insn and change + its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (m88k_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * mep-tdep.c (breakpoint): Rename it to mep_break_insn and change + its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (mep_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * microblaze-tdep.c (break_insn): Rename it to + microblaze_break_insn and change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (microblaze_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * mips-tdep.c (mips_gdbarch_init): Likewise. + * mn10300-tdep.c (breakpoint): Rename it to mn10300_break_insn and + change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (mn10300_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * moxie-tdep.c (breakpoint): Rename it to moxie_break_insn and + change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (moxie_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * msp430-tdep.c (breakpoint): Rename it to msp430_break_insn + and change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (msp430_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * mt-tdep.c (mt_gdbarch_init): Likewise. + * nds32-tdep.c (break_insn): Rename it to nds32_break_insn + and change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (nds32_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * nios2-tdep.c (nios2_gdbarch_init): Likewise. + * rl78-tdep.c (breakpoint): Rename it to rl78_break_ins + and change its type to rl78_break_insn. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (rl78_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * rs6000-tdep.c (big_breakpoint): Change its type to + constexpr. + (little_breakpoint): Likewise. + Don't use GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN. + (rs6000_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * rx-tdep.c (breakpoint): Rename it to rx_break_insn and + change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (rx_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * s390-linux-tdep.c (breakpoint): Rename it to s390_break_insn + and change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION + (s390_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * score-tdep.c (score_gdbarch_init): Likewise. + * sh-tdep.c (sh_gdbarch_init): Likewise. + * sh64-tdep.c (sh64_gdbarch_init): Likewise. + * sparc-tdep.c (break_insn): Rename it to sparc_break_insn + and change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (sparc32_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * spu-tdep.c (breakpoint): Rename it to spu_break_insn and change + its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (spu_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * tic6x-tdep.c (tic6x_gdbarch_init): Likewise. + * tilegx-tdep.c (breakpoint): Rename it to tilegx_break_insn + and change its type to constexpr. Don't use + GDBARCH_BREAKPOINT_MANIPULATION. + (tilegx_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * v850-tdep.c (v850_gdbarch_init): Likewise. + * vax-tdep.c (break_insn): Rename it to vax_break_insn and + change its type to constexpr. + Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (vax_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * xstormy16-tdep.c (breakpoint): Rename it to + xstormy16_break_insn and change its type to constexpr. + Don't use GDBARCH_BREAKPOINT_MANIPULATION. + (xstormy16_gdbarch_init): Don't use + SET_GDBARCH_BREAKPOINT_MANIPULATION. + * xtensa-tdep.c (xtensa_gdbarch_init): Likewise. + +2016-11-03 Yao Qi + + * arm-tdep.c (arm_override_mode): Remove. + (arm_pc_is_thumb): Update. + (arm_insert_single_step_breakpoint): Update. + +2016-11-03 Yao Qi + + * arch-utils.c (default_breakpoint_kind_from_current_state): + New function. + * arch-utils.h (default_breakpoint_kind_from_current_state): + Declare. + * arm-tdep.c (arm_breakpoint_kind_from_current_state): New + function. + (arm_gdbarch_init): Call + set_gdbarch_breakpoint_kind_from_current_state. + * breakpoint.c (breakpoint_kind): Call + gdbarch_breakpoint_kind_from_current_state for single step + breakpoint. Update comments. + * gdbarch.sh (breakpoint_kind_from_current_state): New. + * gdbarch.c, gdbarch.h: Regenerate. + 2016-11-03 Yao Qi * arch-utils.c (default_breakpoint_from_pc): New function. @@ -2752,7 +5730,7 @@ 2016-07-06 Manish Goregaokar - * rust-lang.c (rust_subscript): Allow subscripting pointers + * rust-lang.c (rust_subscript): Allow subscripting pointers. 2016-07-05 Jan Kratochvil