From c113e7ff6176890ef6d73a23f0918aca98b8619f Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Sun, 1 Jan 2017 10:39:54 +0400 Subject: Rotate GDB main ChangeLog for 2017 This patch rotates the GDB main ChangeLog file as per our "Start of New Year Procedure". 2017-01-01 Joel Brobecker * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. --- gdb/ChangeLog-2016 | 10294 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 10294 insertions(+) create mode 100644 gdb/ChangeLog-2016 (limited to 'gdb/ChangeLog-2016') diff --git a/gdb/ChangeLog-2016 b/gdb/ChangeLog-2016 new file mode 100644 index 0000000..db6e913 --- /dev/null +++ b/gdb/ChangeLog-2016 @@ -0,0 +1,10294 @@ +2016-12-22 Doug Evans + + * infrun.c (set_step_over_info): Add comment. + +2016-12-22 Doug Evans + + * NEWS: Document new syntax for "mt print symbols", "mt print psymbols" + and "mt print msymbols" commands. + * psymtab.c (DEV_TTY): Delete. + (dump_psymtab_addrmap): Don't dump if psymtabs_addrmap is NULL. + (maintenance_print_psymbols): Rewrite for new syntax: + mt print psymbols [-objfile objfile] [-pc address] [outfile] + mt print psymbols [-objfile objfile] [-source source] [outfile] + (_initialize_psymtab): Update help text. + * symmisc.c (maintenance_print_symbols): Rewrite for new syntax: + mt print symbols [-pc address] [outfile] + mt print symbols [-objfile objfile] [-source source] [outfile] + (maintenance_print_msymbols): Rewrite for new syntax: + mt print msymbols [-objfile objfile] [outfile] + Only print symbols for the current progspace. + (_initialize_symmisc): Update help text. + +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. + * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): Remove. + (GDBARCH_BREAKPOINT_MANIPULATION): Don't use + GDBARCH_BREAKPOINT_FROM_PC. + (SET_GDBARCH_BREAKPOINT_MANIPULATION): Don't call + set_gdbarch_breakpoint_from_pc. + (default_breakpoint_from_pc): Remove declaration. + * gdbarch.sh (breakpoint_from_pc): Add its default implementation. + * gdbarch.c, gdbarch.h: Regenerate. + * arm-tdep.c: Don't use GDBARCH_BREAKPOINT_FROM_PC. + * arc-tdep.c, bfin-tdep.c, cris-tdep.c, iq2000-tdep.c: Likewise. + * m32r-tdep.c, mips-tdep.c, mt-tdep.c: Likewise. + * nios2-tdep.c, score-tdep.c, sh-tdep.c: Likewise. + * sh64-tdep.c, tic6x-tdep.c, v850-tdep.c, xtensa-tdep.c: Likewise. + +2016-11-03 Yao Qi + + * arch-utils.c (default_remote_breakpoint_from_pc): Remove. + * arch-utils.h (default_remote_breakpoint_from_pc): Remove. + * arm-tdep.c (arm_remote_breakpoint_from_pc): Remove. + (arm_gdbarch_init): Don't call + set_gdbarch_remote_breakpoint_from_pc. + * gdbarch.sh (remote_breakpoint_from_pc): Remove. + * gdbarch.c, gdbarch.h: Regenerate. + * mips-tdep.c (mips_remote_breakpoint_from_pc): Remove. + (mips_gdbarch_init): Don't call + set_gdbarch_remote_breakpoint_from_pc. + +2016-11-03 Yao Qi + + * breakpoint.h (struct bp_target_info) : Remove. + : New field. + Update all users. + +2016-11-03 Yao Qi + + * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Define + breakpoint_kind_from_pc and sw_breakpoint_from_kind. + (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): Likewise. + (SET_GDBARCH_BREAKPOINT_MANIPULATION): Call + set_gdbarch_breakpoint_kind_from_pc and + set_gdbarch_sw_breakpoint_from_kind. + * arm-tdep.c: Add comments. + * bfin-tdep.c: Likewise. + * breakpoint.c (breakpoint_kind): New function. + (insert_bp_location): Set target_info.placed_size and + target_info.placed_address. + (bkpt_insert_location): Likewise. + * cris-tdep.c: Add comments. + * gdbarch.sh (breakpoint_kind_from_pc): New. + (sw_breakpoint_from_kind): New. + * gdbarch.c, gdbarch.h: Regenerated. + * ia64-tdep.c (ia64_memory_insert_breakpoint): Don't set + bp_tgt->placed_size. + (ia64_memory_remove_breakpoint): Don't assert + bp_tgt->placed_size. + (ia64_breakpoint_kind_from_pc): New function. + (ia64_gdbarch_init): Install ia64_breakpoint_kind_from_pc. + * m32r-tdep.c (m32r_memory_insert_breakpoint): Don't set + bp_tgt->placed_size. + * mem-break.c (default_memory_insert_breakpoint): Don't set + bp_tgt->placed_size. Call gdbarch_sw_breakpoint_from_kind. + (default_memory_remove_breakpoint): Call + gdbarch_sw_breakpoint_from_kind. + (memory_validate_breakpoint): Don't check bp_tgt->placed_size. + * mips-tdep.c: Add comments. + * mt-tdep.c: Likewise. + * nios2-tdep.c: Likewise. + * record-full.c (record_full_insert_breakpoint): Don't call + gdbarch_breakpoint_from_pc. Don't set bp_tgt->placed_address + and bp_tgt->placed_size. + * remote.c (remote_insert_breakpoint): Don't call + gdbarch_remote_breakpoint_from_pc. Use bp_tgt->placed_size. + Don't set bp_tgt->placed_address and bp_tgt->placed_size. + (remote_insert_hw_breakpoint): Likewise. + * score-tdep.c: Likewise. + * sh-tdep.c: Likewise. + * tic6x-tdep.c: Likewise. + * v850-tdep.c: Likewise. + * xtensa-tdep.c: Likewise. + +2016-11-03 Yao Qi + + * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): New macro. + (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): New macro. + * arm-tdep.c (arm_breakpoint_from_pc): Remove. + (arm_breakpoint_kind_from_pc): New function. + (arm_sw_breakpoint_from_kind): New function. + (arm_breakpoint_from_pc): Call arm_breakpoint_kind_from_pc + and arm_sw_breakpoint_from_kind. + Use GDBARCH_BREAKPOINT_FROM_PC. + (arm_remote_breakpoint_from_pc): Call + arm_breakpoint_kind_from_pc. + (arm_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc + with SET_GDBARCH_BREAKPOINT_MANIPULATION. + * arc-tdep.c: Likewise. + * bfin-tdep.c: Likewise. + * cris-tdep.c: Likewise. + * iq2000-tdep.c: Likewise. + * m32r-tdep.c: Likewise. + * mips-tdep.c: Likewise. + * mt-tdep.c: Likewise. + * nios2-tdep.c: Likewise. + * rs6000-tdep.c: Likewise. + * score-tdep.c: Likewise. + * sh-tdep.c: Likewise. + * sh64-tdep.c: Likewise. + * tic6x-tdep.c: Likewise. + * v850-tdep.c: Likewise. + * xtensa-tdep.c: Likewise. + +2016-11-03 Yao Qi + + * mips-tdep.c (mips_breakpoint_kind): New enum. + (mips_breakpoint_from_pc): Use it. + (mips_remote_breakpoint_from_pc): Likewise. + +2016-11-03 Yao Qi + + * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): New macro. + (SET_GDBARCH_BREAKPOINT_MANIPULATION): New macro. + aarch64-tdep.c (aarch64_breakpoint_from_pc): Remove. Use + GDBARCH_BREAKPOINT_MANIPULATION. + (aarch64_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc + with SET_GDBARCH_BREAKPOINT_MANIPULATION. + * alpha-tdep.c: Likewise. + * avr-tdep.c: Likewise. + * frv-tdep.c: Likewise. + * ft32-tdep.c: Likewise. + * h8300-tdep.c: Likewise. + * hppa-tdep.c: Likewise. + * i386-tdep.c: Likewise. + * lm32-tdep.c: Likewise. + * m32c-tdep.c: Likewise. + * m68hc11-tdep.c: Likewise. + * m68k-tdep.c: Likewise. + * m88k-tdep.c: Likewise. + * mep-tdep.c: Likewise. + * microblaze-tdep.c: Likewise. + * mn10300-tdep.c: Likewise. + * moxie-tdep.c: Likewise. + * msp430-tdep.c: Likewise. + * rl78-tdep.c: Likewise. + * rx-tdep.c: Likewise. + * s390-linux-tdep.c: Likewise. + * sparc-tdep.c: Likewise. + * spu-tdep.c: Likewise. + * tilegx-tdep.c: Likewise. + * vax-tdep.c: Likewise. + * xstormy16-tdep.c: Likewise. + +2016-11-03 Yao Qi + + * mem-break.c (default_memory_insert_breakpoint): Don't check + 'bp' against NULL. + * microblaze-linux-tdep.c (microblaze_linux_memory_remove_breakpoint): + Likewise. + * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise. + +2016-11-02 Tom Tromey + + * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type): Rename + from impl_get_base_type. Rewrite. + (struct dwarf_expr_baton): Remove. + (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value): Save and + restore more fields. + (symbol_needs_eval_context::get_frame_pc): New method. + * dwarf2expr.h (dwarf_expr_context::get_base_type): Now public, + virtual. + (dwarf_expr_context::impl_get_base_type): Remove. + * dwarf2expr.c (dwarf_expr_context::get_base_type): Remove. + +2016-10-31 Maciej W. Rozycki + + * configure.ac : Remove _KMEMUSER + workaround. + * configure: Regenerate. + * config.in: Regenerate. + +2016-10-31 Maciej W. Rozycki + + * mips-tdep.c (mips_r3041_reg_names): Remove. + (mips_breakpoint_from_pc): Remove IDT and PMON breakpoint + encodings. + +2016-10-31 Maciej W. Rozycki + + * defs.h (gdb_osabi): Remove GDB_OSABI_IRIX enum value. + * osabi.c (gdb_osabi_names): Remove "Irix" entry. + * mips-tdep.c (mips_irix_reg_names): Remove. + (mips_register_type): Remove GDB_OSABI_IRIX code. + (mips_pseudo_register_type): Likewise. + (mips_breakpoint_from_pc): Likewise. + (mips_gdbarch_init): Likewise. + +2016-10-29 Pedro Alves + + * NEWS: Clarify C++ requirement. + +2016-10-29 Pedro Alves + + * NEWS: Adjust to mention C++11 requirement. + +2016-10-29 Eli Zaretskii + + * NEWS: Mention support for redirection on MS-Windows. + + * windows-nat.c (redir_open, redir_set_redirection) + (redirect_inferior_handles) [!__CYGWIN__]: New functions. + (windows_create_inferior) [!__CYGWIN__]: Use + 'redirect_inferior_handles' to redirect standard handles of the + debuggee if the command line requests that. + +2016-10-28 Pedro Alves + + * Makefile.in (CXX_DIALECT): Get from configure. + (COMPILE.pre, CC_LD): Append $(CXX_DIALECT). + (FLAGS_TO_PASS): Pass CXX_DIALECT. + * acinclude.m4: Include ax_cxx_compile_stdcxx.m4. + * ax_cxx_compile_stdcxx.m4: Add FSF copyright header. Set and + AC_SUBST CXX_DIALECT instead of changing CXX/CXXCPP. + * configure.ac: Call AX_CXX_COMPILE_STDCXX. + * config.in: Regenerate. + * configure: Regenerate. + +2016-10-28 Pedro Alves + + * ax_cxx_compile_stdcxx.m4: New file. + +2016-10-28 Pedro Alves + + * maint.c (scoped_command_stats::scoped_command_stats): Clear + m_space_enabled, m_time_enabled and m_symtab_enabled. + +2016-10-28 Markus Metzger + + * btrace.c (bfun_s): New typedef. + (ftrace_update_caller): Print caller in debug dump. + (ftrace_get_caller, ftrace_match_backtrace, ftrace_fixup_level) + (ftrace_compute_global_level_offset, ftrace_connect_bfun) + (ftrace_connect_backtrace, ftrace_bridge_gap, btrace_bridge_gaps): New. + (btrace_compute_ftrace_bts): Pass vector of gaps. Collect gaps. + (btrace_compute_ftrace_pt): Likewise. + (btrace_compute_ftrace): Split into this, ... + (btrace_compute_ftrace_1): ... this, and ... + (btrace_finalize_ftrace): ... this. Call btrace_bridge_gaps. + +2016-10-28 Markus Metzger + + * btrace.c (ftrace_new_return): Start from the previous function's + level if we can't find a matching call for a return. + +2016-10-28 Markus Metzger + + * btrace.c (ftrace_update_function): Update tail call heuristic. + +2016-10-28 Markus Metzger + + * btrace.c (btrace_compute_ftrace_bts, ftrace_add_pt): Allow + leading gaps. + * record-btrace.c (record_btrace_single_step_forward) + (record_btrace_single_step_backward): Jump back to last + instruction if step ends at a gap. + (record_btrace_goto_begin): Skip gaps. + +2016-10-28 Markus Metzger + + * btrace.c (ftrace_add_pt): Fix gap indication. Add warning for non- + contiguous trace and overflow. Rephrase trace decode warning and print + instruction number. Remove dead gaps warning. + (btrace_compute_ftrace_bts): Rephrase warnings and print instruction + number. + +2016-10-25 Sandra Loosemore + Luis Machado + Pedro Alves + + PR gdb/20569 + * exceptions.c (exception_print_same): Moved here from exec.c. + * exceptions.h (exception_print_same): Declare. + * exec.h: Include "symfile-add-flags.h". + (try_open_exec_file): New declaration. + * exec.c (exception_print_same): Moved to exceptions.c. + (try_open_exec_file): New function. + (exec_file_locate_attach): Rename exec_file and full_exec_path + variables to avoid confusion between target and host pathnames. + Move pathname processing logic to exec_file_find. Do not return + early if pathname lookup fails; Call try_open_exec_file. + * infrun.c (follow_exec): Split and rename execd_pathname variable + to avoid confusion between target and host pathnames. Warn if + pathname lookup fails. Pass target pathname to + target_follow_exec, not hostpathname. Call try_open_exec_file. + * main.c (symbol_file_add_main_adapter): New function. + (captured_main_1): Use it. + * solib-svr4.c (open_symbol_file_object): Adjust to pass + symfile_add_flags to symbol_file_add_main. + * solib.c (exec_file_find): Incorporate fallback logic for relative + pathnames formerly in exec_file_locate_attach. + * symfile.c (symbol_file_add_main, symbol_file_add_main_1): + Replace 'from_tty' parameter with a symfile_add_file. + (symbol_file_command): Adjust to pass symfile_add_flags to + symbol_file_add_main. + * symfile.h (symbol_file_add_main): Replace 'from_tty' parameter + with a symfile_add_file. + +2016-10-26 Pedro Alves + + * coffread.c (coff_symfile_read): Use symfile_add_flags. + * dbxread.c (dbx_symfile_read): Ditto. + * elfread.c (elf_symfile_read): Ditto. + * inferior.h: Include symfile-add-flags.h. + (struct inferior) : Now symfile_add_flags. + * machoread.c (macho_add_oso_symfile, macho_symfile_read_all_oso) + (macho_symfile_read, mipscoff_symfile_read): Use + symfile_add_flags. + * objfile-flags.h: New file. + * objfiles.c (allocate_objfile): Use objfile_flags. + * objfiles.h: Include objfile-flags.h. + (struct objfile) : Now an objfile_flags. + (OBJF_REORDERED, OBJF_SHARED, OBJF_READNOW, OBJF_USERLOADED) + (OBJF_PSYMTABS_READ, OBJF_MAINLINE, OBJF_NOT_FILENAME): Delete. + Converted to an enum-flags in objfile-flags.h. + (allocate_objfile): Use objfile_flags. + * python/py-objfile.c (objfpy_add_separate_debug_file): Remove + unnecessary local. + * solib.c (solib_read_symbols, solib_add) + (reload_shared_libraries_1): Use symfile_add_flags. + * solib.h: Include "symfile-add-flags.h". + (solib_read_symbols): Use symfile_add_flags. + * symfile-add-flags.h: New file. + * symfile-debug.c (debug_sym_read): Use symfile_add_flags. + * symfile-mem.c (symbol_file_add_from_memory): Use + symfile_add_flags. + * symfile.c (read_symbols, syms_from_objfile_1) + (syms_from_objfile, finish_new_objfile): Use symfile_add_flags. + (symbol_file_add_with_addrs): Use symfile_add_flags and + objfile_flags. + (symbol_file_add_separate): Use symfile_add_flags. + (symbol_file_add_from_bfd, symbol_file_add): Use symfile_add_flags + and objfile_flags. + (symbol_file_add_main_1): : Use objfile_flags. Fix add_flags vs + flags confusion. + (symbol_file_command): Use objfile_flags. + (add_symbol_file_command): Use symfile_add_flags and + objfile_flags. + (clear_symtab_users): Use symfile_add_flags. + * symfile.h: Include "symfile-add-flags.h" and "objfile-flags.h". + (struct sym_fns) : Use symfile_add_flags. + (clear_symtab_users): Use symfile_add_flags. + (enum symfile_add_flags): Delete, moved to symfile-add-flags.h and + converted to enum-flags. + (symbol_file_add, symbol_file_add_from_bfd) + (symbol_file_add_separate): Use symfile_add_flags. + * xcoffread.c (xcoff_initial_scan): Use symfile_add_flags. + +2016-10-26 Pedro Alves + + * inferior.h (ALL_NON_EXITED_INFERIORS): New macro. + * infrun.c (do_target_resume): Call target_commit_resume. + (proceed): Defer target_commit_resume while looping over threads, + resuming them. Call target_commit_resume at the end. + * record-btrace.c (record_btrace_commit_resume): New function. + (init_record_btrace_ops): Install it as to_commit_resume method. + * record-full.c (record_full_commit_resume): New function. + (record_full_wait_1): Call the beneath target's to_commit_resume + method. + (init_record_full_ops): Install record_full_commit_resume as + to_commit_resume method. + * remote.c (struct private_thread_info) : New fields. + (remote_add_thread): Set the new thread's vcont_resumed flag. + (demand_private_info): Delete. + (get_private_info_thread, get_private_info_ptid): New functions. + (remote_update_thread_list): Adjust. + (process_initial_stop_replies): Clear the thread's vcont_resumed + flag. + (remote_resume): If connected in non-stop mode, record the resume + request and return early. + (struct private_inferior): New. + (struct vcont_builder): New. + (vcont_builder_restart, vcont_builder_flush) + (vcont_builder_push_action): New functions. + (MAX_ACTION_SIZE): New macro. + (remote_commit_resume): New function. + (thread_pending_fork_status, is_pending_fork_parent_thread): New + functions. + (check_pending_event_prevents_wildcard_vcont_callback) + (check_pending_events_prevent_wildcard_vcont): New functions. + (process_stop_reply): Adjust. Clear the thread's vcont_resumed + flag. + (init_remote_ops): Install remote_commit_resume. + * target-delegates.c: Regenerate. + * target.c (defer_target_commit_resume): New global. + (target_commit_resume, make_cleanup_defer_target_commit_resume): + New functions. + * target.h (struct target_ops) : New field. + (target_resume): Update comments. + (target_commit_resume): New declaration. + +2016-10-26 Pedro Alves + + * inferior.c (exit_inferior_1): Free 'priv'. + +2016-10-26 Pedro Alves + + * remote.c (remote_resume_with_hc): New function, factored out + from ... + (remote_resume): ... this. Always try vCont first. + (remote_vcont_resume): Rename to ... + (remote_resume_with_vcont): ... this. Bail out if execution + direction is reverse. + +2016-10-25 Pedro Alves + + * dwarf2expr.h (struct dwarf_expr_context) <~dwarf_expr_context>: + Make virtual. + +2016-10-25 Rainer Orth + + PR build/20712 + * defs.h: Remove obsolete comment + (atof): Remove. + * procfs.c (do_destroy_procinfo_cleanup): Add cast. + (sysset_t_alloc): Likewise. + (proc_set_traced_sysentry): Likewise. + (proc_set_traced_sysexit): Likewise. + [!PIOCLSTATUS && NEW_PROC_API] (do_closedir_cleanup): Likewise. + (proc_get_LDT_entry): Initiate cleanups before returns. + (procfs_wait): Use GDB_SIGNAL_0. + (procfs_corefile_thread_callback): Add cast. + * sol-thread.c (td_log_ftype, td_ta_new_ftype, td_ta_delete_ftype) + (td_init_ftype, td_ta_get_ph_ftype, td_ta_get_nthreads_ftype) + (td_ta_tsd_iter_ftype, td_ta_thr_iter_ftype) + (td_thr_validate_ftype, td_thr_tsd_ftype, td_thr_get_info_ftype) + (td_thr_getfpregs_ftype, td_thr_getxregsize_ftype) + (td_thr_getxregs_ftype, td_thr_sigsetmask_ftype) + (td_thr_setprio_ftype, td_thr_setsigpending_ftype) + (td_thr_setfpregs_ftype, td_thr_setxregs_ftype) + (td_ta_map_id2thr_ftype, td_ta_map_lwp2thr_ftype) + (td_thr_getgregs_ftype, td_thr_setgregs_ftype): New typedefs. + (p_td_log, p_td_ta_new, p_td_ta_delete, p_td_init, p_td_ta_get_ph) + (p_td_ta_get_nthreads, p_td_ta_tsd_iter, p_td_ta_thr_iter) + (p_td_thr_validate, p_td_thr_tsd, p_td_thr_get_info) + (p_td_thr_getfpregs, p_td_thr_getxregsize, p_td_thr_getxregs) + (p_td_thr_sigsetmask, p_td_thr_setprio, p_td_thr_setsigpending) + (p_td_thr_setfpregs, p_td_thr_setxregs, p_td_ta_map_id2thr) + (p_td_ta_map_lwp2thr, p_td_thr_getgregs, p_td_thr_setgregs): Use them. + (ps_pdread): Add cast. + (ps_ptread): Likewise. + (resolve): Likewise. + * top.c (gdb_safe_append_history): Print pid_t as long. + +2016-10-25 Pedro Alves + + * common/common-defs.h (__STDC_FORMAT_MACROS): Define. + +2016-10-25 Pedro Alves + + * common/new-op.c: Add comment about -fsanitize=address. + +2016-10-25 Pedro Alves + + * common/common-defs.h (__STDC_CONSTANT_MACROS) + (__STDC_LIMIT_MACROS): Define. + +2016-10-25 Yao Qi + + PR gdb/20716 + * common/new-op.c (__has_feature): New macro. + Don't override operator new if asan is used. + +2016-10-24 Luis Machado + + * exec.c (exec_file_locate_attach): Prevent NULL pointer dereference + when duplicating a string. + +2016-10-24 Luis Machado + + * exec.c (exception_print_same): Fix string comparison to use + statically-allocated ones. + +2016-10-21 Tom Tromey + + * dwarf2expr.h (class dwarf_expr_context) + : + Now pure virtual. + * dwarf2-frame.c (class dwarf_expr_executor) + : + New methods. + : New method. + +2016-10-21 Tom Tromey + + * minsyms.h (minimal_symbol_reader::record_full): "copy_name" now + a bool. + (record, record_with_info): Update. + * minsyms.c (record): Fix indentation. + (record_full): Fix indentation. Update for type change. + * elfread.c (record_minimal_symbol): "copy_name" now a bool. + (elf_symtab_read): "copy_names" now a bool. + (elf_rel_plt_read, elf_read_minimal_symbols): Update. + +2016-10-21 Tom Tromey + + * main.c: Include . + (cmdarg_s): Remove typedef. Don't define VEC. + (captured_main_1): Use vector, not VEC. Remove cleanups. + +2016-10-21 Tom Tromey + + * dwarf2loc.c (struct dwarf_expr_context_funcs): Don't declare. + (dwarf_expr_read_addr_from_reg, dwarf_expr_get_reg_value) + (dwarf_expr_read_mem, dwarf_expr_frame_base): Rename; turn into + methods. + (get_frame_pc_for_per_cu_dwarf_call): New function. + (dwarf_expr_frame_cfa, dwarf_expr_frame_pc) + (dwarf_expr_tls_address): Rename; turn into methods. + (per_cu_dwarf_call): Remove arguments. Use + get_frame_pc_for_per_cu_dwarf_call. + (dwarf_evaluate_loc_desc): New class. + (dwarf_expr_dwarf_call, dwarf_expr_context) + (dwarf_expr_push_dwarf_reg_entry_value) + (dwarf_expr_get_addr_index, dwarf_expr_get_obj_addr): Rename; turn + into methods. + (dwarf_expr_ctx_funcs): Remove. + (dwarf2_evaluate_loc_desc_full): Update. + (dwarf2_locexpr_baton_eval): Update. + (symbol_needs_eval_context): New class. + (symbol_needs_read_addr_from_reg, symbol_needs_get_reg_value) + (symbol_needs_read_mem, symbol_needs_frame_base) + (symbol_needs_frame_cfa, symbol_needs_tls_address) + (symbol_needs_dwarf_call, needs_dwarf_reg_entry_value): Rename; + turn into methods. + (needs_get_addr_index, needs_get_obj_addr): Remove; turn into + methods. + (symbol_needs_ctx_funcs): Remove. + (dwarf2_loc_desc_get_symbol_read_needs): Update. + * dwarf2expr.h (struct dwarf_expr_context_funcs): Remove; turn + contents into methods. + (struct dwarf_expr_context) : Remove. + : Declare new methods. + (ctx_no_get_frame_base, ctx_no_get_frame_cfa) + (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call) + (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value) + (ctx_no_get_addr_index): Don't declare. + * dwarf2expr.c (get_base_type): Use impl_get_base_type. + (execute_stack_op): Update. + (ctx_no_get_frame_base, ctx_no_get_frame_cfa) + (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call) + (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value) + (ctx_no_get_addr_index): Remove; now methods on + dwarf_expr_context. + * dwarf2-frame.c (read_addr_from_reg): Take a frame_info, not a + baton. + (class dwarf_expr_executor): New class. + (get_reg_value, read_mem): Rename, turn into methods. + (execute_stack_op): Use dwarf_expr_executor. + +2016-10-21 Tom Tromey + + * dwarf2loc.c (per_cu_dwarf_call) + (dwarf_expr_push_dwarf_reg_entry_value) + (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval) + (needs_dwarf_reg_entry_value) + (dwarf2_loc_desc_get_symbol_read_needs): Update. + * dwarf2expr.h (dwarf_expr_context) : New method declarations. + (dwarf_expr_push_address, dwarf_expr_eval, dwarf_expr_fetch) + (dwarf_expr_fetch_address, dwarf_expr_fetch_in_stack_memory): + Don't declare. + * dwarf2expr.c (address_type, grow_stack, push, push_address) + (pop, fetch, fetch_address, fetch_in_stack_memory) + (stack_empty_p, add_piece, eval, get_base_type) + (execute_stack_op): Rename. Turn into methods. + * dwarf2-frame.c (execute_stack_op): Update. + +2016-10-21 Tom Tromey + + * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Stack-allocate + dwarf_expr_context. Remove cleanups. + (dwarf2_locexpr_baton_eval) + (dwarf2_loc_desc_get_symbol_read_needs): Likewise. + * dwarf2expr.h (dwarf_expr_context, ~dwarf_expr_context): Add + constructors and destructors. + (new_dwarf_expr_context, free_dwarf_expr_context) + (make_cleanup_free_dwarf_expr_context): Don't declare. + * dwarf2-frame.c (execute_stack_op): Stack-allocate + dwarf_expr_context. Remove cleanups. + (dwarf_expr_context): Rename from new_dwarf_expr_context. Turn + into constructor. + (free_dwarf_expr_context, free_dwarf_expr_context_cleanup): + Remove. + (~dwarf_expr_context): Rename from + make_cleanup_free_dwarf_expr_context. Turn into destructor. + +2016-10-21 Tom Tromey + + * dwarf2loc.c: Include . + (read_pieced_value, write_pieced_value) + (dwarf2_compile_expr_to_ax): Use std::vector. + +2016-10-21 Tom Tromey + + * stack.c (print_stack_frame_to_uiout): Use scoped_restore. + * ui-out.c (make_cleanup_restore_current_uiout) + (restore_current_uiout_cleanup): Remove. + * infrun.c (print_stop_event): Use scoped_restore. + * ui-out.h (make_cleanup_restore_current_uiout): Don't declare. + +2016-10-21 Tom Tromey + + * elfread.c (elf_read_minimal_symbols): Use gdb::unique_ptr. + +2016-10-21 Tom Tromey + + * cli/cli-dump.c (dump_memory_to_file): Use gdb::unique_ptr. + (restore_binary_file): Likewise. + +2016-10-21 Tom Tromey + + * maint.h (scoped_command_stats): New class. + (make_command_stats_cleanup): Don't declare. + * maint.c (struct cmd_stats): Remove. + (~scoped_command_stats): Rename from report_command_stats. Now a + destructor. + (scoped_command_stats): Rename from make_command_stats_cleanup. + Now a constructor. + * main.c (captured_main_1): New function. Use + scoped_command_stats. + (captured_main): Call captured_main_1. + * event-top.c (command_handler): Use scoped_command_stats. + +2016-10-21 Tom Tromey + + * mi/mi-main.c (mi_cmd_data_read_memory): Use gdb::unique_ptr. + Remove some cleanups. + +2016-10-21 Tom Tromey + + * tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received) + (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) + (tui_on_no_history, tui_on_user_selected_context_changed): + Update. + * top.h (switch_thru_all_uis): New class. + (SWITCH_THRU_ALL_UIS): Rewrite. + (make_cleanup_restore_current_ui, switch_thru_all_uis_init) + (switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't + declare. + * mi/mi-interp.c (mi_new_thread, mi_thread_exit) + (mi_record_changed, mi_inferior_added, mi_inferior_appeared) + (mi_inferior_exit, mi_inferior_removed, mi_on_signal_received) + (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited) + (mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed) + (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified) + (mi_breakpoint_created, mi_breakpoint_deleted) + (mi_breakpoint_modified, mi_output_running_pid, mi_on_resume) + (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed) + (mi_memory_changed, mi_user_selected_context_changed): Update. + * infrun.c (all_uis_check_sync_execution_done) + (all_uis_on_sync_execution_starting, normal_stop): Update. + * event-top.c (restore_ui_cleanup) + (make_cleanup_restore_current_ui, switch_thru_all_uis_init) + (switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove. + * cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received) + (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited) + (cli_on_no_history, cli_on_user_selected_context_changed): + Update. + * breakpoint.c (watchpoint_check): Update. + +2016-10-21 Tom Tromey + + * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab): Add + "reader" argument. Update. + (xcoff_initial_scan): Update. + * symfile.h (mdebug_build_psymtabs): Add "reader" argument. + * mipsread.c (mipscoff_symfile_read): Update. + (read_alphacoff_dynamic_symtab): Add "reader" argument. Update. + * minsyms.h (minimal_symbol_reader) : + Declare. + : New members. + : New function, renamed from + prim_record_minimal_symbol_and_info. + * minsyms.c (msym_bunch, msym_bunch_index, msym_count): Remove + globals. + (minimal_symbol_reader): Initialize new members. + (minimal_symbol_reader::record): Renamed from + prim_record_minimal_symbol. + (minimal_symbol_reader::record_full): Renamed from + prim_record_minimal_symbol_full. + (prim_record_minimal_symbol_and_info): Move to minsyms.h; rename. + * mdebugread.c (mdebug_build_psymtabs, parse_partial_symbols) + (record_minimal_symbol): Add "reader" argument. Update. + (elfmdebug_build_psymtabs): Update. + * machoread.c (macho_symtab_add_minsym, macho_symtab_read): Add + "reader" argument. Update. + (macho_symfile_read): Update. + * elfread.c (record_minimal_symbol, elf_symtab_read) + (elf_rel_plt_read): Add "reader" argument. Update. + (elf_read_minimal_symbols): Update. + * dbxread.c (record_minimal_symbol, read_dbx_dynamic_symtab) + (read_dbx_symtab): Add "reader" argument. Update. + (dbx_symfile_read): Update. + * coffread.c (record_minimal_symbol, coff_symtab_read): Add + "reader" argument. Update. + (coff_symfile_read): Update. + * coff-pe-read.h (read_pe_exported_syms): Add "reader" argument. + * coff-pe-read.c (add_pe_exported_sym, add_pe_forwarded_sym) + (read_pe_exported_syms): Add "reader" argument. Update. + +2016-10-21 Tom Tromey + + * xcoffread.c (xcoff_initial_scan): Update. + * mipsread.c (mipscoff_symfile_read): Update. + * minsyms.c (minimal_symbol_reader): Add obj argument. + Initialize member. + (install): Remove objfile argument. Update. + * mdebugread.c (elfmdebug_build_psymtabs): Update. + * machoread.c (macho_symfile_read): Update. + * elfread.c (elf_read_minimal_symbols): Update. + * dbxread.c (dbx_symfile_read): Update. + * coffread.c (coff_symfile_read): Update. + * minsyms.h (minimal_symbol_reader): Add m_objfile member. + (constructor): Add objfile argument. + (minimal_symbol_reader::install): Remove objfile argument. + +2016-10-21 Tom Tromey + + * xcoffread.c (xcoff_initial_scan): Use + minimal_symbol_reader. + * mipsread.c (mipscoff_symfile_read): Use + minimal_symbol_reader. + * minsyms.h (minimal_symbol_reader): New class. + (init_minimal_symbol_collection) + (make_cleanup_discard_minimal_symbols, install_minimal_symbols): + Don't declare. + * minsyms.c (minimal_symbol_reader): Renamed from + init_minimal_symbol_collection, turned into constructor. + (~minimal_symbol_reader): Renamed from + do_discard_minimal_symbols_cleanup, turned into destructor. + (make_cleanup_discard_minimal_symbols): Remove. + (minimal_symbol_reader::install): Rename form + install_minimal_symbols. + * mdebugread.c (elfmdebug_build_psymtabs): Use + minimal_symbol_reader. + * machoread.c (macho_symfile_read): Use + minimal_symbol_reader. + * elfread.c (elf_read_minimal_symbols): Use + minimal_symbol_reader. + * dbxread.c (dbx_symfile_read): Use minimal_symbol_reader. + * coffread.c (coff_symfile_read): Use + minimal_symbol_reader. + +2016-10-21 Tom Tromey + + * top.c (new_ui_command, wait_sync_command_done) + (gdb_readline_wrapper): Use scoped_restore. + * infrun.c (fetch_inferior_event): Use scoped_restore. + * infcall.c (call_thread_fsm_should_stop): Use scoped_restore. + +2016-10-21 Tom Tromey + + * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file) + (struct restore_ui_file_closure): Remove. + * utils.h (make_cleanup_restore_ui_file): Don't declare. + * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use + scoped_restore. + * top.c (execute_command_to_string): Use scoped_restore. + +2016-10-21 Tom Tromey + + * common/scoped_restore.h: New file. + * utils.h: Include scoped_restore.h. + * top.c (execute_command_to_string): Use scoped_restore. + * python/python.c (python_interactive_command): Use + scoped_restore. + (python_command, execute_gdb_command): Likewise. + * printcmd.c (do_one_display): Use scoped_restore. + * mi/mi-main.c (exec_continue): Use scoped_restore. + * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore. + * linux-fork.c (checkpoint_command): Use scoped_restore. + * infrun.c (restore_execution_direction): Remove. + (fetch_inferior_event): Use scoped_restore. + * compile/compile.c (compile_file_command): Use + scoped_restore. + (compile_code_command, compile_print_command): Likewise. + * cli/cli-script.c (execute_user_command): Use + scoped_restore. + (while_command, if_command, script_from_file): Likewise. + * arm-tdep.c (arm_insert_single_step_breakpoint): Use + scoped_restore. + +2016-10-21 Tom Tromey + + * xcoffread.c (read_xcoff_symtab): Make "filestring" const. + +2016-10-21 Sangamesh Mallayya + Ulrich Weigand + + * xcoffread.c (read_xcoff_symtab): Make name of current file as + pst->filename instead of _start_ in AIX. + +2016-10-21 Philipp Rudo + + * solist.h (struct target_so_ops): Delete special_symbol_handling + hook. + * solib.c (solib_add, reload_shared_libraries): Adjust. + * solib-aix.c (solib_aix_special_symbol_handling): Delete + (_initialize_solib_aix): Adjust + * solib-darwin.c (darwin_special_symbol_handling): Delete + (_initialize_darwin_solib): Adjust + * solib-dsbt.c (dsbt_special_symbol_handling): Delete + (_initialize_dsbt_solib): Adjust + * solib-frv.c (frv_special_symbol_handling): Delete + (_initialize_frv_solib): Adjust + * solib-svr4.c (svr4_special_symbol_handling): Delete + (_initialize_svr4_solib): Adjust + * solib-target.c (solib_target_special_symbol_handling): Delete + (_initialize_solib_target): Adjust + +2016-10-20 Yao Qi + + * configure.tgt: Don't configure if target is *-*-vxworks*. + +2016-10-19 Pedro Alves + + * config.in: Regenerate. + +2016-10-18 Pedro Alves + + * common/common-defs.h (__STDC_CONSTANT_MACROS) + (__STDC_LIMIT_MACROS): Delete. + +2016-10-18 Pedro Alves + + * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to + 2692e23a48e21f6daa029e8af9f1a143b7532f47. + * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: + Regenerate. + * gnulib/import/Makefile: Update. + * gnulib/import/alloca: Update. + * gnulib/import/basename-lgpl: Update. + * gnulib/import/canonicalize-lgpl: Update. + * gnulib/import/config: Update. + * gnulib/import/dirent: Update. + * gnulib/import/dirfd: Update. + * gnulib/import/dirname-lgpl: Update. + * gnulib/import/dirname.h: Update. + * gnulib/import/dosname.h: Update. + * gnulib/import/errno: Update. + * gnulib/import/extra/snippet/arg-nonnull.h: Update. + * gnulib/import/extra/snippet/c++defs.h: Update. + * gnulib/import/extra/snippet/warn-on-use.h: Update. + * gnulib/import/extra/update-copyright: Update. + * gnulib/import/flexmember.h: Update. + * gnulib/import/float+.h: Update. + * gnulib/import/float: Update. + * gnulib/import/float: Update. + * gnulib/import/fnmatch: Update. + * gnulib/import/fnmatch: Update. + * gnulib/import/fnmatch_loop: Update. + * gnulib/import/fpucw.h: Update. + * gnulib/import/frexp: Update. + * gnulib/import/frexpl: Update. + * gnulib/import/gettimeofday: Update. + * gnulib/import/hard-locale: Update. + * gnulib/import/hard-locale.h: Update. + * gnulib/import/inttypes: Update. + * gnulib/import/isnan: Update. + * gnulib/import/isnand-nolibm.h: Update. + * gnulib/import/isnand: Update. + * gnulib/import/isnanl-nolibm.h: Update. + * gnulib/import/isnanl: Update. + * gnulib/import/itold: Update. + * gnulib/import/limits: Update. + * gnulib/import/localcharset: Update. + * gnulib/import/localcharset.h: Update. + * gnulib/import/lstat: Update. + * gnulib/import/m4/00gnulib: Update. + * gnulib/import/m4/absolute-header: Update. + * gnulib/import/m4/alloca: Update. + * gnulib/import/m4/canonicalize: Update. + * gnulib/import/m4/codeset: Update. + * gnulib/import/m4/configmake: Update. + * gnulib/import/m4/dirent_h: Update. + * gnulib/import/m4/dirfd: Update. + * gnulib/import/m4/dirname: Update. + * gnulib/import/m4/double-slash-root: Update. + * gnulib/import/m4/eealloc: Update. + * gnulib/import/m4/errno_h: Update. + * gnulib/import/m4/exponentd: Update. + * gnulib/import/m4/exponentl: Update. + * gnulib/import/m4/extensions: Update. + * gnulib/import/m4/extern-inline: Update. + * gnulib/import/m4/fcntl-o: Update. + * gnulib/import/m4/flexmember: Update. + * gnulib/import/m4/float_h: Update. + * gnulib/import/m4/fnmatch: Update. + * gnulib/import/m4/fpieee: Update. + * gnulib/import/m4/frexp: Update. + * gnulib/import/m4/frexpl: Update. + * gnulib/import/m4/gettimeofday: Update. + * gnulib/import/m4/glibc21: Update. + * gnulib/import/m4/gnulib-cache: Update. + * gnulib/import/m4/gnulib-common: Update. + * gnulib/import/m4/gnulib-comp: Update. + * gnulib/import/m4/gnulib-tool: Update. + * gnulib/import/m4/hard-locale: Update. + * gnulib/import/m4/include_next: Update. + * gnulib/import/m4/inttypes-pri: Update. + * gnulib/import/m4/inttypes: Update. + * gnulib/import/m4/isnand: Update. + * gnulib/import/m4/isnanl: Update. + * gnulib/import/m4/largefile: Update. + * gnulib/import/m4/limits-h: Update. + * gnulib/import/m4/localcharset: Update. + * gnulib/import/m4/locale-fr: Update. + * gnulib/import/m4/locale-ja: Update. + * gnulib/import/m4/locale-zh: Update. + * gnulib/import/m4/longlong: Update. + * gnulib/import/m4/lstat: Update. + * gnulib/import/m4/malloc: Update. + * gnulib/import/m4/malloca: Update. + * gnulib/import/m4/math_h: Update. + * gnulib/import/m4/mbrtowc: Update. + * gnulib/import/m4/mbsinit: Update. + * gnulib/import/m4/mbsrtowcs: Update. + * gnulib/import/m4/mbstate_t: Update. + * gnulib/import/m4/memchr: Update. + * gnulib/import/m4/memmem: Update. + * gnulib/import/m4/mmap-anon: Update. + * gnulib/import/m4/multiarch: Update. + * gnulib/import/m4/nocrash: Update. + * gnulib/import/m4/off_t: Update. + * gnulib/import/m4/pathmax: Update. + * gnulib/import/m4/rawmemchr: Update. + * gnulib/import/m4/readlink: Update. + * gnulib/import/m4/rename: Update. + * gnulib/import/m4/rmdir: Update. + * gnulib/import/m4/signal_h: Update. + * gnulib/import/m4/ssize_t: Update. + * gnulib/import/m4/stat: Update. + * gnulib/import/m4/stdbool: Update. + * gnulib/import/m4/stddef_h: Update. + * gnulib/import/m4/stdint: Update. + * gnulib/import/m4/stdio_h: Update. + * gnulib/import/m4/stdlib_h: Update. + * gnulib/import/m4/strchrnul: Update. + * gnulib/import/m4/string_h: Update. + * gnulib/import/m4/strstr: Update. + * gnulib/import/m4/strtok_r: Update. + * gnulib/import/m4/sys_socket_h: Update. + * gnulib/import/m4/sys_stat_h: Update. + * gnulib/import/m4/sys_time_h: Update. + * gnulib/import/m4/sys_types_h: Update. + * gnulib/import/m4/time_h: Update. + * gnulib/import/m4/unistd_h: Update. + * gnulib/import/m4/warn-on-use: Update. + * gnulib/import/m4/wchar_h: Update. + * gnulib/import/m4/wchar_t: Update. + * gnulib/import/m4/wctype_h: Update. + * gnulib/import/m4/wint_t: Update. + * gnulib/import/malloc: Update. + * gnulib/import/malloca: Update. + * gnulib/import/malloca.h: Update. + * gnulib/import/math: Update. + * gnulib/import/math: Update. + * gnulib/import/mbrtowc: Update. + * gnulib/import/mbsinit: Update. + * gnulib/import/mbsrtowcs-impl.h: Update. + * gnulib/import/mbsrtowcs-state: Update. + * gnulib/import/mbsrtowcs: Update. + * gnulib/import/memchr: Update. + * gnulib/import/memmem: Update. + * gnulib/import/pathmax.h: Update. + * gnulib/import/rawmemchr: Update. + * gnulib/import/readlink: Update. + * gnulib/import/ref-add.sin: Update. + * gnulib/import/ref-del.sin: Update. + * gnulib/import/rename: Update. + * gnulib/import/rmdir: Update. + * gnulib/import/same-inode.h: Update. + * gnulib/import/signal: Update. + * gnulib/import/stat: Update. + * gnulib/import/stdbool: Update. + * gnulib/import/stddef: Update. + * gnulib/import/stdint: Update. + * gnulib/import/stdio: Update. + * gnulib/import/stdlib: Update. + * gnulib/import/str-two-way.h: Update. + * gnulib/import/strchrnul: Update. + * gnulib/import/streq.h: Update. + * gnulib/import/string: Update. + * gnulib/import/stripslash: Update. + * gnulib/import/strnlen1: Update. + * gnulib/import/strnlen1.h: Update. + * gnulib/import/strstr: Update. + * gnulib/import/strtok_r: Update. + * gnulib/import/sys_stat: Update. + * gnulib/import/sys_time: Update. + * gnulib/import/sys_types: Update. + * gnulib/import/time: Update. + * gnulib/import/unistd: Update. + * gnulib/import/unistd: Update. + * gnulib/import/verify.h: Update. + * gnulib/import/wchar: Update. + * gnulib/import/wctype: Update. + * gnulib/import/flexmember.h: New file. + * gnulib/import/hard-locale.c: New file. + * gnulib/import/hard-locale.h: New file. + * gnulib/import/limits.in.h: New file. + * gnulib/import/m4/flexmember.m4: New file. + * gnulib/import/m4/hard-locale.m4: New file. + * gnulib/import/m4/limits-h.m4: New file. + +2016-10-18 Pedro Alves + + * common/common-defs.h: Include "gdb_unique_ptr.h". + * common/gdb_unique_ptr.h: New. + +2016-10-18 Maciej W. Rozycki + + * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture + is `bfd_arch_i386' before proceeding. + (i386_mpx_set_bounds): Likewise. + +2016-10-18 Maciej W. Rozycki + + * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long' + type for `operands'. + +2016-10-17 Simon Marchi + + * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present + before using it. + +2016-10-17 Pedro Alves + + * charset.h (class wchar_iterator) [PHONY_ICONV] : Use + 'int' as type. + +2016-10-14 Sangamesh Mallayya + Ulrich Weigand + + * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot + path is set properly if program has a dependency on .a archive and + sysroot is set via set sysroot command. + +2016-10-14 Markus Metzger + + * nat/linux-btrace.c: Remove leftover comment. + +2016-10-14 Eli Zaretskii + + * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if + available, to get prototypes of 'strcasecmp' and 'strncasecmp'. + +2016-10-13 Pedro Alves + + * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead. + (false, true): Remove checks. + +2016-10-12 Tom Tromey + + * machoread.c (macho_symfile_read_all_oso): Use std::string. + +2016-10-12 Tom Tromey + + * tracepoint.c (trace_dump_command): Remove unnecessary + null_cleanup. + +2016-10-12 Tom Tromey + + * valprint.c (generic_emit_char, count_next_character) + (generic_printstr): Update. + * charset.c (struct wchar_iterator): Move to charset.h. + (wchar_iterator::wchar_iterator): Rename from + make_wchar_iterator, turn into a constructor. + (wchar_iterator::~wchar_iterator): Rename from + do_cleanup_iterator, turn into a destructor. + (make_cleanup_wchar_iterator): Remove. + (wchar_iterator::iterate): Rename from wchar_iterate. Remove + "iter" argument. Update. + * charset.h: Include . + (class wchar_iterator): New class, from old struct + wchar_iterator. + (make_wchar_iterator, make_cleanup_wchar_iterator): Don't + declare. + +2016-10-12 Tom Tromey + + * selftest.c: Include , not "vec.h". + (self_test_function_ptr): Remove. + (tests): Now a std::vector. + (register_self_test, run_self_tests): Update. + +2016-10-13 Pedro Alves + Tom Tromey + + * tid-parse.h (tid_range_parser): New class. + (enum tid_range_state): Move into tid_range_parser's scope. + Remove TID_RANGE_ prefix from all values. + (tid_range_parser_get_tid, tid_range_parser_get_tid_range) + (tid_range_parser_star_range, tid_range_parser_finished) + (tid_range_parser_skip, tid_range_parser_qualified): Don't + declare. + (tid_is_in_list): Update comment. + * tid-parse.c (tid_range_parser::tid_range_parser): New. + (init, finished, get_string, skip, tid_is_qualified) + (get_tid_or_range, get_tid_range, get_tid, star_range): Rename; + turn into methods. + (tid_is_in_list): Adjust. + * cli/cli-utils.h (number_or_range_parser): New class. + (init_number_or_range, get_number_or_range) + (number_range_setup_range): Don't declare. + * cli/cli-utils.c + (number_or_range_parser::number_or_range_parser): New. + (init_number_or_range, get_number_or_range) + (number_range_setup_range): Rename; turn into methods. + (number_is_in_list): Adjust. + * breakpoint.c (map_breakpoint_numbers): Adjust. Use bool. + (trace_pass_command, get_tracepoint_by_number): Adjust. + * breakpoint.h (get_tracepoint_by_number): Adjust. + * inferior.c (detach_inferior_command, kill_inferior_command) + (remove_inferior_command): Adjust. + * linespec.c (decode_line_2): Adjust. + * memattr.c (mem_enable_command, mem_disable_command) + (mem_delete_command): Adjust. + * printcmd.c (map_display_numbers): Adjust. + * reverse.c (delete_bookmark_command, bookmarks_info): Adjust. + * thread.c (thread_apply_command): Adjust. + +2016-10-12 Anton Kolesov + + * arc-newlib-tdep.c: New file. + * configure.tgt: Add newlib support for ARC. + +2016-10-12 Anton Kolesov + + * arc-tdep.h (struct gdbarch_tdep) : New field. + * arc-tdep.c (arc_get_longjmp_target): New function. + (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative. + (arc_dump_tdep): Print jb_pc. + +2016-10-12 Anton Kolesov + + * arc-tdep.h (struct gdbarch_tdep): New. + * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep. + +2016-10-12 Yao Qi + + PR tdep/20682 + * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT. + (aarch64_analyze_prologue): Extend array 'regs' for D registers. + Assert that operand 0 and 1 can be X or D registers. Update + register number for D registers. Update registers in frame + cache. + * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro. + +2016-10-10 Yao Qi + + * arch/arm.h (enum arm_breakpoint_kinds): New. + * arm-tdep.c (arm_remote_breakpoint_from_pc): Use + ARM_BP_KIND_THUMB2. + +2016-10-10 Yao Qi + + * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by + 'gdbarch'. + +2016-10-10 Yao Qi + + * v850-tdep.c (v850_breakpoint_from_pc): Use the right + breakpoint instruction. + (v850_dbtrap_breakpoint_from_pc): Remove. + (v850_gdbarch_init): Update. + +2016-10-08 Simon Marchi + + * ui-out.c (push_level): Remove "id" parameter. + (ui_out_begin): Update call. + +2016-10-07 Joel Brobecker + + GDB 7.12 released. + +2016-10-07 Markus Metzger + + * python/python.c (gdbpy_decode_line): Call + string_to_event_location_basic instead of new_linespec_location. + +2016-10-06 Sergio Durigan Junior + + * target.c (target_supports_multi_process): New function, moved + from... + * target.h (target_supports_multi_process): ... here. Remove + macro. + * target/target.h (target_supports_multi_process): New prototype. + +2016-10-06 Pedro Alves + + * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of + EXPORTED_CONST. + * stub-termcap.c: Remove __cplusplus checks. + * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH, + EXTERN_C_POP): Delete. + * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments. + (GDB_XCPT) [!__cplusplus]: Delete. + (throw_exception, throw_exception_sjlj): Update comments. + * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete. + * guile/guile.c (extension_language_guile): Write "extern const" + instead of EXPORTED_CONST. + * features/feature_to_c.sh: Don't emit !__cplusplus code. Write + "extern const" instead of EXPORTED_CONST. + +2016-10-06 Doug Evans + + * python/py-value.c (valpy_long): Handle unsigned values. + +2016-10-06 Simon Marchi + + * frame.h: Forward-declare struct ui_out. + +2016-10-06 Tom Tromey + + * MAINTAINERS: Remove Java test maintainer. + * varobj.h (java_varobj_ops): Don't declare. + * valprint.h (struct value_print_options) + : Update comment. + * utils.c (producer_is_gcc): Remove java reference. + * symtab.h (struct general_symbol_info): Remove java references. + (SYMBOL_SEARCH_NAME): Likewise. + * objfiles.c (allocate_objfile): Update comment. + * linespec.c (find_linespec_symbols): Remove java references. + * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove + java references. + * gdbtypes.h (struct cplus_struct_type) : Remove. + (TYPE_CPLUS_REALLY_JAVA): Remove. + * c-varobj.c (enum vsections): Update comment. + * symtab.c (symbol_set_language, symbol_set_names) + (symbol_natural_name, symbol_demangled_name) + (demangle_for_lookup, symbol_matches_domain) + (default_make_symbol_completion_list_break_on_1): Remove java + references. + (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove. + * psymtab.c (match_partial_symbol, psymtab_search_name) + (lookup_partial_symbol): Remove java references. + * dwarf2read.c (find_slot_in_mapped_hash): Remove java references. + (add_partial_symbol, dwarf2_compute_name, dwarf2_physname) + (dwarf2_add_member_fn, is_vtable_name, read_structure_type) + (process_structure_scope, read_subroutine_type) + (read_subrange_type, load_partial_dies) + (new_symbol_full, determine_prefix, typename_concat) + (dwarf2_name): Remove java references. + (set_cu_language): Treat Java as C++. + * c-typeprint.c (c_type_print_args): Remove java reference. + * defs.h (enum language) : Remove. + * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES) + (YYOBJ, local-maintainer-clean): Don't mention java files. + * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c, + jv-varobj.c: Remove. + +2016-10-06 Maciej W. Rozycki + + * mips-tdep.c (mips_pseudo_register_type): Make FCRs always + 32-bit. + +2016-10-06 Maciej W. Rozycki + + * mips-tdep.c (mips_pseudo_register_type): Rearrange comments + throughout. + +2016-10-06 Markus Metzger + + * stack.c (frame_info): Call val_print_not_saved instead of + val_print_unavailable if frame_id check fails. + +2016-10-06 Pedro Alves + + * jit.c (free_objfile_data): Delete the JIT breakpoint and clear + the cached code address. + +2016-10-06 Doug Evans + + * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify + "end" in all fields. + * features/aarch64.c: Regenerate. + * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved" + and "enabled" fields. Correct size of "enabled" field. + * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved" + and "enabled" fields. + * features/i386/i386-avx-mpx-linux.c: Regenerate. + * features/i386/i386-avx-mpx.c: Regenerate. + * features/i386/i386-avx512-linux.c: Regenerate. + * features/i386/i386-avx512.c: Regenerate. + * features/i386/i386-mpx-linux.c: Regenerate. + * features/i386/i386-mpx.c: Regenerate. + * features/arc-arcompact.c: Regenerate. + * features/arc-v2.c: Regenerate. + * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit + fields default to "bool" type. + + Revert 2016-03-15 Doug Evans + * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec. + * features/i386/32bit-sse.xml (i386_eflags): Ditto. + * features/i386/64bit-core.xml (i386_eflags): Ditto. + * features/i386/64bit-sse.xml (i386_eflags): Ditto. + * features/i386/x32-core.xml (i386_eflags): Ditto. + +2016-10-05 Tom Tromey + + PR breakpoints/20653: + * location.c (string_to_explicit_location): Use NULL, not '\0'. + +2016-10-05 Tom Tromey + + PR symtab/20652: + * psymtab.c (psymbol_compare): Correctly compare "ginfo.value" + fields. + +2016-10-05 Andreas Arnez + + * dwarf2expr.c (dwarf_expr_require_composition): Allow + DW_OP_GNU_uninit. + (execute_stack_op): Use dwarf_expr_require_composition instead of + copying its logic. + +2016-10-05 Anton Kolesov + + * arc-tdep.c (arc_frame_prev_register): Remove annoying log message. + +2016-10-05 Yao Qi + + * features/Makefile (WHICH): Add + rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l, + rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l, + rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l. + * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated. + * regformats/rs6000/powerpc-isa205-64l.dat: Likewise. + * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise. + * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise. + * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise. + * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise. + +2016-10-05 Yao Qi + + * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml, + s390-vx-linux64.xml, s390x-tevx-linux64.xml and + s390x-vx-linux64.xml. + +2016-10-05 Yao Qi + + * features/Makefile: Remove i386/*-expedite. Add i386-expedite, + amd64-expedite, and x32-expedite. + +2016-10-05 Terry Guo + Yao Qi + + * arm-tdep.c: Adjust includes. + * features/Makefile (WHICH): Add "arm/" directory to arm + target descriptions. + (XMLTOC): Likewise. + (arm/arm-with-iwmmxt.dat): Adjust the path for + dependencies. + * features/arm-core.xml: Moved to ... + * features/arm/arm-core.xml: ... it. + * features/arm-fpa.xml: Moved to ... + * features/arm/arm-fpa.xml: ... it. + * features/arm-m-profile.xml: Moved to ... + * features/arm/arm-m-profile.xm: ... it. + * features/arm-vfpv2.xml: Moved to ... + * features/arm/arm-vfpv2.xm: ... it. + * features/arm-vfpv3.xml: Moved to ... + * features/arm/arm-vfpv3.xml: ... it. + * features/arm-with-iwmmxt.c: Moved to ... + * features/arm/arm-with-iwmmxt.c: ... it. + * features/arm-with-iwmmxt.xml: Moved to ... + * features/arm/arm-with-iwmmxt.xml: ... it. + * features/arm-with-m-fpa-layout.c: Moved to ... + * features/arm/arm-with-m-fpa-layout.c: ... it. + * features/arm-with-m-fpa-layout.xml: Moved to ... + * features/arm/arm-with-m-fpa-layout.xml: ... it. + * features/arm-with-m-vfp-d16.c: Moved to ... + * features/arm/arm-with-m-vfp-d16.c: ... it. + * features/arm-with-m-vfp-d16.xml: Moved to ... + * features/arm/arm-with-m-vfp-d16.xml: ... it. + * features/arm-with-m.c: Moved to ... + * features/arm/arm-with-m.c: ... it. + * features/arm-with-m.xml: Moved to ... + * features/arm/arm-with-m.xm: ... it. + * features/arm-with-neon.c: Moved to ... + * features/arm/arm-with-neon.c: ... it. + * features/arm-with-neon.xml: Moved to ... + * features/arm/arm-with-neon.xml: ... it. + * features/arm-with-vfpv2.c: Moved to ... + * features/arm/arm-with-vfpv2.c: ... it. + * features/arm-with-vfpv2.xml: Moved to ... + * features/arm/arm-with-vfpv2.xml: ... it. + * features/arm-with-vfpv3.c: Moved to ... + * features/arm/arm-with-vfpv3.c: ... it. + * features/arm-with-vfpv3.xml: Moved to ... + * features/arm/arm-with-vfpv3.xml: ... it. + * features/xscale-iwmmxt.xml: Moved to ... + * features/arm/xscale-iwmmxt.xml: ... it. + +2016-10-03 Antoine Tremblay +2016-10-03 Simon Marchi + + PR gdb/20487 + * NEWS: Mention new frame field of =thread-selected event. + * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification. + (add_com_suppress_notification): New function definition. + (cmd_func): Set and restore the suppress_notification flag. + * cli/cli-deicode.h (struct cmd_list_element) + : New field. + * cli/cli-interp.c (cli_suppress_notification): New global variable. + (cli_on_user_selected_context_changed): New function. + (_initialize_cli_interp): Attach to user_selected_context_changed + observer. + * command.h (struct cli_suppress_notification): New structure. + (cli_suppress_notification): New global variable declaration. + (add_com_suppress_notification): New function declaration. + * defs.h (enum user_selected_what_flag): New enum. + (user_selected_what): New enum flag type. + * frame.h (print_stack_frame_to_uiout): New function declaration. + * gdbthread.h (print_selected_thread_frame): New function declaration. + * inferior.c (print_selected_inferior): New function definition. + (inferior_command): Remove printing of inferior/thread/frame switch + notifications, notify user_selected_context_changed observer. + * inferior.h (print_selected_inferior): New function declaration. + * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context + suppression to stack-select-frame and thread-select commands. + * mi/mi-interp.c (struct mi_suppress_notification) + : Initialize. + (mi_user_selected_context_changed): New function definition. + (_initialize_mi_interp): Attach to user_selected_context_changed. + * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply. + (mi_execute_command): Handle notification suppression. Notify + user_selected_context_changed observer on thread change instead of printing + event directly. Don't send it if command already sends the notification. + (command_notifies_uscc_observer): New function. + (mi_cmd_execute): Don't handle notification suppression. + * mi/mi-main.h (struct mi_suppress_notification) + : New field. + * stack.c (print_stack_frame_to_uiout): New function definition. + (select_frame_command): Notify user_selected_context_changed + observer. + (frame_command): Call print_selected_thread_frame if there's no frame + change or notify user_selected_context_changed observer if there is. + (up_command): Notify user_selected_context_changed observer. + (down_command): Likewise. + (_initialize_stack): Suppress user_selected_context notification for + command select-frame. + * thread.c (thread_command): Notify + user_selected_context_changed if the thread has changed, print + thread info directly if it hasn't. + (do_captured_thread_select): Do not print thread switch event. + (print_selected_thread_frame): New function definition. + * tui/tui-interp.c (tui_on_user_selected_context_changed): + New function definition. + (_initialize_tui_interp): Attach to user_selected_context_changed + observer. + +2016-09-29 Jan Kratochvil + + PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression + * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset. + Use it. + * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset. + * infcmd.c (setup_inferior): Update caller. + * remote.c (remote_add_inferior): Likewise. + +2016-09-28 Pedro Alves + + * infcall.c (run_inferior_call): Remove input from the event + loop while running the infcall. + +2016-09-27 Fredrik Hederstierna + + * arm-tdep.c (arm_m_addr_is_magic): New function. + (arm_addr_bits_remove): Call arm_m_addr_is_magic. + (arm_m_exception_unwind_sniffer): Likewise. + +2016-09-23 Jon Turney + + * windows-nat.c (windows_delete_thread): Adjusting call to + target_mourn_inferior to include ptid_t argument. + +2016-09-23 Tom Tromey + + * utils.h (make_cleanup_dyn_string_delete): Remove declaration. + * utils.c: Don't include dyn-string.h. + (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove. + * cli/cli-cmds.c: Include . Don't include dyn-string.h. + (argv_to_string): Rename. Change return type to std::string. + (alias_command): Use std::string. + +2016-09-23 Tom Tromey + + * objfiles.c: Include . + (objfile_relocate): Use std::vector. + +2016-09-23 Tom Tromey + + * rust-lang.c: Include and . + (rust_evaluate_funcall): Use std::vector, std::string. + (rust_evaluate_subexp): Use std::string. + (rust_lookup_symbol_nonlocal): Use std::string. + +2016-09-23 Tom Tromey + + * cp-namespace.c: Include . + (cp_search_static_and_baseclasses) + (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass): + Use std::string. + +2016-09-23 Tom Tromey + + * break-catch-sig.c: Include . + (signal_catchpoint_print_one): Use std::string. + +2016-09-23 Tom Tromey + + * utils.c (struct restore_ui_out_closure): Remove. + * objfiles.h (terminate_minimal_symbol_table): Don't declare. + +2016-09-23 Yao Qi + + * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace + sprintf with xsnprintf. + (linux_xfer_osdata_fds): Likewise. + +2016-09-23 Pedro Alves + + * Makefile.in (SFILES): Add common/new-op.c. + (COMMON_OBS): Add common/new-op.o. + (new-op.o): New rule. + * common/common-exceptions.h: Include . + (struct gdb_quit_bad_alloc): New type. + * common/new-op.c: New file. + +2016-09-22 Edjunior Barbosa Machado + + * rs6000-tdep.c (ppc_process_record_op31): Fix + regcache_raw_read_unsigned call using the correct parameter type. + +2016-09-22 Anton Kolesov + + * arc-tdep.c: Fix ARI warning for printf(%p). + +2016-09-21 Anton Kolesov + + * MAINTAINERS (Write After Approval): Add Anton Kolesov. + +2016-09-21 Anton Kolesov + + * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o. + (HFILES_NO_SRCDIR): Add arc-tdep.h. + (ALLDEPFILES): Add arc-tdep.c. + * NEWS: Mention new ARC port. + * configure.tgt: Add ARC. + * arc-tdep.c: New file. + * arc-tdep.h: New file. + * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml. + * features/arc-v2.xml: New file. + * features/arc-v2.c: New file (generated). + * features/arc-arcompact.xml: New file. + * features/arc-arcompact.c: New file (generated). + +2016-09-21 Edjunior Barbosa Machado + + * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction + handlers. + +2016-09-21 Tom Tromey + + PR gdb/20604: + * top.h (quit_force): Update. + * top.c (quit_force): Changed type of first argument. Don't + evaluate expression. Pass NULL to kill_or_detach. + * cli/cli-cmds.c (quit_command): Evaluate "args". + +2016-09-21 Simon Marchi + + * .gitignore: Ignore more files. + * data-directory/.gitignore: Likewise. + +2016-09-21 Edjunior Barbosa Machado + + * rs6000-tdep.c (PPC_DQ): New macro. + (ppc_process_record_op4): Add Power ISA 3.0 instructions. + (ppc_process_record_op19): Likewise. + (ppc_process_record_op31): Likewise. + (ppc_process_record_op59): Likewise. + (ppc_process_record_op60): Likewise. + (ppc_process_record_op63): Likewise. + (ppc_process_record): Likewise. + (ppc_process_record_op61): New function. + +2016-09-21 Yao Qi + + * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep + bits 20 to 23. + +2016-09-20 Tom Tromey + + * python/py-value.c (convert_value_from_python): Make PyInt_Check + conditional on Python 2. + * python/py-arch.c (archpy_disassemble): Make PyInt_Check + conditional on Python 2. + +2016-09-20 Edjunior Barbosa Machado + + * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String + Word instructions. + +2016-09-20 Sergio Durigan Junior + + * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of + 'resume_ptid' to 'target_mourn_inferior'. Fix regression + introduced by my last commit. + +2016-09-19 Pedro Alves + + * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, + textdomain, bindtextdomain): Delete macros. + * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and + textdomain calls. + +2016-09-19 Sergio Durigan Junior + + * darwin-nat.c (darwin_kill_inferior): Adjusting call to + target_mourn_inferior to include ptid_t argument. + * fork-child.c (startup_inferior): Likewise. + * gnu-nat.c (gnu_kill_inferior): Likewise. + * inf-ptrace.c (inf_ptrace_kill): Likewise. + * infrun.c (handle_inferior_event_1): Likewise. + * linux-nat.c (linux_nat_attach): Likewise. + (linux_nat_kill): Likewise. + * nto-procfs.c (interrupt_query): Likewise. + (procfs_interrupt): Likewise. + (procfs_kill_inferior): Likewise. + * procfs.c (procfs_kill_inferior): Likewise. + * record.c (record_mourn_inferior): Likewise. + * remote-sim.c (gdbsim_kill): Likewise. + * remote.c (remote_detach_1): Likewise. + (remote_kill): Likewise. + * target.c (target_mourn_inferior): Change declaration to accept + new ptid_t argument; use gdb_assert on it. + * target.h (target_mourn_inferior): Move function prototype from + here... + * target/target.h (target_mourn_inferior): ... to here. Adjust it + to accept new ptid_t argument. + * windows-nat.c (get_windows_debug_event): Adjusting call to + target_mourn_inferior to include ptid_t argument. + +2016-09-18 Pedro Alves + + * s390-linux-nat.c: Include . + +2016-09-18 Pedro Alves + + * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly + specify the std:min/std::max specialization. + * exec.c (section_table_read_available_memory): Likewise. + * remote.c (remote_read_qxfer): Likewise. + * target.c (simple_verify_memory): Likewise. + +2016-09-16 Simon Marchi + + * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c. + (print_stop_event): Use make_cleanup_restore_current_uiout. + * python/python.c (execute_gdb_command): Likewise. + * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c. + (make_cleanup_restore_current_uiout): New function definition. + * ui-out.h (make_cleanup_restore_current_uiout): New function + declaration. + * utils.c (do_restore_ui_out): Remove. + (make_cleanup_restore_ui_out): Remove. + * utils.h (make_cleanup_restore_ui_out): Remove. + +2016-09-16 Pedro Alves + + * defs.h (min, max): Delete. + * aarch64-tdep.c: Include and use std::min and + std::max throughout. + * aarch64-tdep.c: Likewise. + * alpha-tdep.c: Likewise. + * amd64-tdep.c: Likewise. + * amd64-windows-tdep.c: Likewise. + * arm-tdep.c: Likewise. + * avr-tdep.c: Likewise. + * breakpoint.c: Likewise. + * btrace.c: Likewise. + * ctf.c: Likewise. + * disasm.c: Likewise. + * doublest.c: Likewise. + * dwarf2loc.c: Likewise. + * dwarf2read.c: Likewise. + * environ.c: Likewise. + * exec.c: Likewise. + * f-exp.y: Likewise. + * findcmd.c: Likewise. + * ft32-tdep.c: Likewise. + * gcore.c: Likewise. + * hppa-tdep.c: Likewise. + * i386-darwin-tdep.c: Likewise. + * i386-tdep.c: Likewise. + * linux-thread-db.c: Likewise. + * lm32-tdep.c: Likewise. + * m32r-tdep.c: Likewise. + * m88k-tdep.c: Likewise. + * memrange.c: Likewise. + * minidebug.c: Likewise. + * mips-tdep.c: Likewise. + * moxie-tdep.c: Likewise. + * nds32-tdep.c: Likewise. + * nios2-tdep.c: Likewise. + * nto-procfs.c: Likewise. + * parse.c: Likewise. + * ppc-sysv-tdep.c: Likewise. + * probe.c: Likewise. + * record-btrace.c: Likewise. + * remote.c: Likewise. + * rs6000-tdep.c: Likewise. + * rx-tdep.c: Likewise. + * s390-linux-nat.c: Likewise. + * s390-linux-tdep.c: Likewise. + * ser-tcp.c: Likewise. + * sh-tdep.c: Likewise. + * sh64-tdep.c: Likewise. + * source.c: Likewise. + * sparc-tdep.c: Likewise. + * symfile.c: Likewise. + * target-memory.c: Likewise. + * target.c: Likewise. + * tic6x-tdep.c: Likewise. + * tilegx-tdep.c: Likewise. + * tracefile-tfile.c: Likewise. + * tracepoint.c: Likewise. + * valprint.c: Likewise. + * value.c: Likewise. + * xtensa-tdep.c: Likewise. + * cli/cli-cmds.c: Likewise. + * compile/compile-object-load.c: Likewise. + +2016-09-16 Andreas Arnez + + * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH) + (PER_EVENT_STORE, PER_EVENT_NULLIFICATION) + (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION) + (PER_CONTROL_ALTERATION): New macros. + (struct s390_debug_reg_state) : New member. + (s390_forget_process): Free break_areas as well. + (s390_linux_new_fork): Copy break_areas as well. + (s390_prepare_to_resume): Install hardware breakpoints. + (s390_can_use_hw_breakpoint): Indicate support for hardware + breakpoints. + (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New + linux_nat target methods. + (_initialize_s390_nat): Register them. + +2016-09-16 Andreas Arnez + + * nat/linux-nat.h (lwp_is_stepping): New declaration. + * linux-nat.c (lwp_is_stepping): New function. + +2016-09-16 Andreas Arnez + + * s390-linux-nat.c (gdbcmd.h): New include. + (s390_show_debug_regs): New function. + (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set. + (s390_prepare_to_resume): Likewise. + (_initialize_s390_nat): Register the command "maint set + show-debug-regs". + +2016-09-16 Andreas Arnez + + * s390-linux-nat.c (watch_areas): Remove variable. Replace by a + member of... + (struct s390_debug_reg_state): ...this. New struct. + (struct s390_process_info): New struct. + (s390_process_list): New variable. + (s390_find_process_pid, s390_add_process, s390_process_info_get) + (s390_get_debug_reg_state): New functions. + (s390_stopped_by_watchpoint): Now access the watch_areas VEC via + s390_get_debug_reg_state. + (s390_prepare_to_resume): Likewise. + (s390_insert_watchpoint): Likewise. + (s390_remove_watchpoint): Likewise. + (s390_forget_process, s390_linux_new_fork): New linux_nat target + methods. + (_initialize_s390_nat): Register them. + +2016-09-16 Andreas Arnez + + * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC. + (watch_base): Remove variable. + (watch_areas): New variable. + (s390_stopped_by_watchpoint): Transform operations on the + watch_base list to equivalent operations on the watch_areas VEC. + (s390_prepare_to_resume): Likewise. + (s390_insert_watchpoint): Likewise. + (s390_remove_watchpoint): Likewise. + +2016-09-16 Andreas Arnez + + * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp + functions instead of accessing lwp_info structure members. + (s390_mark_per_info_changed): New function. + (s390_new_thread): Use it. + (s390_refresh_per_info_cb): New function. + (s390_refresh_per_info): Remove parameter. Refresh all lwps of + the current process. + (s390_insert_watchpoint): Adjust call to s390_refresh_per_info. + (s390_remove_watchpoint): Likewise. + +2016-09-09 Andreas Arnez + + * elfread.c (auxv.h): New include. + (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver. + +2016-09-08 Tom Tromey + + * remote.c (remote_notif_stop_ack, remote_wait_as) + (show_remote_cmd): Remove unneeded casts. + +2016-09-06 Pedro Alves + + * top.c (wait_sync_command_done): Don't assume current_ui doesn't + change across events. Restore the current UI before returning. + (gdb_readline_wrapper): Restore the current UI before returning. + +2016-09-06 Pedro Alves + + * event-top.c (restore_ui_cleanup): Now static. + (make_cleanup_restore_current_ui): New function. + (switch_thru_all_uis_init): Use it. + * infcall.c (call_thread_fsm_should_stop): Use it. + * infrun.c (fetch_inferior_event): Use it. + * top.c (new_ui_command): Use it. + * top.h (restore_ui_cleanup): Delete declaration. + (make_cleanup_restore_current_ui): New declaration. + +2016-09-05 Ulrich Weigand + + * i386-tdep.c (i386_floatformat_for_type): New function. + (i386_gdbarch_init): Install it. + * ppc-linux-tdep.c (ppc_floatformat_for_type): New function. + (ppc_linux_init_abi): Install it. + +2016-09-05 Ulrich Weigand + + * gdbarch.sh (floatformat_for_type): New gdbarch callback. + * gdbarch.h, gdbarch.c: Re-generate. + * arch-utils.h (default_floatformat_for_type): New prototype. + * arch-utils.c (default_floatformat_for_type): New function. + + * doublest.c (floatformat_from_length): Remove. + (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL. + * gdbtypes.c (verify_floatformat): Require non-NULL format. + + * dwarf2read.c (dwarf2_init_float_type): New function. + (read_base_type): Use it. + * stabsread.c (dbx_init_float_type): New function. + (read_sun_floating_type): Use it. + (read_range_type): Likewise. + +2016-09-05 Ulrich Weigand + + * ada-lang.c (ada_language_arch_info): Use gdbarch-provided + platform ABI floating-point formats for built-in types. + * d-lang.c (build_d_types): Likewise. + * f-lang.c (build_fortran_types): Likewise. + * m2-lang.c (build_m2_types): Likewise. + * mdebugread.c (basic_type): Likewise. + + * go-lang.c (build_go_types): Use IEEE floating-point formats + for language built-in types as mandanted by the language. + * jv-lang.c (build_java_types): Likewise. + * rust-lang.c (rust_language_arch_info): Likewise. + * stabsread.c (rs6000_builtin_type): Likewise. + +2016-09-05 Ulrich Weigand + + * gdbtypes.c (init_type): Remove "char" special case. + (arch_integer_type): Likewise. + (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type. + (objfile_type): Likewise. + * mdebugread.c (basic_type): Likewise. + * stabsread.c (rs6000_builtin_type): Likewise. + +2016-09-05 Ulrich Weigand + + * gdbtypes.h (enum type_flag_value): Remove. + Remove references to TYPE_FLAG_... in comments throughout. + * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_... + flags, print the corresponding TYPE_... access macro names. + Remove references to TYPE_FLAG_... in comments throughout. + * infcall.c: Remove references to TYPE_FLAG_... in comments. + * valprint.c: Likewise. + * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_... + values, only TYPE_INSTANCE_FLAG_... values. + (class TypeFlagsPrinter): Likewise. + +2016-09-05 Ulrich Weigand + + * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE + argument to first position. + (init_integer_type): New prototype. + (init_character_type): Likewise. + (init_boolean_type): Likewise. + (init_float_type): Likewise. + (init_decfloat_type): Likewise. + (init_complex_type): Likewise. + (init_pointer_type): Likewise. + * gdbtypes.c (verify_floatflormat): New function. + (init_type): Remove FLAGS argument and processing. Move OBJFILE + argument to first position. + (init_integer_type): New function. + (init_character_type): Likewise. + (init_boolean_type): Likewise. + (init_float_type): Likewise. + (init_decfloat_type): Likewise. + (init_complex_type): Likewise. + (init_pointer_type): Likewise. + (arch_float_type): Use verify_floatflormat. + (objfile_type): Use init_..._type helpers instead of calling + init_type directly. + * dwarf2read.c (fixup_go_packaging): Update to changed init_type + prototype. + (read_namespace_type): Likewise. + (read_module_type): Likewise. + (read_typedef): Likewise. + (read_unspecified_type): Likewise. + (build_error_marker_type): Likewise. + (read_base_type): Use init_..._type helpers. + * mdebugread.c (basic_type): Use init_..._type helpers. + (parse_type): Update to changed init_type prototype. + (cross_ref): Likewise. + * stabsread.c (rs6000_builtin_type): Use init_..._type helpers. + (read_sun_builtin_type): Likewise. + (read_sun_floating_type): Likewise. + (read_range_type): Likewise. Also update to changed init_type + prototype. + +2016-09-05 Ulrich Weigand + + * gdbtypes.h (arch_decfloat_type): New prototype. + (arch_pointer_type): Likewise. + * gdbtypes.c (arch_decfloat_type): New function. + (arch_pointer_type): Likewise. + (gdbtypes_post_init): Use arch_decfloat_type. + * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type. + * ft32-tdep.c (ft32_gdbarch_init): Likewise. + * m32c-tdep.c (make_types): Likewise. + * rl78-tdep.c (rl78_gdbarch_init): Likewise. + +2016-09-05 Ulrich Weigand + + * gdbtypes.c (set_type_code): New function. + (init_type, arch_type): Use it. + +2016-09-05 Ulrich Weigand + + * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit + instead of gdbarch_double_bit for "long_long_float". + +2016-09-05 Pedro Alves + + * NEWS: Mention that a C++ compiler is now required. + * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove. + (COMPILE.pre, CC_LD): Use CXX directly. + (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly. + * acinclude.m4: Don't include build-with-cxx.m4. + * build-with-cxx.m4: Delete file. + * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call. + * warning.m4: Assume $enable_build_with_cxx is yes. + * configure: Regenerate. + +2016-09-05 Pedro Alves + + PR backtrace/19927 + * frame.c (get_frame_id): Compute the frame id if not computed + yet. + (unwind_to_current_frame): Delete. + (get_current_frame): Use get_prev_frame_always_1 to get the + current frame and assert that that always succeeds. + (get_prev_frame_if_no_cycle): Skip cycle detection if returning + the current frame. + +2016-09-02 Tom Tromey + + PR gdb/11616: + * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address. + * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle + DW_OP_form_tls_address. + (locexpr_describe_location_piece): Likewise. + * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment. + * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address. + (ctx_no_get_tls_address): Mention DW_OP_form_tls_address. + * compile/compile-loc2c.c (struct insn_info): Update comment. + (compute_stack_depth_worker): Handle DW_OP_form_tls_address. + +2016-09-01 Sergio Durigan Junior + + * target.c (target_wait): Mention that the function's prototype + can be found at target/target.h. + * target.h (target_wait): Move prototype from here... + * target/target.h (target_wait): ... to here. + +2016-09-01 Sergio Durigan Junior + + * fork-child.c (startup_inferior): Replace calls to target_resume + by target_continue{,_no_signal}, depending on the case. + * linux-nat.c (cleanup_target_stop): Call + target_continue_no_signal instead of target_resume. + * procfs.c (procfs_wait): Likewise. + * target.c (target_continue): New function. + * target/target.h (target_continue): New prototype. + +2016-08-31 Yao Qi + + * record-full.c (record_full_insert_breakpoint): Fix typo. + +2016-08-30 Andreas Arnez + + * thread.c (tp_array_compar): Insert missing parentheses. + +2016-08-25 Andreas Arnez + + * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace + designated initializer list by plain initializer list, for C++ + compliance. + +2016-08-25 Adhemerval Zanella + + * aarch64-linux-nat.c (ps_get_thread_area): Remove const from + struct ps_prochandle. + * amd64-linux-nat.c (ps_get_thread_area): Likewise. + * arm-linux-nat.c (ps_get_thread_area): Likewise. + * gdb_proc_service.h (ps_get_thread_area): Likewise. + * i386-linux-nat.c (ps_get_thread_area): Likewise. + * m68klinux-nat.c (ps_get_thread_area): Likewise. + * mips-linux-nat.c (ps_get_thread_area): Likewise. + * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise. + * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise. + * xtensa-linux-nat.c (ps_get_thread_area): Likewise. + +2016-08-24 Simon Marchi + + * infcmd.c (set_inferior_io_terminal): Set inferior terminal to + NULL if terminal_name is an empty string. + (_initialize_infcmd): Make the argument of "set inferior-tty" + optional, mention it in the help doc. + +2016-08-24 Carl Love + + * rs6000-tdep.c (rs6000_gdbarch_init): Remove call + set_gdbarch_deprecated_fp_regnum() architecture + initialization function. + +2016-08-23 Simon Marchi + + * stack.c (parse_frame_specification): Fix typo in comment. + +2016-08-23 Pedro Alves + + PR gdb/20494 + * inflow.c (our_terminal_info, initial_gdb_ttystate): Update + comments. + (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag): + Delete. + (set_initial_gdb_ttystate): Record our_terminal_info here too, + instead of ... + (gdb_has_a_terminal): ... here. Reimplement in terms of + initial_gdb_ttystate. Make static. + * terminal.h (gdb_has_a_terminal): Delete declaration. + (set_initial_gdb_ttystate): Add comment. + * top.c (show_interactive_mode): Use input_interactive_p instead + of gdb_has_a_terminal. + +2016-08-22 Pedro Alves + + PR gdb/20505 + * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors, + find the vDSO's start address with AT_SYSINFO_EHDR too, and + determine the vDSO's size by finding the PT_LOAD segment that + matches AT_SYSINFO_EHDR. + +2016-08-19 Yao Qi + + * aarch64-tdep.c (aarch64_analyze_prologue): Handle register + based STP instruction. + +2016-08-19 Yao Qi + + * completer.c (linespec_location_completer): Make file_to_match + null-terminated. + +2016-08-19 Pedro Alves + + * amd64-tdep.c (amd64_relocate_instruction) : Handle return + addresses over 0x7fffffff. + +2016-08-18 Carl Love + + * MAINTANERS Write After Approval): Add "Carl Love". + +2016-08-18 Edjunior Barbosa Machado + + * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions. + +2016-08-17 Simon Marchi + + * inferior.c (remove_inferior_command): Fix error message. + +2016-08-17 Simon Marchi + + * inferior.c (exit_inferior_1): Remove comment. + +2016-08-15 Matthew Wahab + + PR gdb/20457 + * gdb_proc_service.h: Add an include of gregset.h + [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h. + +2016-08-15 Yao Qi + + * location.c (explicit_location_lex_one): Compare the return + value of strncmp with zero. Don't check (*inp)[9]. Increment + *inp by 8. + +2016-08-11 Pedro Alves + + PR gdb/20413 + * nat/linux-ptrace.c: Include instead of + "gregset.h". + +2016-08-10 Pedro Alves + + PR gdb/19187 + * record-full.c (record_full_remove_breakpoint): Don't remove the + breakpoint from the record_full_breakpoints VEC if we're detaching + the breakpoint from a fork child. + +2016-08-10 Pedro Alves + + PR gdb/19187 + * break-catch-sig.c (signal_catchpoint_remove_location): Adjust + interface. + * break-catch-syscall.c (remove_catch_syscall): + * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h. + (remove_breakpoint_1): Pass 'reason' down. + (remove_catch_fork, remove_catch_vfork, remove_catch_solib) + (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint) + (base_breakpoint_remove_location, bkpt_remove_location) + (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust + interface. + * breakpoint.h (enum remove_bp_reason): Moved here from + breakpoint.c. + (struct breakpoint_ops) : Add 'reason' parameter. + * corelow.c (core_remove_breakpoint): New function. + (init_core_ops): Install it as to_remove_breakpoint method. + * exec.c (exec_remove_breakpoint): New function. + (init_exec_ops): Install it as to_remove_breakpoint method. + * mem-break.c (memory_remove_breakpoint): Adjust interface. + * record-btrace.c (record_btrace_remove_breakpoint): Adjust + interface. + * record-full.c (record_full_remove_breakpoint) + (record_full_core_remove_breakpoint): Adjust interface. + * remote.c (remote_remove_breakpoint): Adjust interface. + * target-debug.h (target_debug_print_enum_remove_bp_reason): New + macro. + * target-delegates.c: Regenerate. + * target.c (target_remove_breakpoint): Add 'reason' parameter. + * target.h (struct target_ops) : Add + 'reason' parameter. + (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason' + parameter. + +2016-08-10 Pedro Alves + + PR gdb/19187 + * breakpoint.c (insertion_state_t): Delete. + (enum remove_bp_reason): New. + (detach_breakpoints, remove_breakpoint_1, remove_breakpoint): + Adjust to use enum remove_bp_reason instead of insertion_state_t. + +2016-08-10 Pedro Alves + + PR gdb/19187 + * breakpoint.c (remove_breakpoint): Remove 'is' parameter and + always pass mark_uninserted to remove_breakpoint_1. + (insert_breakpoint_locations, remove_breakpoints) + (remove_breakpoints_pid, update_global_location_list): Update + callers. + +2016-08-10 Руслан Ижбулатов + Pedro Alves + + * windows-nat.c (MS_VC_EXCEPTION): New define. + (handle_exception_result): New enum. + (windows_delete_thread): Free the thread's name. + (handle_exception): Handle MS_VC_EXCEPTION. + (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED. + (windows_thread_name): New function. + (windows_target): Install it as to_thread_name method. + * NEWS: Mention the thread naming support on MS-Windows. + +2016-08-10 Pedro Alves + + * common/signals-state-save-restore.c + (save_original_signals_state, restore_original_signals_state): + Wrap perror_with_name arguments with '()'. + +2016-08-09 Pedro Alves + + PR gdb/20418 + * event-top.c (ui_register_input_event_handler) + (ui_unregister_input_event_handler): New functions. + (async_enable_stdin): Register input in the event loop. + (async_disable_stdin): Unregister input from the event loop. + (gdb_setup_readline): Register input in the event loop. + * infrun.c (check_curr_ui_sync_execution_done): Register input in + the event loop. + * target.c (target_terminal_inferior): Don't unregister input from + the event loop. + (target_terminal_ours): Don't register input in the event loop. + * target.h (target_terminal_inferior) + (target_terminal_ours_for_output, target_terminal_ours): Update + comments. + * top.h (ui_register_input_event_handler) + (ui_unregister_input_event_handler): New declarations. + * utils.c (ui_unregister_input_event_handler_cleanup) + (prepare_to_handle_input): New functions. + (defaulted_query, prompt_for_continue): Use + prepare_to_handle_input. + +2016-08-09 Pedro Alves + + PR mi/20431 + * mi/mi-main.c (mi_execute_command): Enable input and set prompt + state to PROMPT_NEEDED. + +2016-08-09 Pedro Alves + + PR gdb/18653 + * Makefile.in (SFILES): Add + common/signals-state-save-restore.c. + (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h. + (COMMON_OBS): Add signals-state-save-restore.o. + (signals-state-save-restore.o): New rule. + * configure: Regenerate. + * fork-child.c: Include "signals-state-save-restore.h". + (fork_inferior): Call restore_original_signals_state. + * main.c: Include "signals-state-save-restore.h". + (captured_main): Call save_original_signals_state. + * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks. + * common/signals-state-save-restore.c: New file. + * common/signals-state-save-restore.h: New file. + +2016-08-09 Pedro Alves + + * value.c (unpack_value_bitfield): Skip unpacking if the parent + has no contents buffer to begin with. + +2016-08-08 Pedro Alves + + * features/i386/amd64-avx-mpx-linux.c: Regenerate. + * features/i386/amd64-avx-mpx.c: Regenerate. + * features/i386/i386-avx-mpx-linux.c: Regenerate. + * features/i386/i386-avx-mpx.c: Regenerate. + +2016-08-05 Simon Marchi + + * event-top.h (cli_command_loop): Remove. + +2016-08-05 Pedro Alves + + PR remote/20398 + * remote-fileio.c (remote_fileio_quit_handler): Check the quit + flag before calling quit. + +2016-08-05 Pedro Alves + + * NEWS: Mention that GDB and GDBserver build with a C++ compiler + by default. + +2016-08-05 Pedro Alves + + * build-with-cxx.m4: Change help string to be in terms of + --disable-build-with-cxx. + * configure: Regenerate. + +2016-08-04 Yao Qi + + * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the + declaration. + (aarch64_linux_read_description): Remove code on getting + auxv and select target description on it. Select target + description by the result of NT_ARM_VFP ptrace request. + +2016-08-03 Tom Tromey + + PR python/18565: + * python/py-frame.c (frapy_function): Use find_frame_funname. + +2016-08-03 Tom Tromey + + * stack.c (find_frame_funname): Avoid any possible leak in case + cp_remove_params can throw. + +2016-08-03 Tom Tromey + + * NEWS: Mention new Python breakpoint events. + +2016-08-02 Tom Tromey + + * MAINTAINERS (Core): Add self as Rust maintainer. + +2016-08-01 Joel Brobecker + + * NEWS: Create a new section for the next release branch. + Rename the section of the current branch, now that it has + been cut. + +2016-08-01 Joel Brobecker + + GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322): + * version.in: Bump version to 7.12.50.DATE-git. + +2016-07-27 Alan Modra + + * amd64-darwin-tdep.c: Don't include libbfd.h. + * i386-darwin-tdep.c: Likewise. + * rs6000-nat.c: Likewise. + * rs6000-tdep.c: Likewise. + +2016-07-26 Tom Tromey + + * symtab.c (register_symbol_computed_impl): Update. + PR python/20190: + * value.h (symbol_read_needs): Declare. + (symbol_read_needs_frame): Add comment. + * symtab.h (struct symbol_computed_ops) : Update + comment. + : Rename. Change return type. + * findvar.c (symbol_read_needs): New function. + (symbol_read_needs_frame): Rewrite. + (default_read_var_value): Use symbol_read_needs. + * dwarf2loc.c (struct symbol_needs_baton): Rename. + : Renamed from needs_frame. Changed type. + (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value) + (symbol_needs_read_mem, symbol_needs_frame_base) + (symbol_needs_frame_cfa, symbol_needs_tls_address) + (symbol_needs_dwarf_call): Rename. + (needs_dwarf_reg_entry_value): Update. + (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs): + Rename and update. + (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise. + (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update. + * defs.h (enum symbol_needs_kind): New. + +2016-07-26 Pedro Alves + + * nat/linux-ptrace.c: Include "gregset.h". + (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of + PTRACE_PEEKUSER. + +2016-07-26 Pedro Alves + + * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native' + parameter to 'ptrace'. + * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define. + (nat_uptr_t): New an unsigned long. + (nat_clock_t): Remove attribute __aligned__. + (struct nat_timeval): Delete. + (nat_siginfo_t): Remove attribute __aligned__. + (ptrace_siginfo_t): Define. + (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) + (compat_x32_siginfo_from_siginfo) + (siginfo_from_compat_x32_siginfo): Make 'from' parameter const. + Convert through a ptrace_siginfo_t instead of a nat_siginfo_t. + Remove casts. + (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to + 'ptrace'. Remove static assertions. + (top level): New static assertions. + +2016-07-25 Simon Marchi + + * top.h (make_delete_ui_cleanup): New declaration. + * top.c (delete_ui_cleanup): New function. + (make_delete_ui_cleanup): New function. + (new_ui_command): Create restore_ui cleanup earlier, create a + delete_ui cleanup and discard it on success. + +2016-07-25 Pedro Alves + Jan Kratochvil + + * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase + 't'. + +2016-07-25 Pedro Alves + + * nat/linux-procfs.c (enum proc_state): New enum. + (parse_proc_status_state): New function. + (linux_proc_pid_get_state): Replace output string buffer parameter + with an output proc_state parameter. Use parse_proc_status_state. + (linux_proc_pid_is_gone): Adjust to use proc_state values. + (linux_proc_pid_has_state): Change type of 'state' parameter; now + an enum proc_state. Adjust to linux_proc_pid_get_state interface + change. + (linux_proc_pid_is_stopped) + (linux_proc_pid_is_trace_stopped_nowarn) + (linux_proc_pid_is_zombie_maybe_warn): Adjust to + linux_proc_pid_get_state interface change. + +2016-07-25 Tim Wiederhake + + * MAINTAINERS (Write After Approval): Add Tim Wiederhake + +2016-07-25 Tim Wiederhake + + * NEWS: Resume btrace on reconnect. + * record-btrace.c: Added record-btrace.h include. + (record_btrace_open): Split into this and ... + (record_btrace_push_target): ... this. + (record_btrace_disconnect): New function. + (init_record_btrace_ops): Use record_btrace_disconnect. + * record-btrace.h: New file. + * remote.c: Added record-btrace.h include. + (remote_start_remote): Check recording status. + (remote_btrace_maybe_reopen): New function. + +2016-07-23 Gabriel Krisman Bertazi + + * xml-syscall.c (get_syscalls_by_group): New. + (get_syscall_group_names): New. + (struct syscall_group_desc): New structure to store group data. + (struct syscalls_info): Include field to store the group list. + (sysinfo_free_syscall_group_desc): New. + (free_syscalls_info): Free group list. + (syscall_group_create_syscall_group_desc): New. + (syscall_group_add_syscall): New. + (syscall_create_syscall_desc): Add syscall to its groups. + (syscall_start_syscall): Load group attribute. + (syscall_group_get_group_by_name): New. + (xml_list_syscalls_by_group): New. + (xml_list_of_groups): New. + * xml-syscall.h (get_syscalls_by_group): Export function + to retrieve a list of syscalls filtered by the group name. + (get_syscall_group_names): Export function to retrieve the list + of syscall groups. + * break-catch-syscall.c (catch_syscall_split_args): Verify if + argument is a syscall group and expand it to a list of syscalls + when creating catchpoints. + (catch_syscall_completer): Add word completion for system call + groups. + * configure.ac: Include dependency for xsltproc when building + in maintainer-mode. + * break-catch-syscall.c (_initialize_breakpoint): Update catch + syscall command documentation. + * NEWS: Include section about catching groups of syscalls. + * configure: Regenerate. + * data-directory/Makefile.in: Generate syscall xml when building + in maintainer mode. + * syscalls/gdb-syscalls.dtd: Include group attribute to the + syscall element. + * syscalls/apply-defaults.xsl: New. + * syscalls/linux-defaults.xml.in: New. + * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in. + * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in. + * syscalls/arm-linux.xml: Rename to arm-linux.xml.in. + * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in. + * syscalls/i386-linux.xml: Rename to i386-linux.xml.in. + * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in. + * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in. + * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in. + * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in. + * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in. + * syscalls/s390-linux.xml: Rename to s390-linux.xml.in. + * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in. + * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in. + * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in. + * syscalls/aarch64-linux.xml: Regenerate. + * syscalls/amd64-linux.xml: Regenerate. + * syscalls/arm-linux.xml: Regenerate. + * syscalls/i386-linux.xml: Regenerate. + * syscalls/mips-n32-linux.xml: Regenerate. + * syscalls/mips-n64-linux.xml: Regenerate. + * syscalls/mips-o32-linux.xml: Regenerate. + * syscalls/ppc-linux.xml: Regenerate. + * syscalls/ppc64-linux.xml: Regenerate. + * syscalls/s390-linux.xml: Regenerate. + * syscalls/s390x-linux.xml: Regenerate. + * syscalls/sparc-linux.xml: Regenerate. + * syscalls/sparc64-linux.xml: Regenerate. + +2016-07-23 Andrew Pinski + + * nat/aarch64-linux-hw-point.c + (aarch64_linux_get_debug_reg_capacity): Handle + ARMv8.1 and ARMv8.2 debug versions. + * nat/aarch64-linux-hw-point.h + (AARCH64_DEBUG_ARCH_V8_1): New define. + (AARCH64_DEBUG_ARCH_V8_2): New define. + +2016-06-30 Руслан Ижбулатов + + PR gdb/14529 + * windows-nat.c (signal_event_command): New command 'signal-event' + for W32 JIT debug support. + * NEWS: Add an entry about the new 'signal-event' command. + +2016-07-22 Tom Tromey + + PR rust/20162: + * dwarf2read.c (scan_partial_symbols) : + Call scan_partial_symbols for children when reading a Rust CU. + (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by + rustc. + (process_structure_scope) : Call + read_func_scope for Rust. + +2016-07-22 Yao Qi + + * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than + bt_ctf_get_int64. + +2016-07-21 Tom Tromey + + * rust-lang.c (rust_tuple_struct_type_p): Return false for empty + structs. + * rust-exp.y (struct_expr_list): Allow empty elements. + +2016-07-21 Tom Tromey + + * configure: Rebuild. + * warning.m4 (AM_GDB_WARNINGS) : Add + -Wunused-but-set-parameter, -Wunused-but-set-variable. + +2016-07-21 Pedro Alves + + * go32-nat.c (go32_create_inferior): Add cast. + * ser-go32.c (dos_noop): Delete. + (dos_flush_output, dos_setparity, dos_drain_output): New + functions. + (dos_write): Add cast. + (dos_ops): Use dos_flush_output, dos_setparity and + dos_drain_output. + * top.c (do_chdir_cleanup): Add cast. + +2016-07-21 Pedro Alves + + * windows-nat.c (handle_exception): Remove "th". + +2016-07-21 Pedro Alves + + * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block + scope that uses it. + +2016-07-20 John Baldwin + + * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK" + events. + (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not + defined. + (fbsd_add_vfork_done): Likewise. + (fbsd_is_vfork_done_pending): Likewise. + (fbsd_next_vfork_done): Likewise. + (fbsd_resume): Only ignore pending vfork done events if + "PTRACE_VFORK" is not defined. + (fbsd_wait): Only look for pending vfork done events if + "PTRACE_VFORK" is not defined. + [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE" + events. + (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK" + is not defined. + +2016-07-20 John Baldwin + + * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on + new child processes. + +2016-07-20 John Baldwin + + * fbsd-nat.c (fbsd_enable_lwp_events): Remove function. + (fbsd_enable_proc_events): New function. + (fbsd_enable_follow_fork): Remove function. + (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events". + (fbsd_post_attach): Likewise. + +2016-07-15 John Baldwin + + * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT. + (do_gdb_signal_to_host): Likewise. + * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to + programs. + * proc-events.c (signal_table): Add entry for SIGLIBRT. + +2016-07-14 Tom Tromey + + * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing + newline. + +2016-07-14 Tom Tromey + + * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr". + (mips_o32_push_dummy_call): Remove "stack_used_p". + * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove + "insn_bit28". + * rust-lang.c (rust_print_type): Remove "len". + * rust-exp.y (super_name): Remove "current_len". + * python/py-framefilter.c (py_print_type): Remove "type". + * mdebugread.c (parse_partial_symbols): Remove + "past_first_source_file". + : Remove "valu", "first_so_symnum", "prev_textlow_not_set". + * m2-valprint.c (m2_print_unbounded_array): Remove + "content_type". + (m2_val_print): Remove "i". + * linespec.c (unexpected_linespec_error): Remove "cleanup". + * f-valprint.c (f_val_print): Remove "i". + * elfread.c (elf_symtab_read): Remove "offset". + * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size". + * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch". + +2016-07-14 Tom Tromey + + * arch-utils.c (default_skip_permanent_breakpoint): Remove + "bp_insn". + * disasm.c (do_assembly_only): Remove "num_displayed". + * dwarf2read.c (read_abbrev_offset): Remove "length". + (dwarf_decode_macro_bytes) : Remove + "constant". + * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl". + * microblaze-tdep.c (microblaze_frame_cache): Remove "func". + * tracefile.c (trace_save): Remove "status". + +2016-07-14 Tom Tromey + + * symfile.c (simple_overlay_update_1): Remove initialization + of "size", and commented-out code. + (simple_overlay_update): Likewise. + +2016-07-14 Tom Tromey + + * tui/tui-winsource.c (tui_show_source_line): Use getcurx. + * tui/tui-io.c (tui_puts): Use getcurx. + (tui_redisplay_readline): Likewise. + +2016-07-14 Tom Tromey + + * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED. + +2016-07-14 Tom Tromey + + * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat + succeeded. + +2016-07-13 Tom Tromey + + PR python/15620, PR python/18620: + * python/py-evts.c (gdbpy_initialize_py_events): Call + add_new_registry for new events. + * python/py-events.h (events_object) : New fields. + * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the + breakpoint changed event. + (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event. + (gdbpy_breakpoint_modified): New function. + (gdbpy_initialize_breakpoints): Attach to the breakpoint modified + observer. + +2016-07-13 Tom Tromey + + PR python/17698: + * NEWS: Update. + * python/py-breakpoint.c (bppy_get_pending): New function. + (breakpoint_object_getset): Add entry for "pending". + * breakpoint.h (pending_breakpoint_p): Declare. + * breakpoint.c (pending_breakpoint_p): New function. + +2016-07-13 Tom Tromey + + * python/py-breakpoint.c (bppy_get_visibility) + (gdbpy_breakpoint_created): Use user_breakpoint_p. + +2016-07-13 Tom Tromey + + PR cli/18053: + * jit.c (jit_reader_load_command): Use tilde_expand. + (_initialize_jit): Fix help for jit-reader-unload. Set completer + for new commands. + +2016-07-12 Tom Tromey + + PR python/19293: + * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call + gdb.invalidate_cached_frames. + * python/lib/gdb/unwinder.py (register_unwinder): Call + gdb.invalidate_cached_frames. + * python/python.c (gdbpy_invalidate_cached_frames): New function. + (python_GdbMethods): Add entry for invalidate_cached_frames. + +2016-07-07 Walfred Tedeschi + + * cp-namespace.c (cp_lookup_bare_symbol): Initialize + lang_this.symbol. + +2016-07-07 Walfred Tedeschi + + * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as + parameter to look for the symbol "this". + + +2016-07-06 John Baldwin + + * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses. + +2016-07-06 John Baldwin + + * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with + left shifts. + +2016-07-06 John Baldwin + + * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting + the MEDIA_FP_REGNUM register. + +2016-07-06 John Baldwin + + * score-tdep.c (score7_malloc_and_get_memblock): Remove check for + negative size. + +2016-07-06 John Baldwin + + * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type. + +2016-07-06 Yao Qi + + * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call + arm_vfp_cprc_sub_candidate for static field. + +2016-07-06 Manish Goregaokar + + * rust-lang.c (rust_subscript): Allow subscripting pointers. + +2016-07-05 Jan Kratochvil + + * configure: Regenerate. + * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference. + +2016-07-01 Don Breazeal + + * remote.c (remote_get_memory_xfer_limit): New function. + * target-delegates.c: Regenerate. + * target.c (memory_xfer_partial): Call + target_ops.to_get_memory_xfer_limit. + * target.h (struct target_ops) : New + member. + +2016-07-01 John Baldwin + + * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ... + (struct fbsd_fork_info): ... this. + (struct fbsd_fork_info) : Rename to ... + (struct fbsd_fork_info) : ... this. + (fbsd_pending_children): Update type. + (fbsd_remember_child): Update type and field name. + (fbsd_is_child_pending): Likewise. + (fbsd_pending_vfork_done): New variable. + (fbsd_is_vfork_done_pending): New function. + (fbsd_next_vfork_done): New function. + (fbsd_resume): Don't resume processes with a pending vfork done + event. + (fbsd_wait): Report pending vfork done events. + (fbsd_follow_fork): Delay and record a pending vfork done event + for a vfork parent when detaching the child. + +2016-07-01 John Baldwin + + * fbsd-nat.c (super_resume): Move earlier next to "super_wait". + (resume_one_thread_cb): Move below fork following helper code. + (resume_all_threads_cb): Likewise. + (fbsd_resume): Likewise. + +2016-07-01 John Baldwin + + * fbsd-nat.c (fbsd_follow_fork): Only detach child if + "detach_fork" is true. + +2016-07-01 John Baldwin + + * x86bsd-nat.c: Include 'gdbthread.h'. + (x86bsd_dr_set): Set debug registers on all threads belonging to + the current inferior. + +2016-07-01 John Baldwin + + * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with + 'x86bsd-nat.h'. + * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of + 'amd64bsd-nat.h'. + (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c. + (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len' + with 'x86bsd_xsave_len'. + (amd64bsd_store_inferior_registers): Likewise. + (amd64bsd_target): Inherit from x86bsd_target. + (amd64bsd_dr_get): Rename and move to x86bsd-nat.c. + (amd64bsd_dr_set): Likewise. + (amd64bsd_dr_set_control): Likewise. + (amd64bsd_dr_set_addr): Likewise. + (amd64bsd_dr_get_addr): Likewise. + (amd64bsd_dr_get_status): Likewise. + (amd64bsd_dr_get_control): Likewise. + * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of + 'amd64bsd-nat.h'. + (super_mourn_inferior): Move to x86bsd-nat.c. + (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c. + (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with + 'x86bsd_xsave_len'. + (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and + mourn_inferior' target op. + * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o. + * config/i386/fbsd64.mh: Likewise. + * config/i386/nbsd64.mh: Likewise. + * config/i386/nbsdelf.mh: Likewise. + * config/i386/obsd.mh: Likewise. + * config/i386/obsd64.mh: Likewise. + * i386bsd-nat.c: Include 'x86bsd-nat.h'. + (i386bsd_xsave_len): Rename and move to x86bsd-nat.c. + (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len' + with 'x86bsd_xsave_len'. + (i386bsd_store_inferior_registers): Likewise. + (i386bsd_target): Inherit from x86bsd_target. + (i386bsd_dr_get): Rename and move to x86bsd-nat.c. + (i386bsd_dr_set): Likewise. + (i386bsd_dr_set_control): Likewise. + (i386bsd_dr_set_addr): Likewise. + (i386bsd_dr_get_addr): Likewise. + (i386bsd_dr_get_status): Likewise. + (i386bsd_dr_get_control): Likewise. + * i386bsd-nat.h (i386bsd_xsave_len): Remove. + (i386bsd_dr_set_control): Remove. + (i386bsd_dr_set_addr): Remove. + (i386bsd_dr_get_addr): Remove. + (i386bsd_dr_get_status): Remove. + (i386bsd_dr_get_control): Remove. + * i386fbsd-nat.c: Include 'x86bsd-nat.h'. + (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with + 'x86bsd_xsave_len'. + (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and + mourn_inferior' target op. + * x86bsd-nat.c: New file. + * x86bsd-nat.h: New file. + +2016-07-01 Pedro Alves + Tom Tromey + + * jit.c (jit_reader_load_command): Call reinit_frame_cache and + jit_inferior_created_hook. + (jit_reader_unload_command): Call reinit_frame_cache and + jit_inferior_exit_hook. + * jit.c (struct jit_unwind_private) : Delete field. + : New field. + (jit_unwind_reg_set_impl): Set the register's value in the + regcache. Free the passed-in gdb_reg_value. + (jit_dealloc_cache): Adjust to free the regcache. + (jit_frame_sniffer): Allocate a regcache instead of an array of + gdb_reg_value pointers. + (jit_frame_this_id): Adjust. + (jit_frame_prev_register): Read raw registers off of the regcache + instead of from the gdb_reg_value pointer array. Use + gdbarch_pseudo_register_read_value to read pseudo registers. + * regcache.c (regcache_raw_set_cached_value): New function, + factored out from ... + (regcache_raw_write): ... here. + * regcache.h (regcache_raw_set_cached_value): Declare. + +2016-07-01 Pedro Alves + Antoine Tremblay + + * inf-ptrace.c (inf_ptrace_detach_success): New function, factored + out from ... + (inf_ptrace_detach): ... here. + * inf-ptrace.h (inf_ptrace_detach_success): New declaration. + * linux-nat.c (get_pending_status): Rename to ... + (get_detach_signal): ... this, and return a host signal instead of + filling in a wait status. + (detach_one_lwp): New function, factored out from detach_callback + and adjusted to handle detaching from a zombie thread. + (detach_callback): Skip the leader thread. + (linux_nat_detach): No longer defer to inf_ptrace_detach to detach + the leader thread, nor build a signal string to pass down. + Instead, use target_announce_detach, detach_one_lwp and + inf_ptrace_detach_success. + +2016-07-01 Pedro Alves + + * breakpoint.c (breakpoint_init_inferior): Discard watchpoint + locations. + * infcmd.c (detach_command): Call breakpoint_init_inferior. + +2016-07-01 Pedro Alves + + * darwin-nat.c (darwin_detach): Use target_announce_detach. + * inf-ptrace.c (inf_ptrace_detach): Likewise. + * nto-procfs.c (procfs_detach): Likewise. + * remote.c (remote_detach_1): Likewise. + * target.c (target_announce_detach): New function. + * target.h (target_announce_detach): New declaration. + +2016-06-29 Tom Tromey + + PR python/20129: + * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter) + (SetFrameFilterPriority._set_filter_priority): Use "frame_filter", + not "name". + +2016-06-29 Tom Tromey + + PR gdb/17210: + * target.c (free_memory_read_result_vector): Take a pointer to the + VEC as an argument. + (read_memory_robust): Install a cleanup for "result". + * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. + +2016-06-29 Manish Goregaokar + + * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL. + +2016-06-29 Manish Goregaokar + + * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep. + +2016-06-28 Yao Qi + + * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for + variable new_offset. + +2016-06-27 Manish Goregaokar + + * rust-lang.c (rust_print_type, rust_decorations): Print unit + types as "()". + (rust_print_type): Omit return type for functions returning unit. + +2016-06-25 Pierre-Marie de Rodat + + * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object + when there is an error during the breakpoint creation. + +2016-06-25 Tom Tromey + + * rust-lang.c (rust_get_disr_info, rust_print_type): Fix + formatting. + +2016-06-25 Manish Goregaokar + + PR gdb/20239 + * rust-lang.c (rust_get_disr_info): Correctly interpret + NonZero-optimized enums of arbitrary depth. + (rust_print_type): Correctly print NonZero-optimized + enums. + +2016-06-24 David Taylor + + PR gdb/17520 Structure offset wrong when 1/4 GB or greater. + * c-lang.h: Change all parameters, variables, and struct or union + members used as struct or union fie3ld offsets from int to + LONGEST. + * c-valprint.c: Likewise. + * cp-abi.c: Likewise. + * cp-abi.h: Likewise. + * cp-valprint.c: Likewise. + * d-valprint.c: Likewise. + * dwarf2loc.c: Likewise. + * eval.c: Likewise. + * extension-priv.h: Likewise. + * extension.c: Likewise. + * extension.h: Likewise. + * findvar.c: Likewise. + * gdbtypes.h: Likewise. + * gnu-v2-abi.c: Likewise. + * gnu-v3-abi.c: Likewise. + * go-valprint.c: Likewise. + * guile/guile-internal.h: Likewise. + * guile/scm-pretty-print.c: Likewise. + * jv-valprint.c Likewise. + * opencl-lang.c: Likewise. + * p-lang.h: Likewise. + * python/py-prettyprint.c: Likewise. + * python/python-internal.h: Likewise. + * spu-tdep.c: Likewise. + * typeprint.c: Likewise. + * valarith.c: Likewise. + * valops.c: Likewise. + * valprint.c: Likewise. + * valprint.h: Likewise. + * value.c: Likewise. + * value.h: Likewise. + * p-valprint.c: Likewise. + * c-typeprint.c (c_type_print_base): When printing offset, use + plongest, not %d. + * gdbtypes.c (recursive_dump_type): Ditto. + +2016-06-24 David Taylor + + * MAINTAINERS (Write After Approval): Add David Taylor. + +2016-06-24 John Baldwin + + * configure.ac: Check for support for system call LWP fields on + FreeBSD. + * config.in, configure: Rebuild. + * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml. + * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]: + Report system call events. + [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE] + (fbsd_set_syscall_catchpoint): New function. + (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]: + Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint". + * fbsd-tdep.c: Include xml-syscall.h + (fbsd_get_syscall_number): New function. + (fbsd_init_abi): Set XML system call file name. + Add "get_syscall_number" gdbarch method. + * syscalls/freebsd.xml: New file. + +2016-06-24 John Baldwin + + * fbsd-tdep.c: Include "auxv.h". + (fbsd_print_auxv_entry): New function. + (fbsd_init_abi): Install gdbarch "print_auxv_entry" method. + +2016-06-24 John Baldwin + + * auxv.c (fprint_auxv_entry): New function. + (default_print_auxv_entry): New function. + (fprint_target_auxv): Use gdbarch_print_auxv_entry. + * auxv.h (enum auxv_format): New enum. + (fprint_auxv_entry): Declare. + (default_print_auxv_entry): Declare. + * gdbarch.sh (print_auxv_entry): New. + * gdbarch.c, gdbarch.h: Re-generated. + +2016-06-24 John Baldwin + + * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial. + (fbsd_xfer_partial): New function. + (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to + "fbsd_xfer_partial". + +2016-06-23 Tom Tromey + + * symtab.c (symbol_find_demangled_name): Loop over languages and + use language_sniff_from_mangled_name. + * rust-lang.c (rust_sniff_from_mangled_name): New function. + (rust_language_defn): Update. + * p-lang.c (pascal_language_defn): Update. + * opencl-lang.c (opencl_language_defn): Update. + * objc-lang.c (objc_sniff_from_mangled_name): New function. + (objc_language_defn): Update. + * m2-lang.c (m2_language_defn): Update. + * language.h (struct language_defn) : New + field. + (language_sniff_from_mangled_name): Declare. + * language.c (language_sniff_from_mangled_name): New function. + (unknown_language_defn, auto_language_defn, local_language_defn): + Update. + * jv-lang.c (java_sniff_from_mangled_name): New function. + (java_language_defn): Use it. + * go-lang.c (go_sniff_from_mangled_name): New function. + (go_language_defn): Use it. + * f-lang.c (f_language_defn): Update. + * defs.h (enum language): Reorder. + * d-lang.c (d_sniff_from_mangled_name): New function. + (d_language_defn): Use it. + * cp-support.h (gdb_sniff_from_mangled_name): Declare. + * cp-support.c (gdb_sniff_from_mangled_name): New function. + * c-lang.c (c_language_defn, cplus_language_defn) + (asm_language_defn, minimal_language_defn): Update. + * ada-lang.c (ada_sniff_from_mangled_name): New function. + (ada_language_defn): Use it. + +2016-06-23 Tom Tromey + + * ada-lang.c (ada_extensions): New array. + (ada_language_defn): Use it. + * c-lang.c (c_extensions): New array. + (c_language_defn): Use it. + (cplus_extensions): New array. + (cplus_language_defn): Use it. + (asm_extensions): New array. + (asm_language_defn): Use it. + (minimal_language_defn): Update. + * d-lang.c (d_extensions): New array. + (d_language_defn): Use it. + * f-lang.c (f_extensions): New array. + (f_language_defn): Use it. + * go-lang.c (go_language_defn): Update. + * jv-lang.c (java_extensions): New array. + (java_language_defn): Use it. + * language.c (add_language): Call add_filename_language. + (unknown_language_defn, auto_language_defn, local_language_defn): + Update. + * language.h (struct language_defn) : New + field. + * m2-lang.c (m2_language_defn): Update. + * objc-lang.c (objc_extensions): New array. + (objc_language_defn): Use it. + * opencl-lang.c (opencl_language_defn): Update. + * p-lang.c (p_extensions): New array. + (pascal_language_defn): Use it. + * rust-lang.c (rust_extensions): New array. + (rust_language_defn): Use it. + * symfile.c (add_filename_language): No longer static. Make "ext" + const. + (init_filename_language_table): Remove. + (_initialize_symfile): Update. + * symfile.h (add_filename_language): Declare. + +2016-06-23 Tom Tromey + + * symfile.c (filename_language_table): Now a VEC. + (fl_table_size, fl_table_next): Remove. + (add_filename_language): Use VEC_safe_push. + (set_ext_lang_command, info_ext_lang_command) + (deduce_language_from_filename): Use VEC_iterate. + (init_filename_language_table): Use VEC_empty. + +2016-06-23 Tom Tromey + + * python/python.c (gdbpy_parameter): Now static. + * python/python-internal.h (gdbpy_parameter): Don't declare. + +2016-06-23 Tom Tromey + + PR gdb/16483: + * python/lib/gdb/command/frame_filters.py + (InfoFrameFilter.list_frame_filters): Rename to print_list. Print + nothing if no filters found. Return value indicating whether + filters were printed. + (InfoFrameFilter.print_list): Remove. + (InfoFrameFilter.invoke): Print message if no frame filters + found. + +2016-06-21 Walfred Tedeschi + + * f-valprint.c (f_val_print): Add field names for printing + derived types fields. + +2016-06-21 Andreas Arnez + + * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo + in name of last-break regset. + +2016-06-21 Pedro Alves + + * fork-child.c (fork_inferior): Switch the child to the main UI + right after vfork. Save/restore the current UI in the parent. + Flush outputs of the main UI instead of the current UI. + +2016-06-21 Pedro Alves + + * breakpoint.c (watchpoint_check): Send watchpoint-deleted output + to all UIs. + +2016-06-21 Pedro Alves + + * NEWS: Mention support for running interpreters on separate + UIs and the new new-ui command. + +2016-06-21 Pedro Alves + + * interps.c (set_top_level_interpreter): New function, factored + out from captured_main. + (interpreter_completer): Make extern. + * interps.h (set_top_level_interpreter, interpreter_completer): + New declarations. + (captured_main): Use set_top_level_interpreter. + * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0. + (open_terminal_stream, new_ui_command): New functions. + (init_main): Install the "new-ui" command. + +2016-06-21 Pedro Alves + + * cli/cli-script.c (read_next_line): Adjust to per-UI stdin. + (read_command_lines): Use input_interactive_p instead of + input_from_terminal_p. + * defs.h (struct ui): Forward declare. + (input_from_terminal_p): Rename to ... + (input_interactive_p): ... this. + * event-top.c (stdin_event_handler): Pass 0 as from_tty argument + to quit_command. + (command_handler): Adjust to per-UI stdin. + (handle_line_of_input): Adjust to per-UI stdin and use + input_interactive_p instead of ISATTY and input_from_terminal_p. + (gdb_readline_no_editing_callback): Adjust to per-UI stdin. + (command_line_handler): Always pass true as "from_tty" parameter + of handle_line_of_input and execute_command. + (async_sigterm_handler): Pass 0 as from_tty argument to + quit_command. + * inflow.c (interactive_mode, show_interactive_mode): Moved to ... + (gdb_has_a_terminal): Don't check interactive_mode here. + (_initialize_inflow): Don't install "set interactive-mode" here. + * main.c (captured_command_loop): Adjust to per-UI stdin. + * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI + stdin. + * top.c (new_ui): Save the stdin stream and whether it's a tty. + (dont_repeat): Adjust to per-UI stdin. + (command_line_input): Adjust to per-UI stdin and to use + input_interactive_p. + (quit_force): Write history if any UI supports interactive input. + (interactive_mode, show_interactive_mode): Move here, from + inflow.c. + (input_from_terminal_p): Rename to ... + (input_interactive_p): ... this, and check the "interactive_mode" + global instead of calling gdb_has_a_terminal. + (_initialize_top): Install "set interactive-mode" here. + * top.h (struct ui) : New + fields. + * utils.c (quit): Pass 0 as from_tty argument to quit_force. + (defaulted_query): Adjust to per-UI stdin and to use + input_interactive_p. + +2016-06-21 Pedro Alves + + * event-top.c (stdin_event_handler): Don't quit gdb if it was a + secondary UI's input stream that closed. Instead, just delete the + UI. + +2016-06-21 Pedro Alves + + * event-top.c (main_ui_): Delete. + (main_ui, current_ui, ui_list): No longer initialize here. + * main.c (captured_main): UI initialization code factored out to + new new_ui function. + (gdb_main): Wrap captured_main with TRY/CATCH instead of + catch_errors. + * top.c (highest_ui_num): New global. + (new_ui): New function. + * top.h (struct ui) : New field. + (new_ui): New declaration. + +2016-06-21 Pedro Alves + + * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's + nothing to print. Use should_print_stop_to_console. + * tui/tui-interp.c (tui_on_normal_stop): Likewise. + +2016-06-21 Pedro Alves + + * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter. + (until_break_fsm_should_stop, until_break_fsm_clean_up): Add + thread parameter. + (until_break_command): Pass command interpreter to thread fsm + ctor. + * cli/cli-interp.c (should_print_stop_to_console): Adjust. + * gdbthread.h (struct thread_control_state) : + Delete field. + * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter. + Pass it down. + (call_thread_fsm_should_stop): Add thread parameter. + (call_function_by_hand_dummy): Pass command interpreter to thread + fsm ctor. Pass thread pointer to fsm clean up method. + * infcmd.c: Include interps.h. + (struct step_command_fsm) : Delete field. + (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down. + (step_command_fsm_prepare): Remove references to fsm's thread + field. + (step_1): Pass command interpreter to thread + fsm ctor. Pass thread pointer to fsm clean up method. + (step_command_fsm_should_stop, step_command_fsm_clean_up): Add + thread parameter and use it. + (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down. + (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread + parameter and use it. + (until_next_command): Pass command interpreter to thread fsm ctor. + (struct finish_command_fsm) : Delete field. + (finish_command_fsm_ops): Add NULL slot for should_notify_stop. + (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it + down. Remove thread parameter and adjust. + (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add + thread parameter and use it. + (finish_command): Pass command interpreter to thread fsm ctor. + Don't pass thread. + * infrun.c (follow_fork): Move thread fsm to child fork instead of + command interpreter, only. + (clear_proceed_status_thread): Remove reference to command_interp. + (proceed): Don't record the thread's command interpreter. + (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up + method. + (fetch_inferior_event): Pass thread to fsm should_stop method. + * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter. + Store it. + (thread_fsm_clean_up, thread_fsm_should_stop): Add thread + parameter and pass it down. + * thread-fsm.h (struct thread_fsm) : New field. + (struct thread_fsm_ops) : Add thread + parameter. + (thread_fsm_ctor): Add 'cmd_interp' parameter. + (thread_fsm_clean_up, thread_fsm_should_stop): Add thread + parameter. + * thread.c (thread_cancel_execution_command): Pass thread to + thread fsm clean_up method. + +2016-06-21 Pedro Alves + + * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h. + (should_print_stop_to_console): New function, factored out from + mi_on_normal_stop_1. + * cli/cli-interp.h (should_print_stop_to_console): Declare. + * mi/mi-interp.c (mi_on_normal_stop_1): Use + should_print_stop_to_console. Pass it the current UI's console + interpreter. + * mi/mi-main.c (captured_mi_execute_command): Use the + INTERP_CONSOLE symbol rather than explicit "console". + +2016-06-21 Pedro Alves + + * infcmd.c (prepare_execution_command): Use + all_uis_on_sync_execution_starting. + * infrun.c (all_uis_on_sync_execution_starting): New function. + * infrun.h (all_uis_on_sync_execution_starting): Declare. + +2016-06-21 Pedro Alves + + * annotate.c: Include top.h. + (async_background_execution_p): Delete. + (print_value_flags): Check the UI's prompt state rather then + async_background_execution_p. + * event-loop.c (start_event_loop): Set the prompt state to + PROMPT_NEEDED. + * event-top.c (display_gdb_prompt, async_enable_stdin) + (async_disable_stdin): Check the current UI's prompt state instead + of the sync_execution global. + (command_line_handler): Set the prompt state to PROMPT_NEEDED + before running a command, and display the prompt if still needed + afterwards. + * infcall.c (struct call_thread_fsm) : New field. + (new_call_thread_fsm): New parameter 'waiting_ui'. Store it. + (call_thread_fsm_should_stop): Set the prompt state to + PROMPT_NEEDED. + (run_inferior_call): Adjust to temporarily set the prompt state to + PROMPT_BLOCKED instead of using the sync_execution global. + (call_function_by_hand_dummy): Pass the current UI to + new_call_thread_fsm. + * infcmd.c: Include top.h. + (continue_1): Check the current UI's prompt state instead of the + sync_execution global. + (continue_command): Validate global execution state before calling + prepare_execution_command. + (step_1): Call all_uis_check_sync_execution_done. + (attach_post_wait): Don't call async_enable_stdin here. Remove + reference to sync_execution. + * infrun.c (sync_execution): Delete global. + (follow_fork_inferior) + (reinstall_readline_callback_handler_cleanup): Check the current + UI's prompt state instead of the sync_execution global. + (check_curr_ui_sync_execution_done) + (all_uis_check_sync_execution_done): New functions. + (fetch_inferior_event): Call all_uis_check_sync_execution_done + instead of trying to determine whether the global sync execution + changed. + (handle_no_resumed): Check the prompt state of all UIs. + (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED + UIs. Emit the "Switching to" notification to all UIs. Enable + stdin in all UIs. + * infrun.h (sync_execution): Delete. + (all_uis_check_sync_execution_done): Declare. + * main.c (captured_command_loop): Don't call + interp_pre_command_loop if the prompt is blocked. + (catch_command_errors, catch_command_errors_const): Adjust. + (captured_main): Set the initial prompt state to PROMPT_NEEDED. + * mi/mi-interp.c (display_mi_prompt): Set the prompt state to + PROMPTED. + (mi_interpreter_resume): Don't clear sync_execution. Remove hack + comment. + (mi_execute_command_input_handler): Set the prompt state to + PROMPT_NEEDED before executing the command, and only display the + prompt if the prompt state is PROMPT_NEEDED afterwards. + (mi_on_resume_1): Adjust to check the prompt state. + * target.c (target_terminal_inferior): Adjust to check the prompt + state. + * top.c (wait_sync_command_done, maybe_wait_sync_command_done) + (execute_command): Check the current UI's prompt state instead of + sync_execution. + * top.h (enum prompt_state): New. + (struct ui) : New field. + (ALL_UIS): New macro. + +2016-06-21 Pedro Alves + + * top.c (gdb_secondary_prompt_depth): Delete. + (gdb_in_secondary_prompt_p): Add ui parameter. Use it. + (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to + per-UI gdb_secondary_prompt_depth. + * top.h (struct ui) : New field. + +2016-06-21 Pedro Alves + + * cli/cli-interp.c (cli_interpreter_pre_command_loop): New + function. + (cli_interp_procs): Install it instead of cli_command_loop. + * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare. + * event-top.c (cli_command_loop): Delete. + * interps.c (interp_new): Remove reference to command_loop_proc. + (current_interp_command_loop): Delete. + (interp_pre_command_loop): New function. + (interp_command_loop_ftype): Delete. + * interps.h (interp_pre_command_loop_ftype): New typedef. + (struct interp_procs) : Delele field. + : New field. + (current_interp_command_loop): Delete declaration. + (interp_pre_command_loop): New declaration. + * main.c (captured_command_loop): Call interp_pre_command_loop + instead of current_interp_command_loop and start an event loop. + * mi/mi-interp.c (mi_command_loop): Delete. + (mi_interpreter_pre_command_loop): New. + (mi_interp_procs): Update. + * tui/tui-interp.c (tui_interp_procs): Install + cli_interpreter_pre_command_loop instead of cli_command_loop. + +2016-06-21 Pedro Alves + + * interps.c (current_interpreter): New function. + * interps.h (current_interpreter): New declaration. + * mi/mi-cmds.h (raw_stdout): Delete declaration. + * mi/mi-common.h (struct mi_interp) : New field. + * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust + to per-UI raw_stdout. + (mi_interpreter_init): Adjust to per-UI raw_stdout. + (mi_on_sync_execution_done, mi_execute_command_input_handler) + (mi_command_loop): Pass MI instance to display_mi_prompt. + (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1) + (mi_on_resume): Adjust to per-UI raw_stdout. + (saved_raw_stdout): Delete. + (mi_set_logging): Adjust to per-UI raw_stdout and + saved_raw_stdout. + * mi/mi-main.c (raw_stdout): Delete. + (mi_cmd_gdb_exit, captured_mi_execute_command) + (mi_print_exception, mi_load_progress): Adjust to per-UI + raw_stdout. + (print_diff_now, mi_print_timing_maybe): New ui_file parameter. + Pass it along. + (print_diff): New ui_file parameter. Send output there instead of + raw_stdout. + * mi/mi-main.h (struct ui_file): Forward declare. + (mi_print_timing_maybe): Add ui_file parameter. + +2016-06-21 Pedro Alves + + * mi/mi-interp.c (display_mi_prompt): New function. + +2016-06-21 Pedro Alves + + * target.c (target_terminal_inferior): Bail out after + unregistering input_fd if not on the main UI. + (target_terminal_ours): Bail out after registering input_fd if not + on the main UI. + (target_terminal_ours_for_output): Bail out if not on the main UI. + +2016-06-21 Pedro Alves + + * event-top.c (restore_ui_cleanup): Make extern. + * infrun.c (fetch_inferior_event): Always switch to the main UI. + * top.h (restore_ui_cleanup): Declare. + +2016-06-21 Pedro Alves + + PR mi/20034 + * cli/cli-interp.c: Include cli-interp.h and event-top.h. + (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the + UI's input_handler here. + (cli_interpreter_supports_command_editing): New function. + (cli_interp_procs): Install it. + * cli/cli-interp.h: New file. + * event-top.c (async_command_editing_p): Rename to ... + (set_editing_cmd_var): ... this. + (change_line_handler): Add parameter 'editing', and use it. Bail + early if the interpreter doesn't support editing. Don't touch + readline state if editing is off. + (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install) + (gdb_rl_callback_handler_reinstall): Assert the current UI is the + main UI. + (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if + not using readline. Check whether the current UI is using command + editing instead of checking the async_command_editing_p global. + (set_async_editing_command): Delete. + (gdb_setup_readline): Add 'editing' parameter. Only allow editing + on the main UI. Don't touch readline state if editing is off. + (gdb_disable_readline): Don't touch readline state if editing is + off. + * event-top.h (gdb_setup_readline): Add 'int' parameter. + (set_async_editing_command): Delete declaration. + (change_line_handler, command_line_handler): Declare. + (async_command_editing_p): Rename to ... + (set_editing_cmd_var): ... this. + * infrun.c (reinstall_readline_callback_handler_cleanup): Check + whether the current UI has editing enabled rather than checking + the async_command_editing_p global. + * interps.c (interp_supports_command_editing): New function. + * interps.h (interp_supports_command_editing_ftype): New typedef. + (struct interp_procs) : New field. + (interp_supports_command_editing): Declare. + * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to + gdb_setup_readline. Don't clear the async_command_editing_p + global. Update comments. + * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check + whether the current UI has editing enabled rather than checking + the async_command_editing_p global. Don't touch readline state if + editing is off. + (undo_terminal_modifications_before_exit): Switch to the main UI. + Unconditionally call gdb_disable_readline. + (set_editing): New function. + (show_async_command_editing_p): Rename to ... + (show_editing): ... this. Show the state of the current UI. + (_initialize_top): Adjust. + * top.h (struct ui) : New field. + * tui/tui-interp.c: Include cli/cli-interp.h. + (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's + input_handler. + (tui_interp_procs): Install + cli_interpreter_supports_command_editing. + * tui/tui-io.c (tui_getc): Check whether the current UI has + editing enabled rather than checking the async_command_editing_p + global. + +2016-06-21 Pedro Alves + + * top.c: Call gen_ret_current_ui_field_ptr for current_uiout. + * top.h (struct ui) : New field. + * ui-out.c (current_uiout): Delete. + * ui-out.h (current_uiout): Delete. + (current_ui_current_uiout_ptr): New declaration. + (current_uiout): Reimplement as wrapper around + current_ui_current_uiout_ptr. + +2016-06-21 Pedro Alves + + * ui-out.c (default_ui_out_impl): Delete. + (def_uiout): Delete. + (current_uiout): Set to NULL. + (default_table_begin, default_table_body, default_table_end) + (default_table_header, default_begin, default_end) + (default_field_int, default_field_skip, default_field_string) + (default_field_fmt, default_spaces, default_text, default_message) + (default_wrap_hint, default_flush, default_data_destroy): Delete. + +2016-06-21 Pedro Alves + + * event-top.c (gdb_setup_readline): Pass the UI's outstream and + errstream to stdout_fileopen and stderr_fileopen. + * exceptions.c: Include top.h. + (print_flush): Open the current UI's outstream file descriptor, + instead of hardcoding file descriptor 1. + * main.c (captured_main): Save the main UI's out and error + streams. Adjust stderr_fileopen call. + * top.h (struct ui) : New fields. + * ui-file.c (stderr_fileopen): Add stream parameter. Use it + instead of stderr. + * ui-file.h (stderr_fileopen): Add stream parameter and update + comment. + +2016-06-21 Pedro Alves + + * event-top.c (input_fd): Delete. + (stdin_event_handler): Switch to the UI whose input descriptor got + the event. Adjust to per-UI input_fd. + (gdb_setup_readline): Don't set the input_fd global. Adjust to + per-UI input_fd. + (gdb_disable_readline): Adjust to per-UI input_fd. + * event-top.h (input_fd): Delete declaration. + * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd + from the event-loop here. + (linux_nat_terminal_ours): Don't register input_fd in the + event-loop here. + * main.c (captured_main): Adjust to per-UI input_fd. + * remote.c (remote_terminal_inferior): Don't remove input_fd from + the event-loop here. + (remote_terminal_ours): Don't register input_fd in the event-loop + here. + * target.c: Include top.h and event-top.h. + (target_terminal_inferior): Remove input_fd from the event-loop + here. + (target_terminal_ours): Register input_fd in the event-loop. + * top.h (struct ui) : New field. + +2016-06-21 Pedro Alves + + * cli/cli-script.c (execute_user_command, read_next_line) + (read_next_line): Adjust to per-UI instream. + * event-top.c (stdin_event_handler, command_handler) + (handle_line_of_input, command_line_handler) + (gdb_readline_no_editing_callback, async_sigterm_handler) + (gdb_setup_readline): Likewise. + * inflow.c: Include top.h. + (gdb_has_a_terminal, child_terminal_init_with_pgrp) + (gdb_save_tty_state, child_terminal_inferior) + (child_terminal_ours_1, copy_terminal_info): Use the main UI. + (initialize_stdin_serial): Adjust to per-UI instream. + * main.c (captured_command_loop, captured_main): Adjust to per-UI + instream. + * mi/mi-interp.c (mi_execute_command_wrapper): Likewise. + * python/python.c (python_interactive_command): Likewise. + * terminal.h (struct ui): Forward declare. + (initialize_stdin_serial): Add struct ui parameter. + * top.c (instream): Delete. + (do_restore_instream_cleanup, read_command_file, dont_repeat) + (gdb_readline_no_editing, command_line_input) + (input_from_terminal_p, gdb_init): Adjust to per-UI instream. + * top.h (struct ui) : New field. + (instream): Delete declaration. + (quit): Adjust to per-UI instream. + +2016-06-21 Pedro Alves + + * event-loop.c: Include top.h. + (invoke_async_signal_handlers): Switch to the main UI. + * event-top.c (main_ui_): Update comment. + (main_ui): New global. + * top.h (main_ui): Declare. + +2016-06-21 Pedro Alves + + * cli/cli-interp.c (cli_interp): Delete. + (as_cli_interp): New function. + (cli_on_normal_stop, cli_on_signal_received) + (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited) + (cli_on_no_history): Send output to all CLI UIs. + (cli_on_sync_execution_done, cli_on_command_error): Skip output if + the top level interpreter is not a CLI. + (cli_interpreter_init): Don't set cli_interp or install observers + here. + (_initialize_cli_interp): Install observers here. + * event-top.c (main_ui_, ui_list): New globals. + (current_ui): Point to main_ui_. + (restore_ui_cleanup, switch_thru_all_uis_init) + (switch_thru_all_uis_cond, switch_thru_all_uis_next): New + functions. + * mi/mi-interp.c (as_mi_interp): New function. + (mi_interpreter_init): Don't install observers here. + (mi_on_sync_execution_done): Skip output if the top level + interpreter is not a MI. + (mi_new_thread, mi_thread_exit, mi_record_changed) + (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit) + (mi_inferior_removed): Send output to all MI UIs. + (find_mi_interpreter, mi_interp_data): Delete. + (find_mi_interp): New function. + (mi_on_signal_received, mi_on_end_stepping_range) + (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output + to all MI UIs. + (mi_on_normal_stop): Rename to ... + (mi_on_normal_stop_1): ... this. + (mi_on_normal_stop): Reimplement, sending output to all MI UIs. + (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted) + (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted) + (mi_breakpoint_modified, mi_output_running_pid): Send output to + all MI UIs. + (mi_on_resume): Rename to ... + (mi_on_resume_1): ... this. Don't handle infcalls here. + (mi_on_resume): Reimplement, sending output to all MI UIs. + (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed) + (mi_memory_changed): Send output to all MI UIs. + (report_initial_inferior): Install observers here. + * top.h (struct ui) : New field. + (ui_list): Declare. + (struct switch_thru_all_uis): New. + (switch_thru_all_uis_init, switch_thru_all_uis_cond) + (switch_thru_all_uis_next): Declare. + (SWITCH_THRU_ALL_UIS): New macro. + * tui/tui-interp.c (tui_interp): Delete global. + (as_tui_interp): New function. + (tui_on_normal_stop, tui_on_signal_received) + (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) + (tui_on_no_history): Send output to all TUI UIs. + (tui_on_sync_execution_done, tui_on_command_error): Skip output if + the top level interpreter is not a TUI. + (tui_init): Don't set tui_interp or install observers here. + (_initialize_tui_interp): Install observers here. + +2016-06-21 Pedro Alves + + * cli/cli-interp.c (cli_uiout): Delete, moved into ... + (struct cli_interp): ... this new structure. + (cli_on_normal_stop, cli_on_signal_received) + (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited) + (cli_on_no_history): Use interp_ui_out. + (cli_interpreter_init): If top level, set the cli_interp global. + (cli_interpreter_init): Return the interp's data instead of NULL. + (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust + to cli_uiout being in the interpreter's data. + (cli_interp_procs): New, factored out from _initialize_cli_interp. + (cli_interp_factory): New function. + (_initialize_cli_interp): Call interp_factory_register. + * interps.c (get_interp_info): New, factored out from ... + (get_current_interp_info): ... this. + (interp_new): Add parameter 'data'. Store it. + (struct interp_factory): New function. + (interp_factory_p): New typedef. Define a VEC_P. + (interpreter_factories): New global. + (interp_factory_register): New function. + (interp_add): Add 'ui' parameter. Use get_interp_info and + interp_lookup_existing. + (interp_lookup): Rename to ... + (interp_lookup_existing): ... this. Add 'ui' parameter. Don't + check for NULL or empty name here. + (interp_lookup): Add 'ui' parameter and reimplement. + (interp_set_temp, interpreter_exec_cmd): Adjust. + (interpreter_completer): Complete on registered interpreter + factories instead of interpreters. + * interps.h (interp_factory_func): New typedef. + (interp_factory_register): Declare. + (interp_new, interp_add): Adjust. + (interp_lookup): Declare. + * main.c (captured_main): Adjust. + * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust. + (mi_interp_procs): New, factored out from + _initialize_mi_interp. + (mi_interp_factory): New function. + * python/python.c (execute_gdb_command): Adjust. + * tui/tui-interp.c (tui_init): If top level, set the tui_interp + global. + (tui_interp_procs): New. + (tui_interp_factory): New function. + (_initialize_tui_interp): Call interp_factory_register. + +2016-06-21 Pedro Alves + + * breakpoint.c (bpstat_do_actions_1): Access the current UI's + async field instead of the interpreter_async global. + * cli/cli-script.c (execute_user_command, while_command) + (if_command, script_from_file): Likewise. + * compile/compile.c: Include top.h instead of interps.h. + (compile_file_command, compile_code_command) + (compile_print_command): Access the current UI's async field + instead of the interpreter_async global. + * guile/guile.c: Include top.h instead of interps.h. + (guile_repl_command, guile_command, gdbscm_execute_gdb_command): + Access the current UI's async field instead of the + interpreter_async global. + * guile/scm-ports.c: Include top.h instead of interps.h. + (ioscm_with_output_to_port_worker): Access the current UI's async + field instead of the interpreter_async global. + * inf-loop.c (inferior_event_handler): Likewise. + * infcall.c (run_inferior_call): Likewise. + * infrun.c (reinstall_readline_callback_handler_cleanup) + (fetch_inferior_event): Likewise. + * interps.c (interpreter_async): Delete. + (struct ui_interp_info): New. + (get_current_interp_info): New function. + (interp_list, current_interpreter, top_level_interpreter_ptr): + Delete. + (interp_add, interp_set, interp_lookup, interp_ui_out) + (current_interp_set_logging, interp_set_temp) + (current_interp_named_p): Adjust to per-UI interpreters. + (command_interpreter): Delete. + (command_interp, current_interp_command_loop, interp_quiet_p) + (interp_exec, interpreter_exec_cmd, interpreter_completer) + (top_level_interpreter, top_level_interpreter_data): Adjust to + per-UI interpreters. + * interps.h (interpreter_async): Delete. + * main.c (captured_command_loop): Access the current UI's async + field instead of the interpreter_async global. + * python/python.c (python_interactive_command, python_command) + (execute_gdb_command): Likewise. + * top.c (maybe_wait_sync_command_done, execute_command_to_string): + Access the current UI's async field instead of the + interpreter_async global. + * top.h (struct tl_interp_info): Forward declare. + (struct ui) : New fields. + +2016-06-21 Pedro Alves + + * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete + globals. + (gen_ret_current_ui_field_ptr): New macro. Use it to generate + wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin. + * top.h (struct ui) : New fields. + (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr) + (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare. + (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as + macros. + +2016-06-21 Pedro Alves + + * event-top.c: Update readline-related comments. + (input_handler, call_readline): Delete globals. + (gdb_rl_callback_handler): Call the current UI's input_handler + method. + (change_line_handler): Adjust to set current UI's properties + instead of globals. + (current_ui_, current_ui): New globals. + (get_command_line_buffer): Rewrite to refer to the current UI. + (stdin_event_handler): Adjust to call the call_readline method of + the current UI. + (gdb_readline_no_editing_callback): Adjust to call the current UI's + input_handler method. + (gdb_setup_readline): Adjust to set current UI's properties + instead of globals. + * event-top.h (call_readline, input_handler): Delete declarations. + * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current + UI's properties instead of globals. + * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's + properties instead of globals. + (gdb_readline_wrapper): Adjust to call and set current UI's + methods instead of globals. + * top.h: Include buffer.h and event-loop.h. + (struct ui): New struct. + (current_ui): New declaration. + +2016-06-21 Pedro Alves + + * ada-lang.c (ada_exception_name_addr_1): Add comment. + (print_it_exception): Select the current frame. + +2016-06-17 Yan-Ting Lin + + * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o. + (HFILES_NO_SRCDIR): Add nds32-tdep.h. + (ALLDEPFILES): Add nds32-tdep.c. + * NEWS: Mention new NDS32 port. + * configure.tgt: Add NDS32. + * nds32-tdep.c: New file. + * nds32-tdep.h: New file. + * features/Makefile (XMLTOC): Add nds32.xml. + * features/nds32-core.xml: New file. + * features/nds32-fpu.xml: New file. + * features/nds32-system.xml: New file. + * features/nds32.c: New file (generated). + * features/nds32.xml: New file. + +2016-06-14 John Baldwin + + * v850-tdep.c (v850_use_struct_convention): Trim type length checks. + +2016-06-14 John Baldwin + + * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch. + +2016-06-14 John Baldwin + + * rs6000-tdep.c (ppc_process_record_op31): Initialize ra. + +2016-06-13 Nick Clifton + + * gdbtypes.c (replace_type): Fix assertion. + +2016-06-10 Tom Tromey + + * gdbtypes.c (arch_type, arch_integer_type, arch_character_type) + (arch_boolean_type, arch_float_type, arch_complex_type) + (arch_flags_type, append_flags_type_field) + (append_flags_type_flag, arch_composite_type) + (append_composite_type_field_raw) + (append_composite_type_field_aligned) + (append_composite_type_field): Make "name" parameter const. + * gdbtypes.h (arch_type, arch_integer_type, arch_character_type) + (arch_boolean_type, arch_float_type, arch_complex_type) + (append_composite_type_field, append_composite_type_field_aligned) + (append_composite_type_field_raw, arch_flags_type) + (append_flags_type_field, append_flags_type_flag): Constify. + +2016-06-10 Tom Tromey + + PR rust/20110: + * rust-exp.y (lex_number): Don't truncate large numbers to i32. + +2016-06-10 Tom Tromey + + * Makefile.in (COMMON_OBS): Remove rust-exp.o. + (YYFILES): Add rust-exp.c. + (YYOBJ): Add rust-exp.o. + (local-maintainer-clean): Remove rust-exp.c. + +2016-06-09 Toshihito Kikuchi + + * NEWS: Mention that GDB now supports a negative repeat count in + the 'x' command. + * printcmd.c (decode_format): Allow '-' in the parameter + "string_ptr" to accept a negative repeat count. + (find_instruction_backward): New function. + (read_memory_backward): New function. + (integer_is_zero): New function. + (find_string_backward): New function. + (do_examine): Use new functions to examine memory backward. + (_initialize_printcmd): Mention that 'x' command supports a negative + repeat count. + +2016-06-09 Toshihito Kikuchi + + * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi. + +2016-06-09 Tom Tromey + + PR python/19819: + * python/py-xmethods.c (invoke_method_name) + (py_get_result_type_method_name, py_invoke_method_name): Remove. + (gdbpy_initialize_xmethods): Don't initialize + py_invoke_method_name, py_get_result_type_method_name. + +2016-06-07 Simon Marchi + + * mi/mi-interp.c (mi_record_changed): Add missing braces. + +2016-06-07 Bernhard Heckel + + * findvar.c (follow_static_link): Check for valid pointer. + +2016-06-06 Simon Marchi + + * NEWS: Mention the new fields in =record-started. + * common/btrace-common.h (btrace_format_short_string): New function + declaration. + * common/btrace-common.c (btrace_format_short_string): New + function. + * mi/mi-interp.c (mi_record_changed): Output method and format + fields in the =record-started record. + * record-btrace.c (record_btrace_open): Adapt record_changed + notification. + * record-full.c (record_full_open): Likewise. + * record.c (cmd_record_stop): Likewise. + +2016-06-02 Jon Turney + + * windows-nat.c (handle_output_debug_string): Return type of + gdb_signal_from_host() is gdb_signal, not an int. + (windows_get_exec_module_filename): Add pointer casts for C++. + +2016-06-02 Tom Tromey + + PR python/18984: + * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG. + +2016-06-01 Pedro Alves + + * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa) + (remote_fio_osa) + (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set) + (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler): + Delete. + (remote_fileio_o_quit_handler): New global. + (remote_fileio_quit_handler): New function. + (remote_fileio_reply): Check the quit flag instead of the custom + 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead + of changing the SIGINT handler. + (do_remote_fileio_request): Override the quit handler instead of + changing the SIGINT handler. + +2016-06-01 Nick Clifton + + * common/common-utils.c (xmalloc_failed): New function. Provided + so that the version in libiberty is not linked in. + +2016-06-01 Markus Metzger + + * infcmd.c (skip_finish_frames): New. + (finish_command): Call skip_finish_frames. + +2016-06-01 Yao Qi + + PR remote/19998 + * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call + quit_serial_event_set. + +2016-06-01 Joel Brobecker + + GDB 7.11.1 released. + +2016-05-31 Martin Galvan + + PR c++/19893 + * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer, + fetch_const_value_from_synthetic_pointer): New functions. + (indirect_pieced_value): Move lower half to indirect_synthetic_pointer. + (pieced_value_funcs): Implement coerce_ref. + * valops.c (value_addr): Call coerce_ref for synthetic references. + * valprint.c (valprint_check_validity): Return true for synthetic + references. Also, don't show "" if they reference + addressable values. + (generic_val_print_ref): Handle synthetic references. Also move some + code to print_ref_address. + (print_ref_address, get_value_addr_contents): New functions. + +2016-05-30 Jan Kratochvil + + PR c++/15231 + * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID. + (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers. + (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block. + (read_call_site_scope): Adjust callers. + (dwarf2_get_pc_bounds): Implement pc_bounds_invalid. + (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers. + +2016-05-30 Jan Kratochvil + + Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum + * dwarf2read.c (enum pc_bounds_kind) New. + (dwarf2_get_pc_bounds): Use it in the declaration. + (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info + to cu_bounds_kind. + (read_func_scope, read_lexical_block_scope, read_call_site_scope): + Adjust callers. + (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition. + (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers. + +2016-05-29 Jan Kratochvil + + * NEWS (QCatchSyscalls): Remove the parameter. Include ... + (QCatchSyscalls:1 in qSupported) ... this separate entry which got + deleted. + +2016-05-29 Jan Kratochvil + + * NEWS (N stop reply): Remove empty line. + +2016-05-28 Alan Modra + + * compile/compile-object-load.c (link_callbacks_multiple_definition, + link_callbacks_warning, link_callbacks_undefined_symbol, + link_callbacks_undefined_symbol, link_callbacks_reloc_overflow, + link_callbacks_reloc_dangerous, + link_callbacks_unattached_reloc): Return void. + +2016-05-27 Andrew Burgess + + * opencl-lang.c (evaluate_subexp_opencl): If + EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to + the returned value in the STRUCTOP_STRUCT case. + +2016-05-27 Andrew Burgess + + * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS + mode, forward the VALUE_LVAL attribute to the returned value in + the STRUCTOP_PTR case. + +2016-05-25 Tom Tromey + + * python/py-value.c (value_object_as_number): Use correct spelling + of HAVE_LIBPYTHON2_4. + +2016-05-25 Bernhard Heckel + + * f-typeprint.c (f_type_print_base): Replace 0 by show. + +2016-05-25 Bernhard Heckel + + * f-typeprint.c (f_type_print_base): Decrease show by one. + +2016-05-25 Bernhard Heckel + + * f-typeprint.c (f_type_print_base): Don't print fields when show < 0. + +2016-05-25 Bernhard Heckel + + * f-typeprint.c (f_type_print_base): Take print level into account. + +2016-05-24 Tom Tromey + + PR python/17386: + * python/py-value.c (value_object_as_number): Add + nb_inplace_floor_divide, nb_inplace_true_divide, nb_index. + +2016-05-24 Tom Tromey + + * python/py-value.c (value_object_as_number): Add + nb_inplace_divide for Python 2. + +2016-05-23 Tom Tromey + + PR python/17981: + * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple + when there are no breakpoints. + +2016-05-24 Pedro Alves + + PR gdb/19828 + * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp + resumed, and add the thread to GDB's thread list. + +2016-05-24 Pedro Alves + + PR gdb/19828 + * linux-nat.c (get_pending_status): If the thread reported the + event to the core and it's pending, use the pending status signal + number. + +2016-05-24 Pedro Alves + + PR gdb/19828 + * linux-nat.c (lwp_lwpid_htab): New htab. + (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create) + (lwp_lwpid_htab_add_lwp): New functions. + (lwp_list): Tweak comment. + (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New + functions. + (purge_lwp_list): Rewrite, using htab_traverse_noresize. + (add_initial_lwp): Add lwp to htab too. Use lwp_list_add. + (delete_lwp): Use lwp_list_remove. Remove htab too. + (find_lwp_pid): Search in htab. + (_initialize_linux_nat): Call lwp_lwpid_htab_create. + * linux-nat.h (struct lwp_info) : New field. + +2016-05-24 Pedro Alves + + PR gdb/19828 + * linux-nat.c (lwp_lwpid_htab): New htab. + (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create) + (lwp_lwpid_htab_add_lwp): New functions. + (lwp_list): Tweak comment. + (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New + functions. + (purge_lwp_list): Rewrite, using htab_traverse_noresize. + (add_initial_lwp): Add lwp to htab too. Use lwp_list_add. + (delete_lwp): Use lwp_list_remove. Remove htab too. + (find_lwp_pid): Search in htab. + (_initialize_linux_nat): Call lwp_lwpid_htab_create. + * linux-nat.h (struct lwp_info) : New field. + +2016-05-24 Pedro Alves + + PR gdb/19828 + * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core + field. + (linux_nat_update_thread_list): Don't fetch the core if already + known. + +2016-05-24 Pedro Alves + + PR gdb/19828 + * linux-tdep.c (find_mapping_size): Delete. + (linux_vsyscall_range_raw): Rewrite reading from + /proc/PID/task/PID/maps directly instead of using + gdbarch_find_memory_regions. + +2016-05-24 Pedro Alves + + PR gdb/19828 + * linux-nat.c (report_thread_events): New global. + (linux_handle_extended_wait): Report + TARGET_WAITKIND_THREAD_CREATED if thread event reporting is + enabled. + (wait_lwp, linux_nat_filter_event): Report all thread exits if + thread event reporting is enabled. Remove comment. + (filter_exit_event): New function. + (linux_nat_wait_1): Use it. + (linux_nat_thread_events): New function. + (linux_nat_add_target): Install it as target_thread_events method. + +2016-05-24 Yan-Ting Lin + + * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin". + +2016-05-23 Yao Qi + + * arch-utils.c (default_code_of_frame_writable): New function. + * arch-utils.h (default_code_of_frame_writable): Declare. + * arm-tdep.c (arm_code_of_frame_writable): New function. + (arm_gdbarch_init): Install gdbarch method + code_of_frame_writable if the target is M-profile. + * frame.c (skip_unwritable_frames): New function. + * frame.h (skip_unwritable_frames): Declare. + * gdbarch.sh (code_of_frame_writable): New. + * gdbarch.c, gdbarch.h: Re-generated. + * infcmd.c (finish_command): Call skip_unwritable_frames. + +2016-05-23 Tom Tromey + + PR python/19438, PR python/18393: + * python/py-objfile.c (objfpy_initialize): Initialize self->dict. + * python/py-progspace.c (pspy_initialize): Initialize self->dict. + +2016-05-23 Gary Benson + + * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef. + * linux-thread-db.c (struct thread_db_info) : + Remove field. + (try_thread_db_load_1): Remove td_thr_validate initialization. + +2016-05-23 Jon Boden (tiny change) + + * configure.ac: Search for libutil-freebsd as alternative to libutil. + * configure: Re-generated. + +2016-05-19 Andreas Schwab + + * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *. + (libunwind_frame_set_descr): Likewise. + (libunwind_frame_cache): Likewise. + (libunwind_frame_dealloc_cache): Likewise. + (libunwind_frame_sniffer): Likewise. + (libunwind_search_unwind_table): Likewise. + (libunwind_sigtramp_frame_sniffer): Likewise. + (libunwind_get_reg_special): Likewise. + (libunwind_load): Likewise. + * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise. + (ia64_linux_store_register): Likewise. + (ia64_linux_xfer_partial): Likewise. + * ia64-tdep.c (ia64_access_reg): Likewise. + (ia64_access_fpreg): Likewise. + (ia64_access_rse_reg): Likewise. + (ia64_access_rse_fpreg): Likewise. + +2016-05-18 Tom Tromey + + * rust-lang.c (rust_subscript): Initialize "high". + +2016-05-17 Simon Marchi + + PR gdb/20045 + * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead + of target_is_async_p. + +2016-05-17 Simon Marchi + + PR gdb/18077 + * mi/mi-main.c (run_one_inferior): Use run target to determine + whether to run async or not. + (mi_cmd_exec_run): Likewise. + +2016-05-17 Tom Tromey + + * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE. + * rust-lang.c: Don't include f-lang.h. + (rust_range, rust_compute_range, rust_subscript) + (rust_evaluate_subexp): Update. + * rust-exp.y: Don't include f-lang.h. + (ast_range, convert_ast_to_expression): Update. + * parse.c (operator_length_standard): Update. + * f-lang.h (enum f90_range_type): Move to expression.h. + * f-exp.y: Use OP_RANGE. + * expression.h (enum range_type): New enum; renamed from + f90_range_type. + * expprint.c: Don't include f-lang.h. + (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE. + * eval.c (value_f90_subarray, evaluate_subexp_standard): Update. + +2016-05-17 Tom Tromey + + * NEWS: Add Rust item. + +2016-05-17 Tom Tromey + Manish Goregaokar + + * symtab.c (symbol_find_demangled_name): Handle Rust. + * symfile.c (init_filename_language_table): Treat ".rs" as Rust. + * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New + constants. + * rust-lang.h: New file. + * rust-lang.c: New file. + * rust-exp.y: New file. + * dwarf2read.c (read_file_scope): Add Rust producer sniffing. + (dwarf2_compute_name, read_func_scope, read_structure_type) + (read_base_type, read_subrange_type, set_cu_language) + (new_symbol_full, determine_prefix): Handle Rust. + * defs.h (enum language) : New constant. + * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c. + (COMMON_OBS): Add rust-exp.o, rust-lang.o. + +2016-05-17 Tom Tromey + + * valprint.h (struct generic_val_print_array) : New fields. + * valprint.c (generic_val_print_array): Add "decorations" + parameter. Use "array_start", "array_end". + (generic_val_print) : Update. + * p-valprint.c (p_decorations): Update. + * m2-valprint.c (m2_decorations): Update. + * f-valprint.c (f_decorations): Update. + * c-valprint.c (c_decorations): Update. + +2016-05-17 Tom Tromey + + * NEWS: Add "maint selftest" entry. + * selftest.h: New file. + * selftest.c: New file. + * maint.c: Include selftest.h. + (maintenance_selftest): New function. + (_initialize_maint_cmds): Add "maint selftest" command. + * configure.ac (GDB_SELF_TEST): Maybe define. + * config.in, configure: Rebuild. + * Makefile.in (SFILES): Add selftest.c. + (COMMON_OBS): Add selftest.o. + +2016-05-17 Tom Tromey + + * expprint.c: Include f-lang.h. + (print_subexp_standard, dump_subexp_body_standard): Handle + OP_F90_RANGE. + +2016-05-17 Tom Tromey + + * Makefile.in (init.c): Search .y files for initialization + functions. + +2016-05-12 Doug Evans + + PR symtab/19999 + * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still + add base_offset. + +2016-05-10 Trevor Saunders + + * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard + anything. + * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname. + +2016-05-10 Thomas Preud'homme + + * arm-tdep.c (arm_elf_make_msymbol_special): Use + ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol. + +2016-05-07 Trevor Saunders + + * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused + variables. + * aarch64-tdep.c (aarch64_skip_prologue): Likewise. + (aarch64_scan_prologue): Likewise. + (aarch64_prologue_prev_register): Likewise. + (aarch64_dwarf2_prev_register): Likewise. + (pass_in_v): Likewise. + (aarch64_push_dummy_call): Likewise. + (aarch64_breakpoint_from_pc): Likewise. + (aarch64_return_in_memory): Likewise. + (aarch64_return_value): Likewise. + (aarch64_displaced_step_b_cond): Likewise. + (aarch64_displaced_step_cb): Likewise. + (aarch64_displaced_step_tb): Likewise. + (aarch64_gdbarch_init): Likewise. + (aarch64_process_record): Likewise. + * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise. + * alpha-tdep.c (_initialize_alpha_tdep): Likewise. + * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise. + * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise. + * amd64-tdep.c (fixup_riprel): Likewise. + * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise. + (amd64_windows_frame_decode_insns): Likewise. + (amd64_windows_frame_cache): Likewise. + (amd64_windows_frame_prev_register): Likewise. + (amd64_windows_frame_this_id): Likewise. + (amd64_windows_init_abi): Likewise. + * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise. + (arm_linux_get_next_pcs_syscall_next_pc): Likewise. + * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise. + * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise. + (arm_epilogue_frame_prev_register): Likewise. + (arm_record_vdata_transfer_insn): Likewise. + (arm_record_exreg_ld_st_insn): Likewise. + * auto-load.c (execute_script_contents): Likewise. + (print_scripts): Likewise. + * avr-tdep.c (avr_frame_prev_register): Likewise. + (avr_push_dummy_call): Likewise. + * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise. + * bfin-tdep.c (bfin_gdbarch_init): Likewise. + * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise. + * break-catch-throw.c (fetch_probe_arguments): Likewise. + * breakpoint.c (breakpoint_xfer_memory): Likewise. + (breakpoint_init_inferior): Likewise. + (breakpoint_inserted_here_p): Likewise. + (software_breakpoint_inserted_here_p): Likewise. + (hardware_breakpoint_inserted_here_p): Likewise. + (bpstat_what): Likewise. + (break_range_command): Likewise. + (save_breakpoints): Likewise. + * coffread.c (coff_symfile_read): Likewise. + * cris-tdep.c (cris_push_dummy_call): Likewise. + (cris_scan_prologue): Likewise. + (cris_register_size): Likewise. + (_initialize_cris_tdep): Likewise. + * d-exp.y: Likewise. + * dbxread.c (dbx_read_symtab): Likewise. + (process_one_symbol): Likewise. + (coffstab_build_psymtabs): Likewise. + (elfstab_build_psymtabs): Likewise. + * dicos-tdep.c (dicos_init_abi): Likewise. + * disasm.c (do_mixed_source_and_assembly): Likewise. + (gdb_disassembly): Likewise. + * dtrace-probe.c (dtrace_process_dof): Likewise. + * dwarf2read.c (error_check_comp_unit_head): Likewise. + (build_type_psymtabs_1): Likewise. + (skip_one_die): Likewise. + (process_imported_unit_die): Likewise. + (dwarf2_physname): Likewise. + (read_file_scope): Likewise. + (setup_type_unit_groups): Likewise. + (create_dwo_cu_reader): Likewise. + (create_dwo_cu): Likewise. + (create_dwo_unit_in_dwp_v1): Likewise. + (create_dwo_unit_in_dwp_v2): Likewise. + (lookup_dwo_unit_in_dwp): Likewise. + (free_dwo_file): Likewise. + (check_producer): Likewise. + (dwarf2_add_typedef): Likewise. + (dwarf2_add_member_fn): Likewise. + (read_unsigned_leb128): Likewise. + (read_signed_leb128): Likewise. + (dwarf2_const_value): Likewise. + (follow_die_sig_1): Likewise. + (dwarf_decode_macro_bytes): Likewise. + * extension.c (restore_active_ext_lang): Likewise. + * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise. + * ft32-tdep.c (ft32_analyze_prologue): Likewise. + * gdbtypes.c (lookup_typename): Likewise. + (resolve_dynamic_range): Likewise. + (check_typedef): Likewise. + * h8300-tdep.c (h8300_is_argument_spill): Likewise. + (h8300_gdbarch_init): Likewise. + * hppa-tdep.c (hppa32_push_dummy_call): Likewise. + (hppa_frame_this_id): Likewise. + (_initialize_hppa_tdep): Likewise. + * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise. + * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise. + * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise. + * i386-tdep.c (i386_bnd_type): Likewise. + (i386_gdbarch_init): Likewise. + (i386_mpx_bd_base): Likewise. + * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise. + * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise. + * ia64-tdep.c (examine_prologue): Likewise. + (ia64_frame_cache): Likewise. + (ia64_push_dummy_call): Likewise. + * infcmd.c (finish_command_fsm_async_reply_reason): Likewise. + (default_print_one_register_info): Likewise. + * infrun.c (infrun_thread_ptid_changed): Likewise. + (thread_still_needs_step_over): Likewise. + (stop_all_threads): Likewise. + (restart_threads): Likewise. + (keep_going_stepped_thread): Likewise. + * iq2000-tdep.c (iq2000_scan_prologue): Likewise. + * language.c (language_init_primitive_type_symbols): Likewise. + * linespec.c (add_sal_to_sals): Likewise. + * linux-nat.c (status_callback): Likewise. + (kill_unfollowed_fork_children): Likewise. + (linux_nat_kill): Likewise. + * linux-tdep.c (linux_fill_prpsinfo): Likewise. + * linux-thread-db.c (thread_db_notice_clone): Likewise. + (record_thread): Likewise. + * location.c (string_to_event_location_basic): Likewise. + * m32c-tdep.c (m32c_prev_register): Likewise. + * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise. + * m32r-tdep.c (decode_prologue): Likewise. + * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise. + * machoread.c (macho_symtab_read): Likewise. + (macho_symfile_read): Likewise. + (macho_symfile_offsets): Likewise. + * maint.c (set_per_command_cmd): Likewise. + * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise. + (mi_cmd_stack_list_variables): Likewise. + * mi/mi-main.c (mi_cmd_exec_run): Likewise. + (output_register): Likewise. + (mi_cmd_execute): Likewise. + (mi_cmd_trace_define_variable): Likewise. + (print_variable_or_computed): Likewise. + * minsyms.c (prim_record_minimal_symbol_full): Likewise. + * mn10300-tdep.c (mn10300_frame_prev_register): Likewise. + * msp430-tdep.c (msp430_pseudo_register_write): Likewise. + * mt-tdep.c (mt_registers_info): Likewise. + * nios2-tdep.c (nios2_analyze_prologue): Likewise. + (nios2_push_dummy_call): Likewise. + (nios2_frame_unwind_cache): Likewise. + (nios2_stub_frame_cache): Likewise. + (nios2_stub_frame_sniffer): Likewise. + (nios2_gdbarch_init): Likewise. + * ppc-ravenscar-thread.c: Likewise. + * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise. + * python/py-evts.c (add_new_registry): Likewise. + * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. + (bpfinishpy_detect_out_scope_cb): Likewise. + * python/py-framefilter.c (py_print_value): Likewise. + * python/py-inferior.c (infpy_write_memory): Likewise. + * python/py-infevents.c (create_inferior_call_event_object): Likewise. + * python/py-infthread.c (thpy_get_ptid): Likewise. + * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise. + (ltpy_get_all_source_lines): Likewise. + (ltpy_is_valid): Likewise. + (ltpy_iternext): Likewise. + * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise. + * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise. + (unwind_infopy_str): Likewise. + * python/py-varobj.c (py_varobj_get_iterator): Likewise. + * ravenscar-thread.c (ravenscar_inferior_created): Likewise. + * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. + * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. + * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise. + * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise. + (s390_frame_prev_register): Likewise. + (s390_dwarf2_frame_init_reg): Likewise. + (s390_record_vr): Likewise. + (s390_process_record): Likewise. + * score-tdep.c (score_push_dummy_call): Likewise. + (score3_analyze_prologue): Likewise. + * sh-tdep.c (sh_extract_return_value_nofpu): Likewise. + * sh64-tdep.c (sh64_analyze_prologue): Likewise. + (sh64_push_dummy_call): Likewise. + (sh64_extract_return_value): Likewise. + (sh64_do_fp_register): Likewise. + * solib-aix.c (solib_aix_get_section_offsets): Likewise. + * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise. + (darwin_solib_read_all_image_info_addr): Likewise. + * solib-dsbt.c (enable_break): Likewise. + * solib-frv.c (enable_break2): Likewise. + (frv_fdpic_find_canonical_descriptor): Likewise. + * solib-svr4.c (svr4_handle_solib_event): Likewise. + * sparc-tdep.c (sparc_skip_stack_check): Likewise. + * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise. + * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise. + * spu-tdep.c (info_spu_dma_cmdlist): Likewise. + * stack.c (read_frame_local): Likewise. + * symfile.c (symbol_file_add_separate): Likewise. + (remove_symbol_file_command): Likewise. + * symmisc.c (maintenance_print_one_line_table): Likewise. + * symtab.c (symbol_cache_flush): Likewise. + (basic_lookup_transparent_type): Likewise. + (sort_search_symbols_remove_dups): Likewise. + * target.c (target_memory_map): Likewise. + (target_detach): Likewise. + (target_resume): Likewise. + (acquire_fileio_fd): Likewise. + (target_store_registers): Likewise. + * thread.c (print_thread_info_1): Likewise. + * tic6x-tdep.c (tic6x_analyze_prologue): Likewise. + * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise. + * tilegx-tdep.c (tilegx_push_dummy_call): Likewise. + (tilegx_analyze_prologue): Likewise. + (tilegx_stack_frame_destroyed_p): Likewise. + (tilegx_frame_cache): Likewise. + * tracefile.c (trace_save): Likewise. + * tracepoint.c (encode_actions_and_make_cleanup): Likewise. + (start_tracing): Likewise. + (print_one_static_tracepoint_marker): Likewise. + * tui/tui.c (tui_enable): Likewise. + * valops.c (value_struct_elt_bitpos): Likewise. + (find_overload_match): Likewise. + (find_oload_champ): Likewise. + * value.c (value_contents_copy_raw): Likewise. + * windows-tdep.c (windows_get_tlb_type): Likewise. + * x86-linux-nat.c (x86_linux_enable_btrace): Likewise. + * xcoffread.c (record_minimal_symbol): Likewise. + (scan_xcoff_symtab): Likewise. + * xtensa-tdep.c (execute_code): Likewise. + (xtensa_gdbarch_init): Likewise. + (_initialize_xtensa_tdep): Likewise. + +2016-05-04 Ulrich Weigand + + * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++. + (spu_bfd_open): Likewise. + +2016-05-04 Yao Qi + + PR gdb/19947 + * corefile.c (read_memory): Rename it to ... + (read_memory_object): ... it. Add parameter object. + (read_memory): Call read_memory_object. + (read_stack): Likewise. + (read_code): Likewise. + +2016-05-03 Yunlian Jiang + Doug Evans + + PR symtab/19914 + * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile + is separate debug file. + +2016-05-03 Don Breazeal + + * serial.h (gdb_pipe): Fix argument names in comment. + +2016-05-03 Pedro Alves + + PR python/20037 + * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree + oldloc. + +2016-05-03 Pedro Alves + + * python/python.c (_initialize_python) [IS_PY3K]: Remove dead + code. + +2016-05-03 Pedro Alves + + * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic". + * configure: Regenerate. + +2016-05-03 Pedro Alves + + * configure.ac (checking for the dynamic export flag): Add + $PYTHON_CPPFLAGS to CPPFLAGS. + * configure: Regenerate. + +2016-05-03 Kyrylo Tkachov + + * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses + warning. + (find_pc_mapped_section): Likewise. + (list_overlays_command): Likewise. + +2016-05-02 Eli Zaretskii + + * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one + error in allocation of space for "$HOME/.gdbinit" string. This + caused GDB to abort on startup whenever a '~/gdb.ini' file was + actually found, because xsnprintf would hit an assertion + violation. + +2016-04-28 Simon Marchi + + * cli/cli-decode.c (help_cmd_list): Do not list commands that + are deprecated. + +2016-04-27 Jan Kratochvil + + * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support. + +2016-04-27 Martin Galvan + + * c-valprint.c (c_value_print): Always convert val back to reference + type if we converted it to a pointer type. + +2016-04-27 Andreas Arnez + + * configure.ac: Enhance configure check for babeltrace to reject + non-C++-enabled versions. + * configure: Regenerate. + +2016-04-26 Sanimir Agovic + Keven Boell + Bernhard Heckel + + * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove + function. + (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro. + (f77_print_array_1): Use value_subscript to subscript a + value array. + (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl. + (f_val_print): Use value_field to construct a field value. + +2016-04-26 Bernhard Heckel + + * valarith.c (value_address): Resolve dynamic types. + +2016-04-26 Bernhard Heckel + Keven Boell + + * NEWS: Add new supported features for fortran. + * gdbtypes.c (remove_dyn_prop): New. + (resolve_dynamic_struct): Keep type length for fortran structs. + * gdbtypes.h: Forward declaration of new function. + * value.c (value_address): Return dynamic resolved location of a value. + (set_value_component_location): Adjust the value address + for single value prints. + (value_primitive_field): Support value types with a dynamic location. + (set_internalvar): Remove dynamic location property of + internal variables. + +2016-04-25 Pedro Alves + Yao Qi + + * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint + object. Insert it if it is not inserted yet. Increase the + refcount and link it into the proc's raw breakpoint list. + +2016-04-25 Yao Qi + + * breakpoint.c (should_be_inserted): Return 0 if the location's + owner is not single step breakpoint or single step breakpoint's + thread isn't the thread which is stepping past a breakpoint. + * gdbarch.sh (software_single_step): Update comments. + * gdbarch.h: Regenerated. + * infrun.c (struct step_over_info) : New field. + (set_step_over_info): New argument 'thread'. Callers updated. + (clear_step_over_info): Set field thread to -1. + (thread_is_stepping_over_breakpoint): New function. + * infrun.h (thread_is_stepping_over_breakpoint): Declaration. + +2016-04-22 Edjunior Barbosa Machado + + * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX + and PPC_FEATURE_HAS_ALTIVEC to check if such features are available. + +2016-04-22 Yao Qi + + * valops.c (read_value_memory): New local variable 'stack'. + Set it to either TARGET_OBJECT_STACK_MEMORY or + TARGET_OBJECT_MEMORY. + +2016-04-22 Pedro Alves + + * ada-exp.y: Remove all yy symbol remappings. + (GDB_YY_REMAP_PREFIX): Define. + Include "yy-remap.h". + * ada-lang.c (ada_language_defn): Adjust. + * ada-lang.h (ada_error): Rename to ... + (ada_yyerror): ... this. + * c-exp.y: Remove all yy symbol remappings. + (GDB_YY_REMAP_PREFIX): Define. + Include "yy-remap.h". + * c-lang.c (c_language_defn, cplus_language_defn) + (asm_language_defn, minimal_language_defn): Adjust. + * c-lang.h (c_error): Rename to ... + (c_yyerror): ... this. + * d-exp.y: Remove all yy symbol remappings. + (GDB_YY_REMAP_PREFIX): Define. + Include "yy-remap.h". + * d-lang.c (d_language_defn): Adjust. + * d-lang.h (d_error): Rename to ... + (d_yyerror): ... this. + * f-exp.y: Remove all yy symbol remappings. + (GDB_YY_REMAP_PREFIX): Define. + Include "yy-remap.h". + * f-lang.c (f_language_defn): Adjust. + * f-lang.h (f_error): Rename to ... + (f_yyerror): ... this. + * go-exp.y: Remove all yy symbol remappings. + (GDB_YY_REMAP_PREFIX): Define. + Include "yy-remap.h". + * go-lang.c (go_language_defn): Adjust. + * go-lang.h (go_error): Rename to ... + (go_yyerror): ... this. + * jv-exp.y: Remove all yy symbol remappings. + (GDB_YY_REMAP_PREFIX): Define. + Include "yy-remap.h". + * jv-lang.c (java_language_defn): Adjust. + * jv-lang.h (java_error): Rename to ... + (java_yyerror): ... this. + * m2-exp.y: Remove all yy symbol remappings. + (GDB_YY_REMAP_PREFIX): Define. + Include "yy-remap.h". + * m2-lang.c (m2_language_defn): Adjust. + * m2-lang.h (m2_error): Rename to ... + (m2_yyerror): ... this. + * objc-exp.y: Remove all yy symbol remappings. + (GDB_YY_REMAP_PREFIX): Define. + Include "yy-remap.h". + * objc-lang.c (objc_language_defn): Adjust. + * opencl-lang.c (opencl_language_defn): Adjust. + * p-exp.y: Remove all yy symbol remappings. + (GDB_YY_REMAP_PREFIX): Define. + Include "yy-remap.h". + * p-lang.c (pascal_language_defn): Adjust. + * p-lang.h (pascal_error): Rename to ... + (pascal_yyerror): ... this. + * yy-remap.h: New file. + +2016-04-22 Pedro Alves + + * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of + the foreign frames issue. + [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY. + +2016-04-22 Pedro Alves + + * common/common-exceptions.c (enum catcher_state, struct catcher) + (current_catcher): Define in C++ mode too. + (exceptions_state_mc_catch): Call throw_exception_sjlj instead of + throw_exception. + (throw_exception_sjlj, throw_exception_cxx): New functions, + factored out from throw_exception. + (throw_exception): Reimplement. + * common/common-exceptions.h (exceptions_state_mc_init) + (exceptions_state_mc_action_iter) + (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch): + Declare in C++ mode too. + (TRY): Rename to ... + (TRY_SJLJ): ... this. + (CATCH): Rename to ... + (CATCH_SJLJ): ... this. + (END_CATCH): Rename to ... + (END_CATCH_SJLJ): ... this. + [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ + equivalents. + (throw_exception): Update comments. + (throw_exception_sjlj): Declare. + * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro + comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any + intercepted exception. + (gdb_rl_callback_handler): New function. + (gdb_rl_callback_handler_install): Always install + gdb_rl_callback_handler as readline callback. + +2016-04-22 Pedro Alves + + * event-top.c (rl_callback_read_char_wrapper): Rename to ... + (gdb_rl_callback_read_char_wrapper): ... this. + (change_line_handler, gdb_setup_readline): Adjust. + +2016-04-22 Yao Qi + + * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR + bits 20 to 23. + +2016-04-22 Joel Brobecker + + * MAINTAINER: Remove myself as AIX Maintainer. + +2016-04-22 Maciej W. Rozycki + + * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set + `num_regs' to 90 rather than 79. Where a target description is + present adjust the setting appropriately. + +2016-04-21 Pedro Alves + + * common/common-exceptions.h (GDB_XCPT_TRY): Add comment. + (GDB_XCPT): Always define as GDB_XCPT_SJMP. + +2016-04-21 Pedro Alves + + * aix-thread.c (pdc_read_data, pdc_write_data): Add cast. + (aix_thread_resume): Use PTRACE_TYPE_ARG5. + * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5. + (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void + pointer, and cast return to gdb_byte pointer. + +2016-04-21 Pedro Alves + + * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use + void * instead of gdb_byte *. + +2016-04-21 Pedro Alves + + * dwarf2read.c (try_open_dwop_file, open_dwo_file) + (file_file_name, file_full_name): Add char * cast to sentinel in + concat/reconcat calls. + * event-top.c (top_level_prompt): Likewise. + * guile/guile.c (initialize_scheme_side): Likewise. + * linux-tdep.c (linux_fill_prpsinfo): Likewise. + * macrotab.c (macro_source_fullname): Likewise. + * main.c (get_init_files, captured_main): Likewise. + * psymtab.c (psymtab_to_fullname): Likewise. + * python/python.c (_initialize_python) + (gdbpy_finish_initialization): Likewise. + * source.c (symtab_to_fullname): Likewise. + +2016-04-20 Pedro Alves + + * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes. + * configure: Renegerate. + +2016-04-20 Pedro Alves + + * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host. + +2016-04-20 Pedro Alves + + * aarch64-tdep.c (aarch64_record_load_store): Change type of + 'reg_rm_val' local to ULONGEST. + +2016-04-20 Pedro Alves + + * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast. + +2016-04-20 Doug Evans + + * symmisc.c (dump_symtab_1): Print owning compunit for identical + blockvectors. + +2016-04-20 Yao Qi + + * aarch32-linux-nat.c: Include "arch/arm-linux.h". + +2016-04-20 Yao Qi + + * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ... + * arch/arm-linux.h: ... here. + +2016-04-19 John Baldwin + + * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs + to void *. + (amd64bsd_store_inferior_registers): Likewise. + * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *. + (resume_all_threads_cb): Likewise. + * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *. + (i386bsd_collect_gregset): Likewise. + (i386bsd_fetch_inferior_registers): Change xstateregs to void *. + (i386bsd_store_inferior_registers): Likewise. + +2016-04-19 John Baldwin + + * main.c (setup_alternate_signal_stack): Cast to char *. + +2016-04-19 Doug Evans + + * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile. + All callers updated. + +2016-04-19 Doug Evans + + PR gdb/17911 + * source.c (is_regular_file): New arg errno_ptr. + All callers updated. + +2016-04-19 Andreas Arnez + + * linux-record.c (record_linux_system_call): Merge handling for + readlink/recv/read and pipe/pipe2. + +2016-04-14 Walfred Tedeschi + + * features/i386/amd64-mpx-linux.xml: Remove AVX feature. + * features/i386/amd64-mpx.xml: Remove AVX feature. + * features/i386/i386-mpx-linux.xml: Remove AVX feature. + * features/i386/i386-mpx.xml: Remove AVX feature. + * features/i386/amd64-mpx-linux.c: Regenerate. + * features/i386/amd64-mpx.c: Regenerate. + * features/i386/i386-mpx-linux.c: Regenerate. + * features/i386/i386-mpx.c: Regenerate. + * regformats/i386/amd64-mpx-linux.dat: Regenerate. + * regformats/i386/amd64-mpx.dat: Regenerate. + * regformats/i386/i386-mpx-linux.dat: Regenerate. + * regformats/i386/i386-mpx.dat: Regenerate. + +2016-04-16 Walfred Tedeschi + + * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c): + New include. + (amd64_linux_core_read_description): Add case for + X86_XSTATE_AVX_MPX_MASK. + (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux. + * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition. + * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include. + (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK. + (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx. + * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits. + (X86_XSTATE_AVX_MPX_MASK): New case. + * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux) + (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules. + (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite) + (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite): + New expedites. + * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New + include. + (i386_linux_core_read_description): Add case + X86_XSTATE_AVX_MPX_MASK. + (_initialize_i386_linux_tdep): Call + initialize_tdesc_i386_avx_mpx_linux. + * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include. + * i386-tdep.c (features/i386/i386-avx-mpx.c): New include. + (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK. + * x86-linux-nat.c (x86_linux_read_description): Add case for + X86_XSTATE_AVX_MPX_MASK. + * features/i386/amd64-avx-mpx-linux.xml: New file. + * features/i386/i386-avx-mpx-linux.xml: New file. + * features/i386/i386-avx-mpx.xml: New file. + * features/i386/amd64-avx-mpx.xml: New file. + * features/i386/amd64-avx-mpx-linux.c: Generated. + * features/i386/amd64-avx-mpx.c: Generated. + * features/i386/i386-avx-mpx-linux.c: Generated. + * features/i386/i386-avx-mpx.c: Generated. + * regformats/i386/amd64-avx-mpx-linux.dat: Generated. + * regformats/i386/amd64-avx-mpx.dat: Generated. + * regformats/i386/i386-avx-mpx-linux.dat: Generated. + * regformats/i386/i386-avx-mpx.dat: Generated. + +2016-04-18 Pedro Alves + + * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode. + * configure: Regenerate. + +2016-04-18 Martin Galvan + + * valops.c (value_addr): For C++ references, set the copied value's + enclosing_type as well. + +2016-04-18 Yao Qi + + Revert: + 2016-04-15 Yao Qi + + * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if + PC is far from the end of function. + +2016-04-16 Pedro Alves + + * ada-exp.y (yydefred): Define as ada_yydefred. + +2016-04-15 Pedro Alves + + * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and + 'name_str' locals. + +2016-04-15 Pedro Alves + + * btrace.c (pt_btrace_insn_flags): Change return type to + btrace_insn_flags. Use btrace_insn_flags for local. + +2016-04-15 Pedro Alves + + * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also + accept TRAP_BRKPT. + [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT. + +2016-04-15 Yao Qi + + * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if + PC is far from the end of function. + +2016-04-14 Pedro Alves + + * cli/cli-cmds.c (alias_usage_error): New function. + (alias_command): Use it. + * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in + ctf_save_write_metadata call. + +2016-04-14 Pedro Alves + + * ada-typeprint.c (print_fixed_point_type): Don't pass float as + argument to function expecting LONGEST. + * value.c (unpack_long): Add casts to LONGEST. + +2016-04-13 Luis Machado + + * exec.c (exec_file_locate_attach): Guard a couple functions + that can throw errors. + (exception_print_same): New helper function. + +2016-04-13 Pedro Alves + + PR remote/19840 + * remote.c (struct remote_state) : New + field. + (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD. + (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD. + (remote_resume): Store the last execution direction. + (remote_execution_direction): New function. + (init_remote_ops): Install it as to_execution_direction target_ops + method. + +2016-04-12 Pedro Alves + + * common/common-exceptions.h (GDB_XCPT_TRY): Update comment. + [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY. + +2016-04-12 Pedro Alves + + * common/common-exceptions.c (struct catcher) : Now a + 'jmp_buf' instead of SIGJMP_BUF. + (exceptions_state_mc_init): Change return type to 'jmp_buf'. + (throw_exception): Use longjmp instead of SIGLONGJMP. + * common/common-exceptions.h: Include instead of + "gdb_setjmp.h". + (exceptions_state_mc_init): Change return type to 'jmp_buf'. + [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of + SIGSETJMP. + * cp-support.c: Include "gdb_setjmp.h". + +2016-04-12 Pedro Alves + + * common/common-exceptions.c (exception_rethrow): Remove + prepare_to_throw_exception call. + * common/common-exceptions.h (prepare_to_throw_exception): Delete + declaration. + * exceptions.c (prepare_to_throw_exception): Delete. + +2016-04-12 Pedro Alves + + * target.c (target_check_pending_interrupt): Delete. + * target.h (struct target_ops) : + Remove method. + (target_check_pending_interrupt): Remove declaration. + * target-delegates.c: Regenerate. + +2016-04-12 Pedro Alves + + * defs.h: Update comments on SIGINT handling. + (immediate_quit): Delete declaration. + * event-loop.c (call_async_signal_handler): Delete. + * event-loop.h (call_async_signal_handler): Delete declaration. + (mark_async_signal_handler): Update comments. + (gdb_call_async_signal_handler): Delete declaration. + * event-top.c (handle_sigint): Call mark_async_signal_handler + instead of gdb_call_async_signal_handler. + * exceptions.c (prepare_to_throw_exception): Remove reference to + immediate_quit. + (exception_fprintf): Remove comments about immediate_quit. + * mingw-hdep.c (sigint_event, sigint_handler): Delete. + (gdb_select): Don't wait on sigint_event. + (gdb_call_async_signal_handler): Delete. + (_initialize_mingw_hdep): Delete. + * posix-hdep.c (gdb_call_async_signal_handler): Delete. + * utils.c (immediate_quit): Delete. + +2016-04-12 Pedro Alves + + * defs.h (quit_handler_ftype, quit_handler) + (make_cleanup_override_quit_handler, default_quit_handler): New. + (QUIT): Adjust comments. + * event-top.c (default_quit_handler): New function. + (quit_handler): New global. + (struct quit_handler_cleanup_data): New. + (restore_quit_handler, restore_quit_handler_dtor) + (make_cleanup_override_quit_handler): New. + (async_request_quit): Call QUIT. + * remote.c (struct remote_state) : New field. + (async_sigint_remote_twice_token, async_sigint_remote_token): + Delete. + (remote_close): Update comments. + (remote_start_remote): Don't set immediate_quit. Set starting_up + earlier. + (remote_serial_quit_handler, remote_unpush_and_throw): New + functions. + (remote_open_1): Clear got_ctrlc_during_io. Set + remote_async_terminal_ours_p unconditionally. + (async_initialize_sigint_signal_handler) + (async_handle_remote_sigint, async_handle_remote_sigint_twice) + (remote_check_pending_interrupt, async_remote_interrupt) + (async_remote_interrupt_twice) + (async_cleanup_sigint_signal_handler, ofunc) + (sync_remote_interrupt, sync_remote_interrupt_twice): Delete. + (remote_terminal_inferior, remote_terminal_ours): Remove async + checks. + (remote_wait_as): Don't install a SIGINT handler in sync mode. + (readchar, remote_serial_write): Override the quit handler with + remote_serial_quit_handler. + (getpkt_or_notif_sane_1): Don't call QUIT. + (initialize_remote_ops): Don't install + remote_check_pending_interrupt. + (_initialize_remote): Don't create async_sigint_remote_token and + async_sigint_remote_twice_token. + * ser-base.c (ser_base_wait_for): Call QUIT and use + interruptible_select. + (ser_base_write): Call QUIT. + * ser-go32.c (dos_readchar, dos_write): Call QUIT. + * ser-unix.c (wait_for): Don't use VTIME. Always take the + gdb_select path, but call QUIT and interruptible_select. + * utils.c (maybe_quit): Call the current quit handler. Don't call + target_check_pending_interrupt. + (defaulted_query, prompt_for_continue): Override the quit handler + with the default quit handler. + +2016-04-12 Pedro Alves + + * tui/tui-hooks.c (tui_target_has_run): Delete. + (tui_about_to_proceed): Delete. + (tui_about_to_proceed_observer): Delete. + (tui_install_hooks, tui_remove_hooks): Don't install/remove an + about_to_proceed observer. + +2016-04-12 Pedro Alves + + * mi/mi-interp.c (mi_new_thread): Put + target_terminal_ours_for_output in effect while outputting. + (mi_thread_exit): Use target_terminal_ours_for_output instead of + target_terminal_ours. + (mi_record_changed, mi_inferior_added, mi_inferior_appeared) + (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed) + (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified) + (mi_breakpoint_created, mi_breakpoint_deleted) + (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded) + (mi_command_param_changed, mi_memory_changed) + (report_initial_inferior): Use target_terminal_ours_for_output + instead of target_terminal_ours. Restore terminal settings. + * mi/mi-main.c (mi_execute_command): Use + target_terminal_ours_for_output instead of target_terminal_ours. + Restore terminal settings. + +2016-04-12 Pedro Alves + + PR gdb/19828 + * gnu-nat.c (inf_validate_task_sc): Don't call + target_terminal_ours / target_terminal_inferior around query. + * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't + call target_terminal_ours / target_terminal_inferior around + yquery. + * linux-record.c (record_linux_system_call): Don't call + target_terminal_ours / target_terminal_inferior around yquery. + * nto-procfs.c (interrupt_query): Don't call target_terminal_ours + / target_terminal_inferior around query. + * record-full.c (record_full_check_insn_num): Remove + 'set_terminal' parameter. Don't call target_terminal_ours / + target_terminal_inferior around query. + (record_full_message, record_full_registers_change) + (record_full_xfer_partial): Adjust. + * remote.c (interrupt_query): Don't call target_terminal_ours / + target_terminal_inferior around query. + * utils.c (defaulted_query): Install cleanup to restore target + terminal. Put target_terminal_ours_for_output in effect while + defaulted producing, and target_terminal_ours in in effect while + handling input. + (prompt_for_continue): Install cleanup to restore target terminal. + Put target_terminal_ours in in effect while handling input. + +2016-04-12 Pedro Alves + + * utils.c (defaulted_query, prompt_for_continue): Free temporary + strings with cleanups, instead of xfree. + +2016-04-12 Pedro Alves + + * utils.c (vwarning, internal_vproblem): Use + make_cleanup_restore_target_terminal and + target_terminal_ours_for_output. + +2016-04-12 Pedro Alves + + * infcmd.c (post_create_inferior, prepare_one_step): Use + target_terminal_ours_for_output instead of target_terminal_ours. + +2016-04-12 Pedro Alves + + * exceptions.c (print_flush): Use target_terminal_ours_for_output + instead of target_terminal_ours, and restore target terminal with + a cleanup. + +2016-04-12 Pedro Alves + + * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output + instead of target_terminal_ours, and restore target terminal with + a cleanup. + +2016-04-12 Pedro Alves + + * ada-lang.c (type_as_string, type_as_string_and_cleanup): New + functions. + (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup. + +2016-04-12 Pedro Alves + + * ser-base.c (fd_event): Retry read_prim on EINTR. + (do_ser_base_readchar): Retry read_prim on EINTR. + (ser_base_write): Retry write_prim on EINTR. + * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here. + (ser_unix_write_prim): Remove comment. + +2016-04-12 Pedro Alves + + * remote.c (remote_pass_ctrlc): New function. + (init_remote_ops): Install it. + * target.c (target_terminal_inferior): Pass pending Ctrl-C to the + target. + (target_pass_ctrlc, default_target_pass_ctrlc): New functions. + * target.h (struct target_ops) : New method. + (target_pass_ctrlc, default_target_pass_ctrlc): New declarations. + * target-delegates.c: Regenerate. + +2016-04-12 Pedro Alves + + * infcmd.c (interrupt_target_1): Call target_stop is in non-stop + mode. + * linux-nat.c (linux_nat_interrupt): Delete. + (linux_nat_add_target): Don't install linux_nat_interrupt. + * remote.c (remote_interrupt_ns): Change return type to void. + Throw error if interrupting the target is not supported. + (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as. + +2016-04-12 Pedro Alves + + * defs.h (clear_quit_flag): Remove declaration. + * extension-priv.h (struct extension_language_ops) + : Remove field and update comments. + * extension.c (clear_quit_flag): Delete. + * guile/guile.c (guile_extension_ops): Adjust. + * python/python.c (python_extension_ops): Adjust. + (gdbpy_clear_quit_flag): Delete. + +2016-04-12 Pedro Alves + + * main.c (captured_main): Don't clear the quit flag. + +2016-04-12 Pedro Alves + + * exceptions.c (prepare_to_throw_exception): Don't clear the quit + flag. + +2016-04-12 Pedro Alves + + * event-top.c (command_handler): Don't call clear_quit_flag. + +2016-04-12 Pedro Alves + + * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag. + * remote.c (remote_wait_as): Don't call clear_quit_flag. + +2016-04-12 Pedro Alves + + * python/python.c: Include "ser-event.h". + (gdbpy_event_fds): Delete. + (gdbpy_serial_event): New. + (gdbpy_run_events): Change prototype. Use serial_event_clear + instead of serial_readchar. + (gdbpy_post_event): Use serial_event_set instead of serial_write. + (gdbpy_initialize_events): Use make_serial_event instead of + serial_pipe. + +2016-04-12 Pedro Alves + + * defs.h: Extend QUIT-related comments to mention + interruptible_select. + (quit_serial_event_set, quit_serial_event_clear): Declare. + * event-top.c: Include "ser-event.h" and "gdb_select.h". + (quit_serial_event): New global. + (async_init_signals): Make quit_serial_event. + (quit_serial_event_set, quit_serial_event_clear) + (quit_serial_event_fd, interruptible_select): New functions. + * extension.c (set_quit_flag): Set the quit serial event. + (check_quit_flag): Clear the quit serial event. + * gdb_select.h (interruptible_select): New declaration. + * guile/scm-ports.c (ioscm_input_waiting): Use + interruptible_select instead of gdb_select. + * top.c (gdb_readline_no_editing): Likewise. + * ui-file.c (stdio_file_read): Likewise. + +2016-04-12 Pedro Alves + + * event-loop.c: Include "ser-event.h". + (async_signal_handlers_serial_event): New global. + (async_signals_handler, initialize_async_signal_handlers): New + functions. + (mark_async_signal_handler): Set + async_signal_handlers_serial_event. + (invoke_async_signal_handlers): Clear + async_signal_handlers_serial_event. + * event-top.c (async_init_signals): Call + initialize_async_signal_handlers. + +2016-04-12 Pedro Alves + + * Makefile.in (SFILES): Add ser-event.c. + (HFILES_NO_SRCDIR): Add ser-event.h. + (COMMON_OBS): Add ser-event.o. + * ser-event.c, ser-event.h: New files. + * serial.c (new_serial): New function, factored out from + (serial_fdopen_ops): ... this. + (serial_open_ops_1): New function, factored out from + (serial_open): ... this. + (serial_open_ops): New function. + * serial.h (struct serial): Forware declare. + (serial_open_ops): New declaration. + +2016-04-12 Pedro Alves + + * serial.c (serial_open, serial_fdopen_ops, do_serial_close): + Remove references to name. + * serial.h (struct serial) : Delete. + +2016-04-12 Pedro Alves + + * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp): + Delete. + (async_remote_fileio_interrupt): Delete. + (remote_fileio_ctrl_c_signal_handler): Don't call the async signal + handler. Instead just always set the ctrl_c flag. + (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before + re-enabling the SIGINT handler. + (remote_fileio_func_open, remote_fileio_func_close) + (remote_fileio_func_read, remote_fileio_func_write) + (remote_fileio_func_lseek, remote_fileio_func_rename) + (remote_fileio_func_unlink, remote_fileio_func_stat) + (remote_fileio_func_fstat, remote_fileio_func_gettimeofday) + (remote_fileio_func_isatty, remote_fileio_func_system) + (remote_fileio_request): Remove references to + remote_fio_no_longjmp. + (initialize_remote_fileio): Don't create an async signal handler. + +2016-04-12 Pedro Alves + + * event-top.c (stdin_event_handler): Call QUIT; + (prompt_for_continue): Don't run with immediate_quit set. + +2016-04-12 Pedro Alves + + * tui/tui-io.c (tui_redisplay_readline): Check + gdb_in_secondary_prompt_p instead of immediate_quit. + * tui/tui.c: Include top.h. + (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of + immediate_quit. + +2016-04-12 Pedro Alves + + * top.c (read_command_file): Inline command_loop here. + (command_loop): Delete. + +2016-04-12 Pedro Alves + + * top.c: Include "gdb_select.h". + (gdb_readline_no_editing): Wait for input with gdb_select instead + of blocking in fgetc. + (command_line_input): Don't set immediate_quit. + +2016-04-08 Martin Galvan + + * value.c (value_next): Make pass-by-reference parameters const-correct. + (value_parent): Likewise. + (value_enclosing_type): Likewise. + (value_lazy): Likewise. + (value_stack): Likewise. + (value_embedded_offset): Likewise. + (value_pointed_to_offset): Likewise. + (value_raw_address): Likewise. + (deprecated_value_modifiable): Likewise. + (value_free_to_mark): Likewise. + (value_release_to_mark): Likewise. + (internalvar_name): Likewise. + (readjust_indirect_value_type): Likewise. + (value_initialized): Likewise. + * value.h (value_next): Likewise. + (value_parent): Likewise. + (value_enclosing_type): Likewise. + (value_lazy): Likewise. + (value_stack): Likewise. + (value_embedded_offset): Likewise. + (value_pointed_to_offset): Likewise. + (value_raw_address): Likewise. + (deprecated_value_modifiable): Likewise. + (value_free_to_mark): Likewise. + (value_release_to_mark): Likewise. + (internalvar_name): Likewise. + (readjust_indirect_value_type): Likewise. + (value_initialized): Likewise. + +2016-04-07 Yao Qi + + * record-full.c (record_full_insert_breakpoint): Return + early if entry on the address is found in + record_full_breakpoints. + +2016-04-07 Yao Qi + + * record-full.c (record_full_insert_breakpoint): Set + bp_tgt->reqstd_address and bp_tgt->placed_size. + +2016-04-06 Don Breazeal + + * value.c (value_actual_type): Don't try to get rtti type + of the value if it has been optimized out. + (value_optimized_out): If a memory access error occurs, + just check vaue->optimized_out. + +2016-04-06 Jan Kratochvil + + Revert the previous commit adding unknown_v_replies_ok. + +2016-04-06 Jan Kratochvil + + * remote.c (struct remote_state): New field unknown_v_replies_ok. + (packet_config_support): Read it. + (remote_start_remote): Set it. + +2016-04-06 Jan Kratochvil + + * remote.c: Revert check-in by a mistake in the previous commit. + +2016-04-06 Jan Kratochvil + Pedro Alves + + * exec.c (exec_file_locate_attach): Print warning for unsupported + target_pid_to_exec_file. + * symfile-mem.c (add_vsyscall_page): Remove the "file" command + message part. + +2016-04-04 Simon Marchi + + * cli/cli-decode.c (help_cmd_list): Fix function doc and remove + trailing spaces. + +2016-04-01 Artemiy Volkov + + PR gdb/19820 + * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be + the type of BINOP_REPEAT's second operand. + +2016-03-31 Yichao Yu + + PR gdb/19858 + * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already + got the breakpoint at the right address. + (jit_inferior_created): New function. + (_initialize_jit): Install jit_inferior_created as + inferior_created observer. + +2016-03-31 Marcin Kościelnicki + + * NEWS: Mention support for tracepoints on powerpc*-linux. + +2016-03-31 Catalin Udma + + PR python/19743 + * python/python.c (execute_gdb_command): Use console uiout + when executing gdb command. + * utils.c (restore_ui_out_closure): New structure. + (do_restore_ui_out): New function. + (make_cleanup_restore_ui_out): Likewise. + * utils.h (make_cleanup_restore_ui_out): Declare. + +2016-03-31 Pedro Alves + + * NEWS: Mention that support for "target m32rsdi", "target mips", + "target pmon", "target ddb", "target rockhopper", and "target lsi" + was removed. + * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and + remote-mips.o. + (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c. + * configure.tgt: Remove all references to remote-m32r-sdi.o and + remote-mips.o. + * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete + function. + * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete + declaration. + * remote-m32r-sdi.c, remote-mips.c: Delete files. + * symfile.c (generic_load, generic_load): Remove comments. + +2016-03-30 Yao Qi + + * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against + 0 rather than NULL. + +2016-03-30 Yao Qi + + * arm-tdep.c: (arm_make_epilogue_frame_cache): New function. + (arm_epilogue_frame_this_id): New function. + (arm_epilogue_frame_prev_register): New function. + (arm_epilogue_frame_sniffer): New function. + (arm_epilogue_frame_unwind): New. + (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind. + +2016-03-30 Yao Qi + + * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ... + (arm_stack_frame_destroyed_p_1): ... here. Don't call + arm_pc_is_thumb. + (arm_stack_frame_destroyed_p): Call + thumb_stack_frame_destroyed_p and + arm_stack_frame_destroyed_p_1. + +2016-03-30 Doug Evans + + * python/py-utils.c (host_string_to_python_string): New function. + * python/python-internal.h (host_string_to_python_string): Declare it. + * python/py-*.c (*): Update all calls to + PyString_Decode (str, strlen (str), host_charset (), NULL); + to use host_string_to_python_string instead. + +2016-03-30 Marcin Kościelnicki + + * remote.c (remote_check_symbols): Allocate own buffer for reply. + +2016-03-29 Max Filippov + + * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST. + Use safe_read_memory_integer instead of read_memory_integer. + +2016-03-29 Marcin Kościelnicki + + * NEWS: Mention support for tracepoints on s390*-linux. + +2016-03-29 Don Breazeal + + * gdb/value.c (value_actual_type): Fix formatting issue. + +2016-03-23 Yao Qi + + * gdbarch.sh (software_single_step): Remove comments. + * gdbarch.h: Regenerated. + +2016-03-21 Yao Qi + + * arm-tdep.c (arm_record_media): New. + (arm_record_ld_st_reg_offset): Call arm_record_media. + +2016-03-21 Yao Qi + + * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize + more syscalls. + +2016-03-18 Yao Qi + + * sparc-tdep.c (sparc_software_single_step): Make it static. + * sparc-tdep.h (sparc_software_single_step): Remove declaration. + +2016-03-18 Yao Qi + + * spu-tdep.c (spu_software_single_step): Throw error when + target_read_memory fails. + +2016-03-17 Jan Kratochvil + + * linux-thread-db.c (check_pid_namespace_match): Extend the message. + +2016-03-17 Pedro Alves + Don Breazeal + + PR remote/19496 + * infcmd.c (notice_new_inferior): Use the 'leave_running' argument + instead of checking the 'non_stop' global. + * remote.c (remote_add_thread): New parameter 'executing'. Use it + to set the new thread's executing state. + (remote_notice_new_inferior): Rename parameter 'running' to + 'executing'. Always set the thread state to THREAD_RUNNING in + non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass + EXECUTING to remote_add_thread and notice_new_inferior. + (remote_update_thread_list): Update to pass executing state, not + running state. + +2016-03-17 Andreas Arnez + + * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up + to 374. + * syscalls/s390x-linux.xml: Likewise. + +2016-03-17 Andreas Arnez + + * linux-record.c (record_mem_at_reg): New helper function. + (record_linux_system_call): Exploit new helper function where + applicable. + +2016-03-17 Andreas Arnez + + * linux-record.c: Fix whitespace issues; tabify, remove trailing + spaces. + +2016-03-17 Andreas Arnez + + * linux-record.c (record_linux_system_call): Add missing return + statements to handling of pipe and pipe2 syscalls. + +2016-03-16 Doug Evans + + * xml-tdesc.c (tdesc_start_enum): Fix c++ build. + +2016-03-16 Yao Qi + + * arm-linux-tdep.c (arm_linux_init_abi): Fix + arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and + arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4, + arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and + arm_linux_record_tdep.arg7. + +2016-03-15 Keith Seitz + + PR breakpoints/18303 + * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to + look for "::" instead of simply ":". + (cp_search_static_and_baseclasses): Return null_block_symbol for + malformed input. + Remove assertions. + * cp-support.c (cp_find_first_component_aux): Do not return + a prefix length for ':' unless the next character is also ':'. + +2016-03-15 Doug Evans + + * features/aarch64-core.xml (cpsr_flags): New flags type. + (cpsr): Use it. + * features/aarch64.c: Regenerate. + +2016-03-15 Doug Evans + + * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec. + * features/i386/32bit-sse.xml (i386_eflags): Ditto. + * features/i386/64bit-core.xml (i386_eflags): Ditto. + * features/i386/64bit-sse.xml (i386_eflags): Ditto. + * features/i386/x32-core.xml (i386_eflags): Ditto. + +2016-03-15 Doug Evans + Wei-cheng Wang + + Extend flags to support multibit and enum bitfields. + * NEWS: Document new features. + * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS. + (c_type_print_varspec_suffix, c_type_print_base): Ditto. + * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit. + (append_flags_type_field): New function. + (append_flags_type_flag): Call it. + * gdbtypes.h (append_flags_type_field): Declare. + * target-descriptions.c (struct tdesc_type_flag): Delete. + (enum tdesc_type_kind) : New enum value. + (enum tdesc_type_kind) : Ditto. + (struct tdesc_type) : Delete. + (tdesc_predefined_types): Add "bool". + (tdesc_predefined_type): New function. + (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM. + Update TDESC_TYPE_FLAGS support. + (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS. + (tdesc_create_flags): Update. + (tdesc_create_enum): New function. + (tdesc_add_field): Initialize start,end to -1. + (tdesc_add_typed_bitfield): New function. + (tdesc_add_bitfield): Call it. + (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update. + (tdesc_add_enum_value): New function. + (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into + TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM. + * target-descriptions.h (tdesc_create_enum): Declare. + (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare. + * valprint.c (generic_val_print_enum_1): New function. + (generic_val_print_enum): Call it. + (val_print_type_code_flags): Make static. Handle multibit bitfields + and enum bitfields. + * valprint.h (val_print_type_code_flags): Delete. + * xml-tdesc.c (struct tdesc_parsing_data) : + Delete. All uses removed. + (tdesc_start_enum): New function. + (tdesc_start_field): Handle multibit and enum bitfields. + (tdesc_start_enum_value): New function. + (enum_value_attributes, enum_children, enum_attributes): New static + globals. + (feature_children): Add "enum". + * features/gdb-target.dtd (enum, evalue): New elements. + +2016-03-15 Doug Evans + + * target-descriptions.c (struct tdesc_type) : Change type + from LONGEST to int. + (struct tdesc_type) : Ditto. + (tdesc_set_struct_size): Change type of "size" arg from LONGEST + to int. Add assertion size > 0. + (tdesc_create_flags): Ditto. + * target-descriptions.h (tdesc_set_struct_size): Update. + (tdesc_create_flags): Update. + * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros. + (MAX_VECTOR_SIZE): New macro. + (tdesc_start_struct): Catch conversion errors from LONGEST to int. + (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto. + +2016-03-15 Doug Evans + + * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for + TYPE_CODE_FLAGS instead of "field_type", for consistency. + * features/i386/amd64-avx-linux.c: Regenerate. + * features/i386/amd64-avx.c: Regenerate. + * features/i386/amd64-avx512-linux.c: Regenerate. + * features/i386/amd64-avx512.c: Regenerate. + * features/i386/amd64-linux.c: Regenerate. + * features/i386/amd64-mpx-linux.c: Regenerate. + * features/i386/amd64-mpx.c: Regenerate. + * features/i386/amd64.c: Regenerate. + * features/i386/i386-avx-linux.c: Regenerate. + * features/i386/i386-avx.c: Regenerate. + * features/i386/i386-avx512-linux.c: Regenerate. + * features/i386/i386-avx512.c: Regenerate. + * features/i386/i386-linux.c: Regenerate. + * features/i386/i386-mmx-linux.c: Regenerate. + * features/i386/i386-mmx.c: Regenerate. + * features/i386/i386-mpx-linux.c: Regenerate. + * features/i386/i386-mpx.c: Regenerate. + * features/i386/i386.c: Regenerate. + * features/i386/x32-avx-linux.c: Regenerate. + * features/i386/x32-avx.c: Regenerate. + * features/i386/x32-avx512-linux.c: Regenerate. + * features/i386/x32-avx512.c: Regenerate. + * features/i386/x32-linux.c: Regenerate. + * features/i386/x32.c: Regenerate. + +2016-03-15 Pedro Alves + + PR gdb/19676 + * linux-thread-db.c (try_thread_db_load_1): Leave + info->td_ta_thr_iter_p NULL iff debugging a live process and we + have /proc access. + (find_new_threads_once): Assert that we have a non-NULL + info->td_ta_thr_iter_p instead of checking whether the target has + execution. + +2016-03-15 Pedro Alves + + PR gdb/19676 + * infrun.c (displaced_step_prepare): Also disable displaced + stepping on NOT_SUPPORTED_ERROR. + * linux-tdep.c (linux_displaced_step_location): If reading auxv + fails, throw NOT_SUPPORTED_ERROR instead of generic error. + +2016-03-13 Marcin Kościelnicki + + * s390-linux-tdep.c (s390_gen_return_address): New function. + (s390_gdbarch_init): Fill gen_return_address hook. + +2016-03-11 Andrew Burgess + + * symmisc.c (maintenance_info_line_tables): New function. + (maintenance_print_one_line_table): New function. + (_initialize_symmisc): Register 'maint info line-table' command. + * NEWS: Mention new command. + +2016-03-11 Marcin Kościelnicki + + * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function. + (s390_ax_pseudo_register_push_stack): New function. + (s390_gdbarch_init): Fill ax_pseudo_register_collect and + ax_pseudo_register_push_stack hooks. + +2016-03-10 Simon Marchi + + * data-directory/Makefile.in (PYTHON_FILE_LIST): Install + gdb/function/as_string.py. + * python/lib/gdb/function/as_string.py: New file. + * NEWS: Mention the new $_as_string function. + +2016-03-09 Jose E. Marchesi + + * target.h: Fix doc string of target_can_use_hardware_watchpoint. + +2016-03-09 Pedro Alves + + * event-top.c (more_to_come): Delete. + (struct readline_input_state): Delete. + (readline_input_state): Delete. + (get_command_line_buffer): New function. + (command_handler): Update comments. Don't handle NULL commands + here. Do not execute commented lines. + (command_line_append_input_line): New function. + (handle_line_of_input): New function, partly based on + command_line_handler and command_line_input. + (command_line_handler): Rewrite. + * event-top.h (command_handler): New declaration. + (command_loop): Defer command execution to command_handler. + (command_line_input): Update comments. Simplify, using struct + buffer and handle_line_of_input. + * top.h (struct buffer): New forward declaration. + (handle_line_of_input): New declaration. + +2016-03-09 Pedro Alves + + * event-top.c (command_line_handler): Use xfree + xstrdup instead + of xrealloc + strcpy. + * main.c (captured_main): Use xstrdup instead of xmalloc plus + manual clear. + * top.c (saved_command_line): Rewrite comment. + (saved_command_line_size): Delete. + (command_line_input): Use xfree + xstrdup instead of xrealloc + + strcpy. + * top.h (saved_command_line_size): Delete declaration. + +2016-03-09 Pedro Alves + + * event-top.c: Include buffer.h. + (gdb_readline_no_editing_callback): Use struct buffer instead + of xrealloc. + +2016-03-09 Pedro Alves + + * common/buffer.h (buffer_grow_char): New function. + * top.c: Include buffer.h. + (gdb_readline_no_editing): Rename 'prompt_arg' parameter to + 'prompt'. Use struct buffer instead of xrealloc. + +2016-03-09 Pedro Alves + + * defs.h (gdb_readline): Delete declaration. + * top.c (gdb_readline): Rename to ... + (gdb_readline_no_editing): ... this, and make static. + +2016-03-09 Pedro Alves + + * utils.c (prompt_for_continue): Update comments. + +2016-03-09 Pedro Alves + + * event-top.c (async_annotation_suffix): Delete. + (top_level_prompt, command_line_handler): Don't use + 'async_annotation_suffix' and simplify. + * event-top.h (async_annotation_suffix): Delete declaration. + (init_main): Remove reference to 'async_annotation_suffix'. + +2016-03-09 Pedro Alves + + * event-top.c (gdb_readline2): Rename to ... + (gdb_readline_no_editing_callback): ... this. + (change_line_handler, stdin_event_handler) + (gdb_setup_readline): Adjust. + * event-top.h (gdb_readline2): Rename to ... + (gdb_readline_no_editing_callback): ... this, and move closer to + other readline-related declarations. + * mi/mi-interp.c (mi_interpreter_resume): Adjust. + +2016-03-09 Pedro Alves + + * top.c (window_hook): Delete. + (command_loop): Remove references to window_hook. + +2016-03-09 Marcin Kościelnicki + + * corefile.c (safe_read_memory_unsigned_integer): New function. + * gdbcore.h (safe_read_memory_unsigned_integer): New prototype. + * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned. + +2016-03-09 Marcin Kościelnicki + + * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes. + (rs6000_gen_return_address): New function. + (rs6000_gdbarch_init): Wire in the above. + +2016-03-09 Marcin Kościelnicki + + * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function. + (rs6000_gdbarch_init): Wire in the above. + +2016-03-09 Andreas Arnez + + * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL + instructions that do nothing or are conditional traps. + +2016-03-09 Andreas Arnez + + * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store + frame func's PC in info->func before any other failure can occur. + (s390_frame_this_id): Use frame_id_build_unavailable_stack if + info->func has been filled out. + +2016-03-09 Pedro Alves + + * osabi.c (gdb_osabi_names): Avoid spaces in osabi names. + +2016-03-09 Pedro Alves + + * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300. + +2016-03-09 Pedro Alves + + * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte + order is BFD_ENDIAN_BIG or if the cris version is unsupported. + +2016-03-09 Pedro Alves + + * doublest.c: Extend comments. + (floatformat_to_doublest, floatformat_from_doublest): Copy the + floatformat's total size, not the host type's size. + +2016-03-09 Pedro Alves + + * doublest.c (floatformat_totalsize_bytes): New function. + (floatformat_from_type): Assert that the type's length is at least + as long as the floatformat's totalsize. + * doublest.h (floatformat_totalsize_bytes): New declaration. + * gdbtypes.c (arch_float_type): Assert that the type's length is + at least as long as the floatformat's totalsize. + +2016-03-09 Pedro Alves + + * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double + format to floatformats_ieee_double. + +2016-03-07 Pedro Alves + + * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL + before calling bfd_get_flavour. + +2016-03-05 Pitchumani Sivanupandi + + * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define. + (avr_push_dummy_call): Correct last needed argument register. + Write MSB of argument into register and subsequent bytes into + other registers in decreasing order. + +2016-03-04 Yao Qi + + * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the + condition check. Record the right D register number. + +2016-03-04 Yao Qi + + * arm-tdep.c (arm_record_extension_space): Remove code + printing "Process record does not support". + (arm_record_data_proc_misc_ld_str): Likewise. + (decode_insn): Call arm_record_extension_space if condition + is 0xf. Call arm_record_unsupported_insn if ret isn't + ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold + the value of thumb2_record_decode_insn_handler. + +2016-03-04 Simon Marchi + + * features/feature_to_c.sh: Print the help when passing no + argument. + +2016-03-02 Bernhard Heckel + + * MAINTAINERS (Write After Approval): Add Bernhard Heckel. + +2016-03-02 Bernhard Heckel + + * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers. + +2016-03-01 Andreas Arnez + + * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid + exception when attempting to access the inferior's backchain. + +2016-02-29 Yao Qi + + * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support + eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2. + Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create + for aarch64_sys_epoll_create1. + +2016-02-29 Yao Qi + + * linux-record.h (enum gdb_syscall) : New. + : New. + : New. + * linux-record.c (record_linux_system_call): Handle them. + +2016-02-28 Iain Buclaw + + * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from + cyclic imports. + +2016-02-26 Keith Seitz + + * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result + to avoid invalid conversion from void *. + +2016-02-26 Yao Qi + + * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg' + per bit 8. Check bit 20 instead of bit 4 for VMOV + instruction. Record D registers for instructions changing + S registers. Change of the order of length and address + in record_buf_mem array. + +2016-02-26 Yao Qi + + * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register + number of Rd. + +2016-02-25 Doug Evans + + * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid + compiler warning. + (recv_long_data): Ditto. + +2016-02-25 Simon Marchi + + * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): + Initialize variables. + +2016-02-25 Antoine Tremblay + + * ax-general.c (ax_reg): Call gdbarch_remote_register_number. + (ax_reg_mask): Likewise. + +2016-02-24 Pedro Alves + + * linux-nat.c (save_sigtrap) Delete. + (stop_wait_callback): Call save_stop_reason instead of + save_sigtrap. + (check_stopped_by_breakpoint): Rename to ... + (save_stop_reason): ... this. Bits of save_sigtrap folded here. + Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous + GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out + common code between the USE_SIGTRAP_SIGINFO and + !USE_SIGTRAP_SIGINFO blocks. + (linux_nat_filter_event): Call save_stop_reason instead of + save_sigtrap. + * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT + si_code for MIPS. + * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add + comments on MIPS behavior. + (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs. + +2016-02-24 Marcin Kościelnicki + + * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0 + to avoid spurious warnings. + +2016-02-24 Gary Benson + + * exec.c (exec_file_locate_attach): Do not attempt to + locate main executable locally if not found in sysroot. + +2016-02-24 Joel Brobecker + + GDB 7.11 released. + +2016-02-24 Wei-cheng Wang + + * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle + unavailable PC/SP to build unavailable frame. + +2016-02-23 Doug Evans + + Extend "skip" command to support -file, -gfile, -function, -rfunction. + * NEWS: Document new features. + * skip.c: #include "fnmatch.h", "gdb_regex.h". + (skiplist_entry) : Renamed from filename. + : Renamed from function_name. + : New members. + : + New members. + (make_skip_entry): New function. + (free_skiplist_entry, free_skiplist_entry_cleanup): New functions. + (make_free_skiplist_entry_cleanup): New function. + (skip_file_command): Update. + (skip_function, skip_function_command): Update. + (compile_skip_regexp): New functions. + (skip_command): Add support for new options. + (skip_info): Update. + (skip_file_p, skip_gfile_p): New functions. + (skip_function_p, skip_rfunction_p): New functions. + (function_name_is_marked_for_skip): Update and simplify. + (_initialize_step_skip): Update. + * symtab.c: #include "fnmatch.h". + (compare_glob_filenames_for_search): New function. + * symtab.h (compare_glob_filenames_for_search): Declare. + * utils.c (count_path_elements): New function. + (strip_leading_path_elements): New function. + * utils.h (count_path_elements): Declare. + (strip_leading_path_elements): Declare. + +2016-02-23 Simon Marchi + + * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter. + (thumb_process_displaced_insn): Likewise. + (arm_process_displaced_insn): Adjust calls. + +2016-02-23 Yao Qi + + * aarch64-linux-tdep.c (enum aarch64_syscall) : + Remove. + : Remove. + : Remove. + : New. + : New. + : New. + : New. + : Remove. + : New. + : New. + (UNSUPPORTED_SYSCALL_MAP): New macro. + (aarch64_canonicalize_syscall): Add missing syscalls. + +2016-02-22 Jan Kratochvil + + * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print. + +2016-02-22 Yao Qi + + * arm-tdep.c: Fix code format issues. + +2016-02-21 Iain Buclaw + + * d-namespace.c (d_lookup_symbol_imports): Remove argument + 'search_parents'. All callers updated. + +2016-02-18 Marcin Kościelnicki + + * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function. + (s390_gdbarch_init): Fill guess_tracepoint_registers hook. + +2016-02-18 Walfred Tedeschi + + * NEWS: Add entry for bound violation. + * amd64-linux-tdep.c (amd64_linux_init_abi_common): + Add handler for segmentation fault. + * gdbarch.sh (handle_segmentation_fault): New. + * gdbarch.c: Regenerate. + * gdbarch.h: Regenerate. + * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New. + (SIG_CODE_BONDARY_FAULT): New define. + (i386_linux_init_abi): Use i386_mpx_bound_violation_handler. + * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New. + * i386-tdep.c (i386_mpx_enabled): Add as external. + * i386-tdep.c (i386_mpx_enabled): Add as external. + * infrun.c (handle_segmentation_fault): New function. + (print_signal_received_reason): Use handle_segmentation_fault. + +2016-02-18 Marcin Kościelnicki + + * arch-utils.c (default_guess_tracepoint_registers): New function. + * arch-utils.h (default_guess_tracepoint_registers): New prototype. + * gdbarch.c: Regenerate. + * gdbarch.h: Regenerate. + * gdbarch.sh: Add guess_tracepoint_registers hook. + * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook. + +2016-02-17 Gary Benson + + * exec.c (exec_file_locate_attach): Add missing cleanup. + +2016-02-16 Don Breazeal + + PR remote/19496 + * remote.c (remove_new_fork_children): Check for pending + fork status in thread_info.suspend. + +2016-02-16 Yao Qi + + * arm-linux-tdep.c (arm_linux_software_single_step): Assign + 'old_chain' later. + +2016-02-16 Yao Qi + + * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops) + : Remove argument PC. Callers updated. + * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc): + Remove argument PC. Get pc from regcache_read_pc. + * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove + argument PC. + +2016-02-15 Yao Qi + + * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x". + +2016-02-12 Yao Qi + + * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate + nextpc according to instruction. + +2016-02-12 Yao Qi + + * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call + self->ops->fixup if it isn't NULL. + * arch/arm-get-next-pcs.h: Include gdb_vecs.h. + (struct arm_get_next_pcs_ops) : New field. + * arch/arm-linux.c: Include common-regcache.h and + arch/arm-get-next-pcs.h. + (arm_linux_get_next_pcs_fixup): New function. + * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare. + * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize + it with arm_linux_get_next_pcs_fixup. + (arm_linux_software_single_step): Move code to + arm_linux_get_next_pcs_fixup. + * arm-tdep.c (arm_get_next_pcs_ops): Initialize it. + +2016-02-12 Marcin Kościelnicki + + * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn + and return NULL. + +2016-02-12 Markus Metzger + + * frame.h (skip_tailcall_frames): Update comment. + * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL + if only artificial frames are found. Update comment. + (frame_unwind_caller_id): Handle NULL return. + (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that + skip_artificial_frames does not return NULL. + (frame_pop): Add an error if only tailcall frames are found. + * infcmd.c (finish_command): Move skip_tailcall_frames call into + forward-execution case. Add an error if only tailcall frames are + found. + +2016-02-12 Markus Metzger + + * stack.c (frame_info): Check frame_unwind_caller_id. + +2016-02-12 Markus Metzger + + * frame.h (skip_tailcall_frames): New. + * frame.c (skip_tailcall_frames): New. + (frame_pop): Call skip_tailcall_frames. + * infcmd.c (finish_command): Call skip_tailcall_frames. + +2016-02-11 Pedro Alves + + * Makefile.in (check-parallel): New rule. + +2016-02-11 Simon Marchi + + * arm-tdep.c (arm_skip_prologue): Remove unused variables. + (arm_analyze_prologue): Likewise. + (arm_scan_prologue): Likewise. + (arm_m_exception_prev_register): Likewise. + (arm_copy_block_xfer): Likewise. + (thumb2_copy_block_xfer): Likewise. + (arm_decode_miscellaneous): Likewise. + (arm_decode_ld_st_word_ubyte): Likewise. + (arm_decode_svc_copro): Likewise. + (thumb2_decode_svc_copro): Likewise. + (thumb_copy_16bit_ldr_literal): Likewise. + (thumb_copy_pop_pc_16bit): Likewise. + (decode_thumb_32bit_ld_mem_hints): Likewise. + (arm_show_force_mode): Likewise. + (_initialize_arm_tdep): Likewise. + (arm_record_strx): Likewise. + (arm_record_extension_space): Likewise. + (arm_record_data_proc_misc_ld_str): Likewise. + (arm_record_exreg_ld_st_insn): Likewise. + (arm_record_vfp_data_proc_insn): Likewise. + (arm_record_coproc_data_proc): Likewise. + (thumb_record_misc): Likewise. + (thumb_record_ldm_stm_swi): Likewise. + (thumb2_record_ld_st_dual_ex_tbb): Likewise. + (thumb2_record_ld_mem_hints): Likewise. + (thumb2_record_lmul_lmla_div): Likewise. + (thumb2_record_asimd_struct_ld_st): Likewise. + (arm_process_record): Likewise. + +2016-02-11 Simon Marchi + + * arm-tdep.c (arm_displaced_step_copy_insn): Remove. + (ARM displaced stepping support): Remove reference to + arm_displaced_step_copy_insn in comment. + * arm-tdep.h (arm_displaced_step_copy_insn): Remove. + * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove + reference to arm_displaced_step_copy_insn in comment. + +2016-02-11 Simon Marchi + + * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn. + (thumb_copy_b): Likewise. + (arm_decode_b_bl_ldmstm): Likewise. + (thumb_copy_16bit_ldr_literal): Likewise. + (thumb_copy_pop_pc_16bit): Likewise. + +2016-02-11 Antoine Tremblay + + * tracepoint.c (encode_actions_1): Use target_gdbarch () rather + than loc->gdbarch. + +2016-02-10 Marcin Kościelnicki + + * tracefile-tfile.c (trace_tdesc): New static variable. + (tfile_open): Clear trace_tdesc, call target_find_description. + (tfile_interp_line): Recognize tdesc lines. + (tfile_close): Clear trace_tdesc. + (tfile_xfer_partial_features): New function. + (tfile_xfer_partial): Call tfile_xfer_partial_features. + (tfile_append_tdesc_line): New function. + +2016-02-10 Marcin Kościelnicki + + * ctf.c (ctf_write_tdesc): New function. + (ctf_write_ops): Wire in ctf_write_tdesc. + * tracefile-tfile.c (tfile_write_tdesc): New function. + (tfile_write_ops): Wire in tfile_write_tdesc. + * tracefile.c (trace_save): Call write_tdesc method. + * tracefile.h (struct trace_file_write_ops): Add write_tdesc method. + * xml-tdesc.c (target_fetch_description_xml): New function. + * xml-tdesc.h: Add target_fetch_description_xml prototype. + +2016-02-10 Simon Marchi + + * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo. + (arm_decode_dp_misc): Likewise. + +2016-02-10 Marcin Kościelnicki + + * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function. + (amd64_init_abi): Fill ax_pseudo_register_collect hook. + * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove + misleading comment. + (i386_pseudo_register_write): Ditto. + (i386_ax_pseudo_register_collect): New function. + (i386_gdbarch_init): Fill ax_pseudo_register_collect hook. + * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype. + +2016-02-10 Marcin Kościelnicki + + * tracefile-tfile.c (tfile_fetch_registers): Use g packet order + instead of gdb order. + +2016-02-10 Marcin Kościelnicki + + * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds + check. + +2016-02-10 Joel Brobecker + + * NEWS: Create a new section for the next release branch. + Rename the section of the current branch, now that it has + been cut. + +2016-02-10 Joel Brobecker + + GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a): + * version.in: Bump version to 7.11.50.DATE-git. + +2016-02-09 Keith Seitz + + PR breakpoints/19546 + * breakpoint.c (breakpoint_event_location_empty_p): New function. + (update_breakpoints_after_exec, bkpt_re_set): Use this new function + instead of event_location_empty_p. + +2016-02-09 Keith Seitz + + * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use + string_to_event_location_basic instead of string_to_event_location. + +2016-02-09 Keith Seitz + + * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip + leading whitespace and use string_to_event_location_basic instead + of new_linespec_location. + +2016-02-09 Keith Seitz + + PR python/19506 + * python/py-breakpoint.c (bppy_init): Use + string_to_event_location_basic instead of new_linespec_location. + +2016-02-09 Keith Seitz + + * location.c (string_to_explicit_location): Note that "-p" is + reserved for probe locations and return NULL for any input + that starts with that. + (string_to_event_location): Move "legacy" linespec code to ... + (string_to_event_location_basic): ... here. + * location.h (string_to_event_location): Update comment. + (string_to_event_location_basic): New function. + +2016-02-09 Simon Marchi + + * configure.ac: Use AC_CONFIG_FILES instead of passing arguments + to AC_OUTPUT. Remove "exit 0" at the end. + * configure: Regenerate. + +2016-02-09 Pedro Alves + + PR breakpoints/19548 + * breakpoint.c (create_overlay_event_breakpoint): Don't update + global location list here. + (create_longjmp_master_breakpoint) + (create_std_terminate_master_breakpoint) + (create_exception_master_breakpoint, create_jit_event_breakpoint) + (update_breakpoint_locations): + (breakpoint_re_set): Update global location list after all + breakpoints are re-set. + +2016-02-08 Simon Marchi + + * remote.c (remote_register_number_and_offset): Remove unused + variable(s). + (remote_thread_always_alive): Likewise. + (remote_update_thread_list): Likewise. + (process_initial_stop_replies): Likewise. + (remote_start_remote): Likewise. + (remote_check_symbols): Likewise. + (discard_pending_stop_replies): Likewise. + (process_stop_reply): Likewise. + (putpkt_binary): Likewise. + (getpkt): Likewise. + (remote_add_target_side_condition): Likewise. + (remote_insert_breakpoint): Likewise. + (remote_supports_stopped_by_sw_breakpoint): Likewise. + (remote_supports_stopped_by_hw_breakpoint): Likewise. + (remote_xfer_partial): Likewise. + (remote_read_btrace): Likewise. + (remote_async_serial_handler): Likewise. + (remote_thread_events): Likewise. + (_initialize_remote): Likewise. + +2016-02-07 Simon Marchi + + * varobj.h (varobj_delete): Remove dellist parameter, update and + move documentation here. + * varobj.c (struct cpstack, cppush, cppop): Remove. + (delete_variable): Remove resultp (first) parameter. + (delete_variable_1): Likewise. + (varobj_delete): Remove dellist parameter and unused code. + (update_dynamic_varobj_children): Adjust varobj_delete call. + (update_type_if_necessary): Likewise. + (varobj_set_visualizer): Likewise. + (varobj_update): Likewise. + (value_of_root): Likewise. + (varobj_invalidate_iter): Likewise. + * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise. + +2016-02-04 Yao Qi + + * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to + 0 before handling 'F' and set it back afterwards. + +2016-02-02 Simon Marchi + + * ui-out.c (MAX_UI_OUT_LEVELS): Remove. + +2016-02-02 Walfred Tedeschi + + * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval): + New types. + (compat_siginfo): New bound fields added. + (compat_x32_siginfo): New field added. + (cpt_si_addr_lsb): New define. + (compat_siginfo_from_siginfo): Use nat_siginfo. + (siginfo_from_compat_siginfo): Use nat_siginfo. + (compat_x32_siginfo_from_siginfo): Likewise. + (siginfo_from_compat_x32_siginfo): Likewise. + +2016-02-02 Walfred Tedeschi + + * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd + structure to the siginfo if extra_fields contains + LINUX_SIGINFO_FIELD_ADDR_BND. + +2016-02-02 Walfred Tedeschi + + * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern. + * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern. + * i386-linux-tdep.h (x86_linux_get_siginfo_type): New + function. + * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add + x86_linux_get_siginfo_type for the amd64 abi. + * i386-linux-tdep.c (x86_linux_get_siginfo_type): New + function. + (i386_linux_init_abi): Add new function at the i386 ABI + initialization. + +2016-02-02 Walfred Tedeschi + + * linux-tdep.h (linux_siginfo_extra_field_values): New enum values. + (linux_siginfo_extra_fields): New enum type. + * linux-tdep.c (linux_get_siginfo_type_with_fields): New function. + (linux_get_siginfo_type): Use new function. + +2016-02-02 Walfred Tedeschi + + * nat/amd64-linux-siginfo.c: New file. + * nat/amd64-linux-siginfo.h: New file. + * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h. + (amd64-linux-siginfo.o): New rule. + * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o. + * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include. + (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) + (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo) + (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid) + (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status) + (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band) + (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c. + +2016-02-01 Andrew Burgess + + * value.c (max_value_size): New variable. + (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define. + (set_max_value_size): New function. + (show_max_value_size): New function. + (check_type_length_before_alloc): New function. + (allocate_value_contents): Call check_type_length_before_alloc. + (set_value_enclosing_type): Likewise. + (_initialize_values): Add set/show handler for max-value-size. + * NEWS: Mention new set/show command. + +2016-01-31 Simon Marchi + + * varobj.h (struct varobj): Fix typos in comments. + (struct lang_varobj_ops): Likewise. + * varobj.c (VAROBJ_TABLE_SIZE): Likewise. + (varobj_create): Move misplaced comment. + +2016-01-29 Simon Marchi + + * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces + to for include additional lines. + * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces. + +2016-01-28 Simon Marchi + + * gnulib/import/Makefile.am: Regenerate. + * gnulib/import/Makefile.in: Regenerate. + * gnulib/import/m4/gnulib-cache.m4: Regenerate. + * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr. + +2016-01-28 Simon Marchi + + * remote.c (skip_to_semicolon): Remove. + (remote_parse_stop_reply): Use strchrnul instead of + skip_to_semicolon. + * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add + strchrnul. + * gnulib/aclocal.m4: Regenerate. + * gnulib/config.in: Regenerate. + * gnulib/configure: Regenerate. + * gnulib/import/Makefile.am: Regenerate. + * gnulib/import/Makefile.in: Regenerate. + * gnulib/import/m4/gnulib-cache.m4: Regenerate. + * gnulib/import/m4/gnulib-comp.m4: Regenerate. + * gnulib/import/m4/rawmemchr.m4: New file. + * gnulib/import/m4/strchrnul.m4: New file. + * gnulib/import/rawmemchr.c: New file. + * gnulib/import/rawmemchr.valgrind: New file. + * gnulib/import/strchrnul.c: New file. + * gnulib/import/strchrnul.valgrind: New file. + +2016-01-28 Yao Qi + + * breakpoint.c (build_target_command_list): Don't call continue + if aexpr is NULL. + (build_target_condition_list): Likewise. + +2016-01-27 Kevin Buettner + + * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8 + bytes as aggregates. + +2016-01-27 Joel Brobecker + + * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as + Linespec Maintainers. + +2016-01-26 Simon Marchi + + * common/common-utils.c (skip_spaces): Fix comment. + (skip_to_space_const): Likewise. + +2016-01-25 Yao Qi + + * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): + Remove argument pc. Get pc by regcache_read_pc. Callers updated. + (arm_deal_with_atomic_sequence_raw): Likewise. + (thumb_get_next_pcs_raw): Likewise. + (arm_get_next_pcs_raw): Likewise. + (arm_get_next_pcs): Remove argument pc. Callers updated. + * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration. + +2016-01-25 Mark Wielaard + + * ada-lang.c (ada_evaluate_subexp): Add proper else block. + * c-typeprint.c (c_type_print_base): Fix misleading indentation of + if statement. + * inflow.c (child_terminal_ours_1): Fix misleading indentation of + statement block by introducing an else. + * linux-record.c (record_linux_sockaddr): Fix misleading indentation + of return statements. + (record_linux_msghdr): Likewise. + +2016-01-25 Pedro Alves + + PR threads/19461 + * infrun.c (handle_inferior_event_1) : Update + parent/child running states. + +2016-01-25 Pedro Alves + + PR gdb/19494 + * linux-nat.c (kill_one_lwp): New, factored out from ... + (kill_callback): ... this. + (kill_wait_callback): New, factored out from ... + (kill_wait_one_lwp): ... this. + (kill_unfollowed_fork_children): New function. + (linux_nat_kill): Use it. + +2016-01-22 John Baldwin + + * fbsd-nat.c (fbsd_pid_to_str): Adjust string format. + +2016-01-22 Yao Qi + + * arm-linux-nat.c (fetch_fpregs): Call perror_with_name + instead of warning. + (store_fpregs, fetch_regs, store_regs): Likewise. + (fetch_wmmx_regs, store_wmmx_regs): Likewise. + (fetch_vfp_regs, store_vfp_regs): Likewise. + +2016-01-21 Doug Evans + + * breakpoint.c (init_breakpoint_sal): Add comment. + +2016-01-21 Marcin Kościelnicki + + * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection. + +2016-01-21 Andrew Burgess + + * disasm.c (maybe_add_dis_line_entry): Rename to... + (add_dis_line_entry): ...this, and update header comment. + (do_mixed_source_and_assembly): Now use add_dis_line_entry. + +2016-01-21 Pedro Alves + + * Makefile.in (COMPILER_CFLAGS): New. + (CXXFLAGS): Get it from configure. + (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS + instead of CFLAGS. + * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST + COMPILER_CFLAGS. + * configure: Regenerate. + +2016-01-21 Joel Brobecker + + * location.h (new_address_location): Add new parameters + "addr_string" and "addr_string_len". + (get_address_string_location): Add declaration. + * location.c (new_address_location): Add new parameters + "addr_string" and "addr_string_len". If not NULL, store + a copy of the addr_string in the new location as well. + (get_address_string_location): New function. + (string_to_event_location): Update call to new_address_location. + * linespec.c (event_location_to_sals) : + Save the event location in the parser's state before + passing it to convert_address_location_to_sals. + * breakpoint.c (create_thread_event_breakpoint): Update call + to new_address_location. + (init_breakpoint_sal): Get the event location's string, if any, + and use it to update call to new_address_location. + * python/py-finishbreakpoint.c (bpfinishpy_init): + Update call to new_address_location. + * spu-tdep.c (spu_catch_start): Likewise. + + * config/djgpp/fnchange.lst: Add entries for + gdb/testsuite/gdb.base/break-fun-addr1.c and + gdb/testsuite/gdb.base/break-fun-addr2.c. + +2016-01-21 Yao Qi + + * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter + is_thumb and set it according to CPSR saved on the stack. + (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to + arm_linux_sigreturn_next_pc. + +2016-01-20 Simon Marchi + + * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__): + Fix enumerators sort key function. + +2016-01-20 Joel Brobecker + + * printcmd.c (print_scalar_formatted): Move binary operator from + end of line to beginning of next line. Adjust formatting + accordingly. + +2016-01-19 John Baldwin + + * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of + "len" with sysctl. + +2016-01-19 John Baldwin + + * fbsd-tdep.c (find_stop_signal): Remove. + (struct fbsd_collect_regset_section_cb) : New field. + : New field. + : New field. + (fbsd_collect_regset_section_cb): Use new fields. + (fbsd_collect_thread_registers): New function. + (struct fbsd_corefile_thread_data): New structure. + (fbsd_corefile_thread): New function. + (fbsd_make_corefile_notes): Use new function to dump notes for each + non-exited thread in a process. + +2016-01-19 John Baldwin + + * configure.ac: Check for support for LWP names on FreeBSD. + * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp. + [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] + (fbsd_fetch_kinfo_proc): Move function earlier. + [PT_LWPINFO] (fbsd_thread_alive): New function. + [PT_LWPINFO] (fbsd_pid_to_str): New function. + [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function. + [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function. + [PT_LWPINFO] (fbsd_add_threads): New function. + [PT_LWPINFO] (fbsd_update_thread_list): New function. + [PT_LWPINFO] New variable super_resume. + [PT_LWPINFO] (resume_one_thread_cb): New function. + [PT_LWPINFO] (resume_all_threads_cb): New function. + [PT_LWPINFO] (fbsd_resume): New function. + (fbsd_remember_child): Save full ptid instead of plain pid. + (fbsd_is_child_pending): Return ptid of saved child process. + (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on + first stop. + [PT_LWP_EVENTS] Handle LWP events. + [TDP_RFPPWAIT] Include LWP in child ptid. + (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events. + (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events. + Add threads for existing processes. + (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to + "fbsd_thread_alive". + Set "to_pid_to_str" to "fbsd_pid_to_str". + [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to + "fbsd_thread_name". + [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list". + Set "to_has_thread_control" to "tc_schedlock". + Set "to_resume" to "fbsd_resume". + (_initialize_fbsd_nat): New function. + * configure: Regenerate. + * config.in: Regenerate. + +2016-01-19 John Baldwin + + * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use + get_ptrace_pid. + (amd64bsd_store_inferior_registers): Use get_ptrace_pid. + (amd64bsd_dr_get): Use get_ptrace_pid. + (amd64bsd_dr_set): Use get_ptrace_pid. + * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid. + (i386bsd_store_inferior_registers): Use get_ptrace_pid. + (i386bsd_dr_get): Use get_ptrace_pid. + (i386bsd_dr_set): Use get_ptrace_pid. + * inf-ptrace.c (get_ptrace_pid): Export. + * inf-ptrace.h (get_ptrace_pid): Declare. + * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id. + (ppcfbsd_store_inferior_registers): Use lwp id. + +2016-01-19 John Baldwin + + * fbsd_tdep.c (fbsd_core_pid_to_str): New function. + (fbsd_core_thread_name): New function. + (fbsd_init_abi): Add "core_pid_to_str" gdbarch method. + Add "core_thread_name" gdbarch method. + +2016-01-19 John Baldwin + + * corelow.c (core_thread_name): New function. + (init_core_ops): Use "core_thread_name" for the "to_thread_name" + target op. + * gdbarch.sh (core_thread_name): New gdbarch callback. + * gdbarch.h: Re-generate. + * gdbarch.c: Re-generate. + +2016-01-19 Simon Marchi + + * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly + convert gdb.Value to integer type using int(). + +2016-01-19 John Baldwin + + * configure.ac: Include + + * ax-gdb.c (agent_command_1): Adjust call to decode_line_full. + * break-catch-throw.c (re_set_exception_catchpoint): Pass the + current program space down to linespec decoding and breakpoint + location updating. + * breakpoint.c (parse_breakpoint_sals): Adjust calls to + decode_line_full. + (until_break_command): Adjust calls to decode_line_1. + (base_breakpoint_decode_location, bkpt_decode_location): Add + 'search_pspace' parameter. Pass it along. + (bkpt_probe_create_sals_from_location): Adjust calls to + parse_probes. + (tracepoint_decode_location, tracepoint_probe_decode_location) + (strace_marker_decode_location): Add 'search_pspace' parameter. + Pass it along. + (all_locations_are_pending): Rewrite to take a breakpoint and + program space as arguments instead. + (hoist_existing_locations): New function. + (update_breakpoint_locations): Add 'filter_pspace' parameter. Use + hoist_existing_locations instead of always removing all locations, + and adjust to all_locations_are_pending change. + (location_to_sals): Add 'search_pspace' parameter. Pass it along. + Don't disable the breakpoint if there are other locations in + another program space. + (breakpoint_re_set_default): Adjust to pass down the current + program space as filter program space. + (decode_location_default): Add 'search_pspace' parameter and pass + it along. + (prepare_re_set_context): Don't switch program space here. + (breakpoint_re_set): Use save_current_space_and_thread instead of + save_current_program_space. + * breakpoint.h (struct breakpoint_ops) : Add + 'search_pspace' parameter. + (update_breakpoint_locations): Add 'filter_pspace' parameter. + * cli/cli-cmds.c (edit_command, list_command): Adjust calls to + decode_line_1. + * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current + program space as filter program space. + * linespec.c (struct linespec_state) : New field. + (create_sals_line_offset, convert_explicit_location_to_sals) + (parse_linespec): Pass the search program space down. + (linespec_state_constructor): Add 'search_pspace' parameter. + Store it. + (linespec_parser_new): Add 'search_pspace' parameter and pass it + along. + (linespec_lex_to_end): Adjust. + (decode_line_full, decode_line_1): Add 'search_pspace' parameter + and pass it along. + (decode_line_with_last_displayed): Adjust. + (collect_symtabs_from_filename, symtabs_from_filename): New + 'search_pspace' parameter. Use it. + (find_function_symbols): Pass the search program space down. + * linespec.h (decode_line_1, decode_line_full): Add + 'search_pspace' parameter. + * probe.c (parse_probes_in_pspace): New function, factored out + from ... + (parse_probes): ... this. Add 'search_pspace' parameter and use + it. + * probe.h (parse_probes): Add pspace' parameter. + * python/python.c (gdbpy_decode_line): Adjust. + * tracepoint.c (scope_info): Adjust. + +2016-01-18 Maciej W. Rozycki + + * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS + instruction support. + (micromips_next_pc): Likewise. + (micromips_scan_prologue): Likewise. + (micromips_deal_with_atomic_sequence): Likewise. + (micromips_stack_frame_destroyed_p): Likewise. + (mips_breakpoint_from_pc): Likewise. + +2016-01-18 Maciej W. Rozycki + + * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass + unshifted 16-bit microMIPS instruction word to `mips_insn_size'. + +2016-01-18 Pedro Alves + + * NEWS: Mention that GDB now displays the ID and name of the + thread that hit a breakpoint or received a signal. + * break-catch-sig.c (signal_catchpoint_print_it): Use + maybe_print_thread_hit_breakpoint. + * break-catch-syscall.c (print_it_catch_syscall): Likewise. + * break-catch-throw.c (print_it_exception_catchpoint): Likewise. + * breakpoint.c (maybe_print_thread_hit_breakpoint): New function. + (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib) + (print_it_catch_exec, print_it_ranged_breakpoint) + (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it): + Use maybe_print_thread_hit_breakpoint. + * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare. + * gdbthread.h (show_thread_that_caused_stop): Declare. + * infrun.c (print_signal_received_reason): Print which thread + received signal. + * thread.c (show_thread_that_caused_stop): New function. + +2016-01-18 Gary Benson + + * nat/linux-namespaces.c (do_fork): New function. + (linux_mntns_get_helper): Use the above. + +2016-01-17 Jonas Hahnfeld (tiny change) + + Pushed by Joel Brobecker . + PR gdb/19208 + * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name + if the function has no name. + +2016-01-15 Sandra Loosemore + + * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET): + Conditionalize for Windows host. + (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET. + (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32. + (phony_iconv_open): Handle both UTF-32 endiannesses. + (phony_iconv): Likewise. Check for output overflow and clean up + out-of-input cases. Correct adjustment to input buffer pointer. + (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match + phony_iconv_open. + +2016-01-15 Pedro Alves + + * NEWS: Mention star wildcard ranges. + * cli/cli-utils.c (get_number_or_range): Check state->in_range first. + (number_range_setup_range): New function. + * cli/cli-utils.h (number_range_setup_range): New declaration. + * thread.c (thread_apply_command): Support star TID ranges. + * tid-parse.c (tid_range_parser_finished) + (tid_range_parser_string, tid_range_parser_skip) + (get_tid_or_range, get_tid_or_range): Handle + TID_RANGE_STATE_STAR_RANGE. + (tid_range_parser_star_range): New function. + * tid-parse.h (enum tid_range_state) : + New value. + (tid_range_parser_star_range): New declaration. + +2016-01-15 Pedro Alves + + * thread.c (thread_apply_command): Use the tid range parser to + advance past the thread ID list. + * tid-parse.c (get_positive_number_trailer): New function. + (parse_thread_id): Use it. + (get_tid_or_range): Use it. Return 0 instead of throwing invalid + thread ID error. + (get_tid_or_range): Detect negative values. Return 0 instead of + throwing invalid thread ID error. + +2016-01-14 Yao Qi + + * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc): + Declare. + (arm_linux_get_next_pcs_ops): Install + arm_linux_get_next_pcs_syscall_next_pc. + (arm_linux_syscall_next_pc): Change to ... + (arm_linux_get_next_pcs_syscall_next_pc): ... it. + (arm_linux_init_abi): Don't set tdep->syscall_next_pc. + * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare. + (arm_get_next_pcs_syscall_next_pc): Make it static. Don't + call tdep->syscall_next_pc. + * arm-tdep.h (struct gdbarch_tdep) : Remove. + (arm_get_next_pcs_syscall_next_pc): Remove. + +2016-01-14 Yao Qi + + * remote.c (remote_set_syscall_catchpoint): Cast to char *. + * thread.c (do_captured_thread_select): Cast to const char *. + +2016-01-14 Yao Qi + + * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change + argument arm_thumb2_breakpoint to has_thumb2_breakpoint. + (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint + instead. + * arch/arm-get-next-pcs.h (struct arm_get_next_pcs) + : Remove. + : New field. + (arm_get_next_pcs_ctor): Update declaration. + * arm-linux-tdep.c (arm_linux_software_single_step): Pass + 1 to arm_get_next_pcs_ctor. + * arm-tdep.c (arm_software_single_step): Pass 0 to + arm_get_next_pcs_ctor. + +2016-01-13 Ulrich Weigand + + * MAINTAINERS: Add Andreas Arnez as s390 target maintainer. + +2016-01-13 Yao Qi + + * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use + byte_order_for_code to read instruction. + +2016-01-13 Pedro Alves + + * NEWS: Mention $_gthread. + * gdbthread.h (struct thread_info) : Mention + $_gthread. + * thread.c (thread_num_make_value_helper): New function. + (thread_id_make_value): Delete. + (thread_id_per_inf_num_make_value, global_thread_id_make_value): + New. + (thread_funcs): Adjust. + (gthread_funcs): New. + (_initialize_thread): Register $_gthread variable. + +2016-01-13 Pedro Alves + + * NEWS: Mention "info threads -gid". + * gdbthread.h (struct thread_info) : Mention "info + threads -gid". + * thread.c (info_threads_command): Handle "-gid". + (_initialize_thread): Adjust "info threads" help string to mention + -gid. + +2016-01-13 Pedro Alves + + * NEWS: Mention InferiorThread.global_num. + * python/py-infthread.c (thpy_get_global_num): New function. + (thread_object_getset): Register "global_num". + +2016-01-13 Pedro Alves + + * NEWS: Mention that thread IDs are now per inferior and global + thread IDs. + * Makefile.in (SFILES): Add tid-parse.c. + (COMMON_OBS): Add tid-parse.o. + (HFILES_NO_SRCDIR): Add tid-parse.h. + * ada-tasks.c: Adjust to use ptid_to_global_thread_id. + * breakpoint.c (insert_breakpoint_locations) + (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions) + (print_one_breakpoint_location, set_longjmp_breakpoint) + (check_longjmp_breakpoint_for_call_dummy) + (set_momentary_breakpoint): Adjust to use global IDs. + (find_condition_and_thread, watch_command_1): Use parse_thread_id. + (until_break_command, longjmp_bkpt_dtor) + (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust + to use global IDs. + * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use + ptid_to_global_thread_id. + * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise. + * gdbthread.h (struct thread_info): Rename field 'num' to + 'global_num. Add new fields 'per_inf_num' and 'inf'. + (thread_id_to_pid): Rename thread_id_to_pid to + global_thread_id_to_ptid. + (pid_to_thread_id): Rename to ... + (ptid_to_global_thread_id): ... this. + (valid_thread_id): Rename to ... + (valid_global_thread_id): ... this. + (find_thread_id): Rename to ... + (find_thread_global_id): ... this. + (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare. + (print_thread_info): Add comment. + * tid-parse.h: New file. + * tid-parse.c: New file. + * infcmd.c (step_command_fsm_prepare) + (step_command_fsm_should_stop): Adjust to use the global thread + ID. + (until_next_command, until_next_command) + (finish_command_fsm_should_stop): Adjust to use the global thread + ID. + (attach_post_wait): Adjust to check the inferior number too. + * inferior.h (struct inferior) : New field. + * infrun.c (handle_signal_stop) + (insert_exception_resume_breakpoint) + (insert_exception_resume_from_probe): Adjust to use the global + thread ID. + * record-btrace.c (record_btrace_open): Use global thread IDs. + * remote.c (process_initial_stop_replies): Also consider the + inferior number. + * target.c (target_pre_inferior): Clear the inferior's highest + thread num. + * thread.c (clear_thread_inferior_resources): Adjust to use the + global thread ID. + (new_thread): New inferior parameter. Adjust to use it. Set both + the thread's global ID and the thread's per-inferior ID. + (add_thread_silent): Adjust. + (find_thread_global_id): New. + (find_thread_id): Make static. Adjust to rename. + (valid_thread_id): Rename to ... + (valid_global_thread_id): ... this. + (pid_to_thread_id): Rename to ... + (ptid_to_global_thread_id): ... this. + (thread_id_to_pid): Rename to ... + (global_thread_id_to_ptid): ... this. Adjust. + (first_thread_of_process): Adjust. + (do_captured_list_thread_ids): Adjust to use global thread IDs. + (should_print_thread): New function. + (print_thread_info): Rename to ... + (print_thread_info_1): ... this, and add new show_global_ids + parameter. Handle it. Iterate over inferiors. + (print_thread_info): Reimplement as wrapper around + print_thread_info_1. + (show_inferior_qualified_tids): New function. + (print_thread_id): Use it. + (tp_array_compar): Compare inferior numbers too. + (thread_apply_command): Use tid_range_parser. + (do_captured_thread_select): Use parse_thread_id. + (thread_id_make_value): Adjust. + (_initialize_thread): Adjust "info threads" help string. + * varobj.c (struct varobj_root): Update comment. + (varobj_create): Adjust to use global thread IDs. + (value_of_root_1): Adjust to use global_thread_id_to_ptid. + * windows-tdep.c (display_tib): No longer accept an argument. + * cli/cli-utils.c (get_number_trailer): Make extern. + * cli/cli-utils.h (get_number_trailer): Declare. + (get_number_const): Adjust documentation. + * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global + thread IDs. + * mi/mi-interp.c (mi_new_thread, mi_thread_exit) + (mi_on_normal_stop, mi_output_running_pid, mi_on_resume): + * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise. + * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x): + Likewise. + * python/py-breakpoint.c (bppy_set_thread): Likewise. + * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. + * python/py-infthread.c (thpy_get_num): Add comment and return the + per-inferior thread ID. + (thread_object_getset): Update comment of "num". + +2016-01-13 Pedro Alves + + * breakpoint.c (remove_threaded_breakpoints) + (print_one_breakpoint_location): Use print_thread_id. + * btrace.c (btrace_enable, btrace_disable, btrace_teardown) + (btrace_fetch, btrace_clear): Use print_thread_id. + * common/print-utils.c (CELLSIZE): Delete. + (get_cell): Rename to ... + (get_print_cell): ... this and made extern. Adjust call callers. + Adjust to use PRINT_CELL_SIZE. + * common/print-utils.h (get_print_cell): Declare. + (PRINT_CELL_SIZE): New. + * gdbthread.h (print_thread_id): Declare. + * infcmd.c (signal_command): Use print_thread_id. + * inferior.c (print_inferior): Use print_thread_id. + * infrun.c (handle_signal_stop) + (insert_exception_resume_breakpoint) + (insert_exception_resume_from_probe) + (print_signal_received_reason): Use print_thread_id. + * record-btrace.c (record_btrace_info) + (record_btrace_resume_thread, record_btrace_cancel_resume) + (record_btrace_step_thread, record_btrace_wait): Use + print_thread_id. + * thread.c (thread_apply_all_command): Use print_thread_id. + (print_thread_id): New function. + (thread_apply_command): Use print_thread_id. + (thread_command, thread_find_command, do_captured_thread_select): + Use print_thread_id. + +2016-01-13 Pedro Alves + + * NEWS: Mention InferiorThread.inferior. + * python/py-infthread.c (thpy_get_inferior): New. + (thread_object_getset): Register "inferior". + +2016-01-13 Pedro Alves + + * NEWS: Mention $_inferior. + * inferior.c (inferior_id_make_value): New. + (inferior_funcs): New. + (_initialize_inferior): Create $_inferior variable. + +2016-01-13 Pedro Alves + + PR breakpoints/19388 + * frame.c (get_current_frame): Use validate_registers_access. + * gdbthread.h (validate_registers_access): Declare. + * infrun.c (validate_siginfo_access): Delete. + (siginfo_value_read, siginfo_value_write): Use + validate_registers_access. + * thread.c (validate_registers_access): New function. + +2016-01-12 Josh Stone + Philippe Waroquiers + + * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the + syscall_entry and syscall_return stop reasons. Mention GDB + support for remote catch syscall. + * remote.c (PACKET_QCatchSyscalls): New enum. + (remote_set_syscall_catchpoint): New function. + (remote_protocol_features): New element for QCatchSyscalls. + (remote_parse_stop_reply): Parse syscall_entry/return stops. + (init_remote_ops): Install remote_set_syscall_catchpoint. + (_initialize_remote): Config QCatchSyscalls. + * linux-nat.h (struct lwp_info) : Comment typo. + +2016-01-12 Yao Qi + + * nat/linux-ptrace.c (linux_child_function): Cast child_stack + to gdb_byte * and pass to linux_fork_to_function. + +2016-01-12 Yao Qi + + * nat/linux-ptrace.c (linux_fork_to_function): Change type + of argument 'function'. + (linux_grandchild_function): Change return type to 'int'. + Change child_stack's type to 'void *'. + (linux_child_function): Likewise. + +2016-01-12 Pedro Alves + + Remove use of the registered trademark symbol throughout. + +2016-01-12 Thomas Schwinge + + * reply_mig_hack.awk: Rewrite one regular expression. + +2016-01-11 Mike Frysinger + + * acinclude.m4: Include new warning.m4 file. + * configure: Regenerated. + * configure.ac: Move all warning logic ... + * warning.m4: ... here. + +2016-01-08 Yao Qi + + * extension.c: Include target.h. + (set_active_ext_lang): Only call install_gdb_sigint_handler, + check_quit_flag, and set_quit_flag if target_terminal_is_ours + returns false. + (restore_active_ext_lang): Likewise. + * target.c (target_terminal_is_ours): New function. + * target.h (target_terminal_is_ours): Declare. + +2016-01-07 Maciej W. Rozycki + + * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status' + to `err' in the little-endian leg. + +2016-01-06 Yao Qi + + * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some + lines below. + (thumb_get_next_pcs_raw): Make it static. + (arm_get_next_pcs_raw): Likewise. + * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the + declaration. + (arm_get_next_pcs_raw): Likewise. + +2016-01-05 Mike Frysinger + + * version.in: Change cvs to git. + +2016-01-05 Mike Frysinger + + * configure.tgt (score-*-*): Delete gdb_sim assignment. + +2016-01-05 Pedro Alves + + PR sim/13418 + * configure.ac: Define WITH_PPC_SIM when linking in the sim and + the target is powerpc*. + * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead + of WITH_SIM. + * configure: Regenerate. + * config.in: Regenerate. + +2016-01-04 Markus Metzger + + * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH. + +2016-01-02 Mike Frysinger + + * configure.tgt (powerpc*-*-*): Delete test call and + always assign gdb_sim. + +2016-01-01 Joel Brobecker + + Update year range in copyright notice of all files. + +2016-01-01 Joel Brobecker + + * top.c (print_gdb_version): Change copyright year in version + message. + +2016-01-01 Joel Brobecker + + * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015. + +For older changes see ChangeLog-2015. + +Local Variables: +mode: change-log +left-margin: 8 +fill-column: 74 +version-control: never +coding: utf-8 +End: -- cgit v1.1