diff options
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 4296 |
1 files changed, 4296 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 03f30af..54eadae 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,4299 @@ +2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> + + * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)". + (cd_command): Likewise. Free "current_directory" before + assigning to it. + * main.c (captured_main_1): Use "getcwd (NULL, 0)". + * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise. + * top.c (gdb_dirbuf): Remove global declaration. + * top.h (gdb_dirbuf): Likewise. + +2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> + + * gnulib/aclocal.m4: Regenerate. + * gnulib/config.in: Regenerate. + * gnulib/configure: Regenerate. + * gnulib/import/Makefile.am: Regenerate. + * gnulib/import/Makefile.in: Regenerate. + * gnulib/import/assure.h: New file. + * gnulib/import/at-func.c: Likewise + * gnulib/import/chdir-long.c: New file. + * gnulib/import/chdir-long.h: New file. + * gnulib/import/cloexec.c: New file. + * gnulib/import/cloexec.h: New file. + * gnulib/import/close.c: New file. + * gnulib/import/closedir.c: New file. + * gnulib/import/dirent-private.h: New file. + * gnulib/import/dup-safer.c: New file. + * gnulib/import/dup.c: New file. + * gnulib/import/dup2.c: New file. + * gnulib/import/error.c: New file. + * gnulib/import/error.h: New file. + * gnulib/import/exitfail.c: New file. + * gnulib/import/exitfail.h: New file. + * gnulib/import/fchdir.c: New file. + * gnulib/import/fcntl.c: New file. + * gnulib/import/fcntl.in.h: New file. + * gnulib/import/fd-hook.c: New file. + * gnulib/import/fd-hook.h: New file. + * gnulib/import/fd-safer.c: New file. + * gnulib/import/fdopendir.c: New file. + * gnulib/import/filename.h: New file. + * gnulib/import/filenamecat-lgpl.c: New file. + * gnulib/import/filenamecat.h: New file. + * gnulib/import/fstat.c: New file. + * gnulib/import/fstatat.c: New file. + * gnulib/import/getcwd-lgpl.c: New file. + * gnulib/import/getcwd.c: New file. + * gnulib/import/getdtablesize.c: New file. + * gnulib/import/getlogin_r.c: New file. + * gnulib/import/getprogname.c: New file. + * gnulib/import/getprogname.h: New file. + * gnulib/import/gettext.h: New file. + * gnulib/import/glob-libc.h: New file. + * gnulib/import/glob.c: New file. + * gnulib/import/glob.in.h: New file. + * gnulib/import/intprops.h: New file. + * gnulib/import/m4/chdir-long.m4: New file. + * gnulib/import/m4/close.m4: New file. + * gnulib/import/m4/closedir.m4: New file. + * gnulib/import/m4/d-ino.m4: New file. + * gnulib/import/m4/d-type.m4: New file. + * gnulib/import/m4/dup.m4: New file. + * gnulib/import/m4/dup2.m4: New file. + * gnulib/import/m4/error.m4: New file. + * gnulib/import/m4/fchdir.m4: New file. + * gnulib/import/m4/fcntl.m4: New file. + * gnulib/import/m4/fcntl_h.m4: New file. + * gnulib/import/m4/fdopendir.m4: New file. + * gnulib/import/m4/filenamecat.m4: New file. + * gnulib/import/m4/fstat.m4: New file. + * gnulib/import/m4/fstatat.m4: New file. + * gnulib/import/m4/getcwd-abort-bug.m4: New file. + * gnulib/import/m4/getcwd-path-max.m4: New file. + * gnulib/import/m4/getcwd.m4: New file. + * gnulib/import/m4/getdtablesize.m4: New file. + * gnulib/import/m4/getlogin_r.m4: New file. + * gnulib/import/m4/getprogname.m4: New file. + * gnulib/import/m4/glob.m4: New file. + * gnulib/import/m4/gnulib-cache.m4: Regenerate. + * gnulib/import/m4/gnulib-comp.m4: Regenerate. + * gnulib/import/m4/mempcpy.m4: New file. + * gnulib/import/m4/memrchr.m4: New file. + * gnulib/import/m4/mode_t.m4: New file. + * gnulib/import/m4/msvc-inval.m4: New file. + * gnulib/import/m4/msvc-nothrow.m4: New file. + * gnulib/import/m4/open.m4: New file. + * gnulib/import/m4/openat.m4: New file. + * gnulib/import/m4/opendir.m4: New file. + * gnulib/import/m4/readdir.m4: New file. + * gnulib/import/m4/realloc.m4: New file. + * gnulib/import/m4/rewinddir.m4: New file. + * gnulib/import/m4/save-cwd.m4: New file. + * gnulib/import/m4/strdup.m4: New file. + * gnulib/import/m4/strerror.m4: New file. + * gnulib/import/m4/unistd-safer.m4: New file. + * gnulib/import/mempcpy.c: New file. + * gnulib/import/memrchr.c: New file. + * gnulib/import/msvc-inval.c: New file. + * gnulib/import/msvc-inval.h: New file. + * gnulib/import/msvc-nothrow.c: New file. + * gnulib/import/msvc-nothrow.h: New file. + * gnulib/import/open.c: New file. + * gnulib/import/openat-die.c: New file. + * gnulib/import/openat-priv.h: New file. + * gnulib/import/openat-proc.c: New file. + * gnulib/import/openat.c: New file. + * gnulib/import/openat.h: New file. + * gnulib/import/opendir.c: New file. + * gnulib/import/pipe-safer.c: New file. + * gnulib/import/readdir.c: New file. + * gnulib/import/realloc.c: New file. + * gnulib/import/rewinddir.c: New file. + * gnulib/import/save-cwd.c: New file. + * gnulib/import/save-cwd.h: New file. + * gnulib/import/strdup.c: New file. + * gnulib/import/strerror-override.c: New file. + * gnulib/import/strerror-override.h: New file. + * gnulib/import/strerror.c: New file. + * gnulib/import/unistd--.h: New file. + * gnulib/import/unistd-safer.h: New file. + * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add + "getcwd" and "glob". + * ser-tcp.c: Undefine "close" before redefining it. + +2017-09-21 Simon Marchi <simon.marchi@ericsson.com> + + * guile/scm-value.c (gdbscm_value_address): Initialize address, + get rid of res_val. + +2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES. + <sol2,sparc>: Likewise. + <sol2-64,i386>: Likewise. + + * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas, + -Wdeprecated-declarations on *-*-solaris*. + * configure: Regenerate. + + * procfs.c: Include "nat/inferior.h". + (procfs_info_proc): Fix typo. + +2017-09-21 Kevin Buettner <kevinb@redhat.com> + + * remote.c (vector): Include. + (struct private_thread_info): Add field, thread_handle. + (free_private_thread_info): Deallocate storage associated with + thread handle. + (get_private_info_thread): Initialize `thread_handle' field. + (struct thread_item): Add field, thread_handle. + (clear_threads_listing_context): Deallocate storage associated + with thread handle. + (start_thread): Add support for "handle" attribute. + (thread_attributes): Add "handle". + (remote_get_threads_with_qthreadinfo): Initialize thread_handle + field. + (remote_update_thread_list): Update thread_handle. + (remote_thread_handle_to_thread_info): New function. + (init_remote_ops): Initialize to_thread_handle_to_thread_info. + +2017-09-21 Kevin Buettner <kevinb@redhat.com> + + * python/py-inferior.c (gdbpy_thread_from_thread_handle): New + function. + (inferior_object_methods): Add gdbpy_thread_from_thread_handle. + * python/python-internal.h (thread_object_type): Declare. + +2017-09-21 Kevin Buettner <kevinb@redhat.com> + + * target.h (struct target_ops): Add to_thread_handle_to_thread_info. + (target_thread_handle_to_thread_info): Declare. + * target.c (target_thread_handle_to_thread_info): New function. + * target-delegates.c: Regenerate. + * gdbthread.h (find_thread_by_handle): Declare. + * thread.c (find_thread_by_handle): New function. + * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New + function. + (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info. + +2017-09-21 Simon Marchi <simon.marchi@ericsson.com> + + * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF. + +2017-09-21 Simon Marchi <simon.marchi@ericsson.com> + + * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF. + +2017-09-21 Yao Qi <yao.qi@linaro.org> + + * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o + to gdb_target_obs. + +2017-09-20 Tom Tromey <tom@tromey.com> + + * breakpoint.c (struct counted_command_line): Remove. + (breakpoint_commands): Update. + (alloc_counted_command_line, incref_counted_command_line) + (decref_counted_command_line, do_cleanup_counted_command_line) + (make_cleanup_decref_counted_command_line): Remove. + (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats) + (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check) + (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint) + (save_breakpoints): Update. + * breakpoint.h (counted_command_line): Now a typedef to + shared_ptr. + (struct breakpoint) <commands>: Now a counted_command_line. + (struct bpstats) <command>: Likewise. + +2017-09-20 Tom Tromey <tom@tromey.com> + + * breakpoint.c (struct commands_info, do_map_commands_command): + Remove. + (commands_command_1): Update. + (iterate_over_related_breakpoints): Take a function_view. + (do_delete_breakpoint, do_map_delete_breakpoint): Remove. + (delete_command): Update. + (map_breakpoint_numbers): Take a function_view. + (do_disable_breakpoint, do_map_delete_breakpoint): Remove. + (disable_command): Update. + (do_enable_breakpoint, do_map_enable_breakpoint): Remove. + (enable_command): Update. + (struct disp_data, do_enable_breakpoint_disp) + (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint) + (do_map_enable_delete_breakpoint): Remove. + (enable_once_command, enable_count_command, enable_delete_command) + (delete_trace_variable_command): Update. + +2017-09-20 Tom Tromey <tom@tromey.com> + + * breakpoint.c (~bpstats): Rename from bpstat_free. Update. + (bpstat_clear): Use delete. + (bpstats): New constructors. + (bpstat_copy, bpstat_stop_status): Use new. + (dprintf_after_condition_true): Update. + * breakpoint.h (bpstats::bpstats): Add constructors. + (bpstats::~bpstats): Add destructor. + +2017-09-20 Pedro Alves <palves@redhat.com> + + * eval.c (make_params): Delete, refactored as ... + (class fake_method): ... this new type's ctor. + (fake_method::~fake_method): New. + (evaluate_subexp_standard): Use 'fake_method'. + +2017-09-20 Tom Tromey <tom@tromey.com> + + * windows-nat.c (get_windows_debug_event, windows_wait) + (do_initial_windows_stuff, windows_attach): Update. + * utils.c (vwarning, internal_vproblem): Update. + (ui_unregister_input_event_handler_cleanup) + (prepare_to_handle_input): Remove. + (class scoped_input_handler): New. + (defaulted_query, prompt_for_continue): Update. + * tui/tui-hooks.c (tui_refresh_frame_and_register_information): + Update. + * top.c (undo_terminal_modifications_before_exit): Update. + * target/target.h (target_terminal_init, target_terminal_inferior) + (target_terminal_ours): Don't declare. + (class target_terminal): New. + * target.h (target_terminal_is_inferior, target_terminal_is_ours) + (target_terminal_ours_for_output) + (make_cleanup_restore_target_terminal): Don't declare. + (target_terminal_info): Remove. + * target.c (enum terminal_state, terminal_state): Remove. + (target_terminal::terminal_state): Define. + (target_terminal::init): Rename from target_terminal_init. + (target_terminal::inferior): Rename from + target_terminal_inferior. + (target_terminal::ours): Rename from target_terminal_ours. + (target_terminal::ours_for_output): Rename from + target_terminal_ours_for_output. + (target_terminal::info): New method. + (cleanup_restore_target_terminal) + (make_cleanup_restore_target_terminal): Remove. + * solib.c (handle_solib_event): Update. + * remote.c (remote_serial_quit_handler): Update. + (remote_terminal_inferior, remote_wait_as): Update. + * record-full.c (record_full_wait_1): Update. + * nto-procfs.c (procfs_create_inferior): Update. + * nat/fork-inferior.c (startup_inferior): Update. + * 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_traceframe_changed) + (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified) + (mi_breakpoint_created, mi_breakpoint_deleted) + (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded) + (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) + (mi_user_selected_context_changed, report_initial_inferior): + Update. + * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours) + (linux_nat_terminal_inferior): Update. + * infrun.c (follow_fork_inferior) + (handle_vfork_child_exec_or_exit, do_target_resume) + (check_curr_ui_sync_execution_done, handle_inferior_event_1) + (handle_signal_stop, maybe_remove_breakpoints, normal_stop): + Update. + * inflow.c (child_terminal_init, info_terminal_command): Update. + * infcmd.c (post_create_inferior, continue_1, prepare_one_step) + (attach_command): Update. + * infcall.c (call_thread_fsm_should_stop): Update. + * gnu-nat.c (gnu_attach): Update. + * extension.c (struct active_ext_lang_state) + (restore_active_ext_lang): Update. + * exceptions.c (print_flush): Update. + * event-top.c (async_enable_stdin, default_quit_handler): Update. + (struct quit_handler_cleanup_data, restore_quit_handler) + (restore_quit_handler_dtor, make_cleanup_override_quit_handler): + Remove. + * cp-support.c (gdb_demangle): Update. + * breakpoint.c (update_inserted_breakpoint_locations) + (insert_breakpoint_locations, handle_jit_event) + (disable_breakpoints_in_unloaded_shlib): Update. + * annotate.c (annotate_breakpoints_invalid) + (annotate_frames_invalid): Update. + +2017-09-20 Tom Tromey <tom@tromey.com> + + * main.c (catch_command_errors): Rename from + catch_command_errors_const. + (captured_main_1): Update. + +2017-09-20 Pedro Alves <palves@redhat.com> + + * cli/cli-cmds.c (list_command): Use print_sal_location. + (print_sal_location): New function. + (ambiguous_line_spec): Use print_sal_location. + * linespec.c (symbol_to_sal): Record the symbol in the sal. + * symtab.c (find_function_start_sal): Likewise. + * symtab.h (symtab_and_line::symbol): New field. + +2017-09-20 Pedro Alves <palves@redhat.com> + + * linespec.c (minsym_found): Handle non-text minsyms. + (symbol_to_sal): Record a sal.pc for non-block, non-label symbols. + +2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> + + * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing + backslash. + +2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> + + * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use + vmovups instead vmovaps. + (move_zmm_data_to_memory): Use vmovups instead vmovaps. + +2017-09-19 John Baldwin <jhb@FreeBSD.org> + + * NEWS (Changes since GDB 8.0): Add starti. + * infcmd.c (enum run_break): New. + (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN + case. + (run_command): Use enum run_how. + (start_command): Likewise. + (starti_command): New function. + (RUN_ARGS_HELP): New macro. + (_initialize_infcmd): Use RUN_ARGS_HELP for run and start + commands. Add starti command. + +2017-09-19 Yao Qi <yao.qi@linaro.org> + + * Makefile.in (monitor.o): Remove the rule. + +2017-09-19 Yao Qi <yao.qi@linaro.org> + + * annotate.h (struct annotate_arg_emitter): Use + DISABLE_COPY_AND_ASSIGN. + * common/refcounted-object.h (refcounted_object): Likewise. + * completer.h (struct completion_result): Likewise. + * dwarf2read.c (struct dwarf2_per_objfile): Likewise. + * filename-seen-cache.h (filename_seen_cache): Likewise. + * gdbcore.h (thread_section_name): Likewise. + * gdb_regex.h (compiled_regex): Likewise. + * gdbthread.h (scoped_restore_current_thread): Likewise. + * inferior.h (scoped_restore_current_inferior): Likewise. + * jit.c (jit_reader): Likewise. + * linespec.h (struct linespec_result): Likewise. + * mi/mi-parse.h (struct mi_parse): Likewise. + * nat/fork-inferior.c (execv_argv): Likewise. + * progspace.h (scoped_restore_current_program_space): Likewise. + * python/python-internal.h (class gdbpy_enter): Likewise. + * regcache.h (regcache): Likewise. + * target-descriptions.c (struct tdesc_reg): Likewise. + (struct tdesc_type): Likewise. + (struct tdesc_feature): Likewise. + * ui-out.h (ui_out_emit_type): Likewise. + +2017-09-18 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove + label abort_expression. + +2017-09-16 Simon Marchi <simon.marchi@ericsson.com> + + * common/buffer.c (buffer_xml_printf): Adjust. + * common/xml-utils.c (xml_escape_text): Change return type to + std::string, update code accordingly. + * common/xml-utils.h (xml_escape_text): Change return type to + std::string. + * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust. + * windows-tdep.c (windows_xfer_shared_library): Adjust. + * unittests/xml-utils-selftests.c (test_xml_escape_text): + Adjust. + +2017-09-16 Simon Marchi <simon.marchi@ericsson.com> + + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file. + (SUBDIR_UNITTESTS_OBS): Add new object file. + * unittests/xml-utils-selftests.c: New file. + +2017-09-16 Simon Marchi <simon.marchi@ericsson.com> + + * common/selftest.h (selftest): New struct/interface. + (register_test): Add name parameter, add new overload. + (run_tests): Add filter parameter. + (for_each_selftest_ftype): New typedef. + (for_each_selftest): New declaration. + * common/selftest.c (tests): Change type to + map<string, unique_ptr<selftest>>. + (simple_selftest): New struct. + (register_test): New function. + (register_test): Add name parameter and use it. + (run_tests): Add filter parameter and use it. Add prints. + Adjust to vector -> map change. + * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when + registering selftests. + * arm-tdep.c (_initialize_arm_tdep): Likewise. + * disasm-selftests.c (_initialize_disasm_selftests): Likewise. + * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise. + * dwarf2loc.c (_initialize_dwarf2loc): Likewise. + * findvar.c (_initialize_findvar): Likewise. + * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise. + * maint.c (maintenance_selftest): Update call to run_tests. + (maintenance_info_selftests): New function. + (_initialize_maint_cmds): Register "maintenance info selftests" + command. Update "maintenance selftest" doc. + * regcache.c (_initialize_regcache): Add names when registering + selftests. + * rust-exp.y (_initialize_rust_exp): Likewise. + * selftest-arch.c (gdbarch_selftest): New struct. + (gdbarch_tests): Remove. + (register_test_foreach_arch): Add name parameter. Call + register_test. + (tests_with_arch): Remove, move most content to + gdbarch_selftest::operator(). + (_initialize_selftests_foreach_arch): Remove. + * selftest-arch.h (register_test_foreach_arch): Add name + parameter. + (run_tests_with_arch): New declaration. + * utils-selftests.c (_initialize_utils_selftests): Add names + when registering selftests. + * utils.c (_initialize_utils): Likewise. + * unittests/array-view-selftests.c + (_initialize_array_view_selftests): Likewise. + * unittests/environ-selftests.c (_initialize_environ_selftests): + Likewise. + * unittests/function-view-selftests.c + (_initialize_function_view_selftests): Likewise. + * unittests/offset-type-selftests.c + (_initialize_offset_type_selftests): Likewise. + * unittests/optional-selftests.c + (_initialize_optional_selftests): Likewise. + * unittests/scoped_restore-selftests.c + (_initialize_scoped_restore_selftests): Likewise. + * NEWS: Document "maintenance selftest" and "maint info + selftests". + +2017-09-16 Simon Marchi <simon.marchi@ericsson.com> + + * mi/mi-main.c (mi_load_progress): Restore current_uiout using a + scoped_restore. + +2017-09-16 Simon Marchi <simon.marchi@ericsson.com> + + * mi/mi-main.c (mi_load_progress): Make uiout variable + a unique_ptr. + +2017-09-15 Pedro Alves <palves@redhat.com> + + * compile/compile-c-types.c (convert_enum, convert_int) + (convert_float): Adjust to refer to int_type_v0 and float_type_v0. + +2017-09-15 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2read.c (copy_string): Remove. + (parse_macro_definition): Replace copy_string with savestring. + +2017-09-15 Yao Qi <yao.qi@linaro.org> + + * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to + gdb_target_obs. + (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*): + Likewise. + (i[34567]86-*-linux*): Likewise. + +2017-09-14 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2expr.h (dwarf_stack_value): Add constructor. + (dwarf_expr_context) <~dwarf_expr_context>: Define as default. + <stack>: Change type to std::vector. + <stack_len, stack_allocated>: Remove. + <grow_stack>: Remove. + * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. + (dwarf_expr_context::~dwarf_expr_context): Remove. + (dwarf_expr_context::grow_stack): Remove. + (dwarf_expr_context::push): Adjust. + (dwarf_expr_context::pop): Adjust. + (dwarf_expr_context::fetch): Adjust. + (dwarf_expr_context::fetch_in_stack_memory): Adjust. + (dwarf_expr_context::stack_empty_p): Adjust. + (dwarf_expr_context::execute_stack_op): Adjust. + +2017-09-14 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change + return type to bool. + * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise. + +2017-09-14 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>: + Change type to bool. + (dwarf_stack_value) <in_stack_memory>: Likewise. + (dwarf_expr_context) <push_address>: Change parameter type to + bool. + <fetch_in_stack_memory>: Change return type to bool. + <push>: Change parameter type to bool. + * dwarf2expr.c (dwarf_expr_context::push): Change parameter type + to bool. + (dwarf_expr_context::push_address): Likewise. + (dwarf_expr_context::fetch_in_stack_memory): Change return type + to bool. + (dwarf_expr_context::execute_stack_op): Adjust. + * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust. + +2017-09-14 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2expr.h (struct dwarf_expr_piece): Move up. + (struct dwarf_expr_context) <n_pieces>: Remove. + <pieces>: Change type to std::vector. + * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. + (dwarf_expr_context::~dwarf_expr_context): Don't manually free + pieces. + (dwarf_expr_context::add_piece): Adjust. + * dwarf2loc.c (struct piece_closure): Initialize fields. + <n_pieces>: Remove. + <pieces>: Change type to std::vector. + (allocate_piece_closure): Adjust, change parameter to + std::vector rvalue and std::move it to piece_closure. + (rw_pieced_value): Adjust. + (check_pieced_synthetic_pointer): Adjust. + (indirect_synthetic_pointer): Adjust. + (coerce_pieced_ref): Adjust. + (free_pieced_value_closure): Adjust. Use delete to free + piece_closure. + (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces + to allocate_piece_closure. + (dwarf2_loc_desc_get_symbol_read_needs): Adjust. + +2017-09-12 Simon Marchi <simon.marchi@ericsson.com> + + * probe.h (probe_ops_cp): Remove typedef. + (DEF_VEC_P (probe_ops_cp)): Remove. + (all_probe_ops): Change type to std::vector. + * probe.c (info_probes_for_ops): Adjust to vector change. + (probe_linespec_to_ops): Likewise. + (all_probe_ops): Change type to std::vector. + (_initialize_probe): Adjust to vector change. + * dtrace-probe.c (_initialize_dtrace_probe): Likewise. + * elfread.c (elf_get_probes): Likewise. + * stap-probe.c (_initialize_stap_probe): Likewise. + +2017-09-12 Simon Marchi <simon.marchi@ericsson.com> + + * probe.h (struct bound_probe): Define constructors. + * probe.c (bound_probe_s): Remove typedef. + (DEF_VEC_O (bound_probe_s)): Remove VEC. + (collect_probes): Change return type to std::vector, remove + cleanup. + (compare_probes): Return bool, change parameter type. Change + semantic to "less than". + (gen_ui_out_table_header_info): Change parameter to std::vector + and update. + (exists_probe_with_pops): Likewise. + (info_probes_for_ops): Update to std::vector change. + (enable_probes_command): Likewise. + (disable_probes_command): Likewise. + +2017-09-12 Simon Marchi <simon.marchi@ericsson.com> + + * probe.h (struct probe_ops) <get_probes>: Change parameter from + vec to std::vector. + * probe.c (parse_probes_in_pspace): Update. + (find_probes_in_objfile): Update. + (find_probe_by_pc): Update. + (collect_probes): Update. + (probe_any_get_probes): Update. + * symfile.h (struct sym_probe_fns) <sym_get_probes> Change + return type to reference to std::vector. + * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to + std::vector and update. + (dtrace_process_dof): Likewise. + (dtrace_get_probes): Likewise. + * elfread.c (elf_get_probes): Change return type to std::vector, + store an std::vector in bfd_data. + (probe_key_free): Update to std::vector. + * stap-probe.c (handle_stap_probe): Change parameter to + std::vector and update. + (stap_get_probes): Likewise. + * symfile-debug.c (debug_sym_get_probes): Change return type to + std::vector and update. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * breakpoint.c (program_breakpoint_here_p): Update. + * target.c (make_scoped_restore_show_memory_breakpoints): Rename + from make_show_memory_breakpoints_cleanup. Return a + scoped_restore_tmpl<int>. + (restore_show_memory_breakpoints): Remove. + * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update. + * mem-break.c (memory_validate_breakpoint): Update. + * ia64-tdep.c (ia64_memory_insert_breakpoint): Update. + (ia64_memory_remove_breakpoint): Update. + (ia64_breakpoint_from_pc): Update. + * target.h (make_scoped_restore_show_memory_breakpoints): Rename + from make_show_memory_breakpoints_cleanup. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * d-namespace.c (d_lookup_symbol): Use std::string. + (find_symbol_in_baseclass): Likewise. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * ctf.c (ctf_start): Use std::string. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * ada-lang.c (is_known_support_routine): Update. + (ada_unhandled_exception_name_addr_from_raise): Update. + * guile/scm-frame.c (gdbscm_frame_name): Update. + * python/py-frame.c (frapy_name): Update. + (frapy_function): Update. + * stack.h (find_frame_funname): Update. + * stack.c (find_frame_funname): Return unique_xmalloc_ptr. + (print_frame): Update. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * findcmd.c (put_bits): Take a gdb::byte_vector. + (parse_find_args): Return gdb::byte_vector. "args" now const. + Remove "pattern_bufp" and "pattern_lenp" parameters. Remove + cleanups. + (find_command): Update. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * cli/cli-script.c (class scoped_restore_hook_in): New. + (clear_hook_in_cleanup): Remove. + (execute_cmd_pre_hook, execute_cmd_post_hook): Use + scoped_restore_hook_in. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * cli/cli-script.c (restore_interp): Remove. + (read_command_lines): Use scoped_restore_interp. + * interps.c (scoped_restore_interp::set_temp): Rename from + interp_set_temp. + * interps.h (class scoped_restore_interp): New. + (interp_set_temp): Remove. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * mi/mi-cmd-catch.c (mi_cmd_catch_assert) + (mi_cmd_catch_exception, mi_catch_load_unload): Update. + * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a + scoped_restore. + (mi_cmd_break_insert_1): Update. + * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a + scoped_restore. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * demangle.c (demangle_command): Update. + * breakpoint.c (disable_command): Update. + (enable_command): Update. + (find_location_by_number): Make "number" const. Use + get_number_trailer. + * cli/cli-utils.c (extract_arg): Return std::string. + * probe.c (parse_probe_linespec): Update. Change types. + (collect_probes): Take string arguments. + (parse_probe_linespec): Likewise. + (info_probes_for_ops): Update. + (enable_probes_command): Update. + (disable_probes_command): Update. + * break-catch-sig.c (catch_signal_split_args): Update. + * mi/mi-parse.c (mi_parse): Update. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * language.h (language_enum): Make argument const. + * language.c (language_enum): Make argument const. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * common/common-utils.h (skip_to_space): Remove macro, redeclare + as function. + (skip_to_space): Rename from skip_to_space_const. + * common/common-utils.c (skip_to_space): New function. + (skip_to_space): Rename from skip_to_space_const. + * cli/cli-utils.h (get_number): Rename from get_number_const. + (extract_arg): Rename from extract_arg_const. + * cli/cli-utils.c (get_number): Rename from get_number_const. + (extract_arg): Rename from extract_arg_const. + (number_or_range_parser::get_number): Use ::get_number. + * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c, + break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c, + cli/cli-script.c, cli/cli-setshow.c, compile/compile.c, + completer.c, demangle.c, disasm.c, findcmd.c, linespec.c, + linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c, + minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c, + python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c, + stap-probe.c, tid-parse.c, tracepoint.c: Update all callers. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * python/python.c (do_start_initialization): Use + py-event-types.def to initialize types. + Define all object type structures. + * python/python-internal.h: Don't declare event initialization + functions. + * python/py-threadevent.c (thread_event_object_type): Don't + define. + * python/py-stopevent.c (stop_event_object_type): Don't define. + * python/py-signalevent.c (signal_event_object_type): Don't + declare or define. + * python/py-newobjfileevent.c (new_objfile_event_object_type) + (clear_objfiles_event_object_type): Don't declare or define. + * python/py-infevents.c (inferior_call_pre_event_object_type) + (inferior_call_post_event_object_type) + (register_changed_event_object_type) + (memory_changed_event_object_type): Don't declare or define. + * python/py-inferior.c (new_thread_event_object_type) + (new_inferior_event_object_type) + (inferior_deleted_event_object_type): Don't declare or define. + * python/py-exitedevent.c (exited_event_object_type): Don't + declare or define. + * python/py-evts.c (gdbpy_initialize_py_events): Use + py-all-events.def. + * python/py-events.h (thread_event_object_type): Don't declare. + (events_object): Use py-all-events.def. + * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use + py-event-types.def. + * python/py-event-types.def: New file. + * python/py-continueevent.c (create_continue_event_object): Don't + declare or define. + * python/py-bpevent.c (breakpoint_event_object_type): Don't + declare or define. + * python/py-all-events.def: New file. + +2017-09-11 Tom Tromey <tom@tromey.com> + + * python/py-threadevent.c (create_thread_event_object): Return + gdbpy_ref. + * python/py-stopevent.h (create_stop_event_object) + (create_breakpoint_event_object, create_signal_event_object): + Update. + * python/py-stopevent.c (create_stop_event_object): Return + gdbpy_ref. + (emit_stop_event): Update. + * python/py-signalevent.c (create_signal_event_object): Return + gdbpy_ref. + * python/py-infevents.c (create_inferior_call_event_object): + Update. + * python/py-event.h (create_event_object) + (create_thread_event_object): Update. + * python/py-event.c (create_event_object): Return gdbpy_ref. + * python/py-continueevent.c: Return gdbpy_ref. + * python/py-bpevent.c (create_breakpoint_event_object): Return + gdbpy_ref. + +2017-09-11 Tom Tromey <tom@tromey.com> + + PR python/15622: + * NEWS: Add entry. + * python/python.c (do_start_initialization): Initialize new event + types. + * python/python-internal.h (gdbpy_initialize_new_inferior_event) + (gdbpy_initialize_inferior_deleted_event) + (gdbpy_initialize_new_thread_event): Declare. + * python/py-threadevent.c (create_thread_event_object): Add option + "thread" parameter. + * python/py-inferior.c (new_thread_event_object_type) + (new_inferior_event_object_type) + (inferior_deleted_event_object_type): Declare. + (python_new_inferior, python_inferior_deleted): New functions. + (add_thread_object): Emit new_thread event. + (gdbpy_initialize_inferior): Attach new functions to corresponding + observers. + (new_thread, new_inferior, inferior_deleted): Define new event + types. + * python/py-evts.c (gdbpy_initialize_py_events): Add new + registries. + * python/py-events.h (events_object) <new_inferior, + inferior_deleted, new_thread>: New fields. + * python/py-event.h (create_thread_event_breakpoint): Add optional + "thread" parameter. + +2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com> + + * utils.c (abort_with_message): Don't compare gdb_stderr to NULL, + check current_ui instead. + (internal_vproblem): Likewise. + +2017-09-09 Simon Marchi <simon.marchi@ericsson.com> + + * thread.c (print_thread_info_1): Remove unnecessary calls to + uiout->is_mi_like_p. + +2017-09-09 Tom Tromey <tom@tromey.com> + + * namespace.h (add_using_directive): Update. + * namespace.c (add_using_directive): Change type of excludes to + std::vector. + * dwarf2read.c (read_import_statement): Use std::vector. + (read_namespace): Update. + * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. + +2017-09-09 Tom Tromey <tom@tromey.com> + + * linespec.c (create_sals_line_offset): Use gdb::def_vector. + +2017-09-09 Tom Tromey <tom@tromey.com> + + * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector. + +2017-09-09 Tom Tromey <tom@tromey.com> + + * stack.c (func_command): Use gdb::def_vector. + +2017-09-09 Tom Tromey <tom@tromey.com> + + * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional, + ui_out_emit_list, ui_out_emit_tuple. + (mi_cmd_var_update): Likewise. + +2017-09-09 Tom Tromey <tom@tromey.com> + + * mi/mi-interp.c (mi_user_selected_context_changed): Use + ui_out_redirect_pop. + * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use + ui_out_redirect_pop. + * utils.c (do_ui_out_redirect_pop) + (make_cleanup_ui_out_redirect_pop): Remove. + * top.c (execute_command_to_string): Use ui_out_redirect_pop. + * utils.h (make_cleanup_ui_out_redirect_pop): Remove. + * ui-out.h (ui_out_redirect_pop): New class. + +2017-09-09 Tom Tromey <tom@tromey.com> + + * mi/mi-main.c (output_cores): Use ui_out_emit_list. + (list_available_thread_groups, mi_cmd_list_thread_groups) + (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory) + (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected): + Likewise. + +2017-09-09 Tom Tromey <tom@tromey.com> + + * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use + ui_out_emit_tuple. + +2017-09-09 Tom Tromey <tom@tromey.com> + + * target.c (flash_erase_command): Use ui_out_emit_tuple. + * stack.c (print_frame): Use ui_out_emit_tuple. + * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple. + (info_spu_mailbox_command, info_spu_dma_command) + (info_spu_proxydma_command): Likewise. + * mi/mi-main.c (mi_cmd_trace_frame_collected): Use + ui_out_emit_tuple, gdb::byte_vector, bin2hex. + * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use + ui_out_emit_tuple. + * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple. + +2017-09-09 Tom Tromey <tom@tromey.com> + + * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove. + (class ui_out_emit_table): Update comment. + * ui-out.c (do_cleanup_table_end) + (make_cleanup_ui_out_table_begin_end): Remove. + * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table. + (info_spu_dma_cmdlist): Likewise. + * probe.c (info_probes_for_ops): Use ui_out_emit_table. + * darwin-nat-info.c (darwin_debug_regions_recurse): Use + ui_out_emit_table. + +2017-09-09 Tom Tromey <tom@tromey.com> + + * thread.c (print_thread_info_1): Use ui_out_emit_table, + ui_out_emit_list, gdb::optional. + +2017-09-09 John Baldwin <jhb@FreeBSD.org> + + * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat + prototype. + * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep + prototype. + * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep + prototype. + * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype. + * ada-exp.y: Remove _initialize_ada_exp prototype. + * ada-lang.c: Remove _initialize_ada_language prototype. + * ada-tasks.c: Remove _initialize_tasks prototype. + * addrmap.c: Remove _initialize_addrmap prototype. + * agent.c: Remove _initialize_agent prototype. + * aix-thread.c: Remove _initialize_aix_thread prototype. + * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype. + * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype. + * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep + prototype. + * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype. + * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype. + * alpha-tdep.c: Remove _initialize_alpha_tdep prototype. + * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep + prototype. + * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep + prototype. + * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype. + * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype. + * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype. + * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep + prototype. + * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype. + * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype. + * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype. + * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype. + * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. + * amd64-tdep.c: Remove _initialize_amd64_tdep prototype. + * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat + prototype. + * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep + prototype. + * annotate.c: Remove _initialize_annotate prototype. + * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype. + * arc-tdep.c: Remove _initialize_arc_tdep prototype. + * arch-utils.c: Remove _initialize_gdbarch_utils prototype. + * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype. + * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype. + * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype. + * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype. + * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep + prototype. + * arm-tdep.c: Remove _initialize_arm_tdep prototype. + * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype. + * auto-load.c: Remove _initialize_auto_load prototype. + * auxv.c: Remove _initialize_auxv prototype. + * avr-tdep.c: Remove _initialize_avr_tdep prototype. + * ax-gdb.c: Remove _initialize_ax_gdb prototype. + * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype. + * bfin-tdep.c: Remove _initialize_bfin_tdep prototype. + * break-catch-sig.c: Remove _initialize_break_catch_sig prototype. + * break-catch-syscall.c: Remove _initialize_break_catch_syscall + prototype. + * break-catch-throw.c: Remove _initialize_break_catch_throw + prototype. + * breakpoint.c: Remove _initialize_breakpoint prototype. + * bsd-uthread.c: Remove _initialize_bsd_uthread prototype. + * btrace.c: Remove _initialize_btrace prototype. + * charset.c: Remove _initialize_charset prototype. + * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype. + * cli/cli-dump.c: Remove _initialize_cli_dump prototype. + * cli/cli-interp.c: Remove _initialize_cli_interp prototype. + * cli/cli-logging.c: Remove _initialize_cli_logging prototype. + * cli/cli-script.c: Remove _initialize_cli_script prototype. + * coff-pe-read.c: Remove _initialize_coff_pe_read prototype. + * coffread.c: Remove _initialize_coffread prototype. + * compile/compile.c: Remove _initialize_compile prototype. + * complaints.c: Remove _initialize_complaints prototype. + * completer.c: Remove _initialize_completer prototype. + * copying.awk: Remove _initialize_copying prototype. + * copying.c: Regenerate. + * core-regset.c: Remove _initialize_core_regset prototype. + * corefile.c: Remove _initialize_core prototype. + * corelow.c: Remove _initialize_corelow prototype. + * cp-abi.c: Remove _initialize_cp_abi prototype. + * cp-namespace.c: Remove _initialize_cp_namespace prototype. + * cp-support.c: Remove _initialize_cp_support prototype. + * cp-valprint.c: Remove _initialize_cp_valprint prototype. + * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype. + * cris-tdep.c: Remove _initialize_cris_tdep prototype. + * ctf.c: Remove _initialize_ctf prototype. + * d-lang.c: Remove _initialize_d_language prototype. + * darwin-nat-info.c: Remove _initialize_darwin_info_commands + prototype. + * darwin-nat.c: Remove _initialize_darwin_inferior prototype. + * dbxread.c: Remove _initialize_dbxread prototype. + * dcache.c: Remove _initialize_dcache prototype. + * demangle.c: Remove _initialize_demangler prototype. + * disasm-selftests.c: Remove _initialize_disasm_selftests + prototype. + * disasm.c: Remove _initialize_disasm prototype. + * dtrace-probe.c: Remove _initialize_dtrace_probe prototype. + * dummy-frame.c: Remove _initialize_dummy_frame prototype. + * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame + prototype. + * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype. + * dwarf2expr.c: Remove _initialize_dwarf2expr prototype. + * dwarf2loc.c: Remove _initialize_dwarf2loc prototype. + * dwarf2read.c: Remove _initialize_dwarf2_read prototype. + * elfread.c: Remove _initialize_elfread prototype. + * exec.c: Remove _initialize_exec prototype. + * extension.c: Remove _initialize_extension prototype. + * f-lang.c: Remove _initialize_f_language prototype. + * f-valprint.c: Remove _initialize_f_valprint prototype. + * fbsd-nat.c: Remove _initialize_fbsd_nat prototype. + * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype. + * filesystem.c: Remove _initialize_filesystem prototype. + * findcmd.c: Remove _initialize_mem_search prototype. + * fork-child.c: Remove _initialize_fork_child prototype. + * frame-base.c: Remove _initialize_frame_base prototype. + * frame-unwind.c: Remove _initialize_frame_unwind prototype. + * frame.c: Remove _initialize_frame prototype. + * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype. + * frv-tdep.c: Remove _initialize_frv_tdep prototype. + * ft32-tdep.c: Remove _initialize_ft32_tdep prototype. + * gcore.c: Remove _initialize_gcore prototype. + * gdb_bfd.c: Remove _initialize_gdb_bfd prototype. + * gdbarch.c: Regenerate. + * gdbarch.sh: Remove _initialize_gdbarch prototype. + * gdbtypes.c: Remove _initialize_gdbtypes prototype. + * gnu-nat.c: Remove _initialize_gnu_nat prototype. + * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype. + * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype. + * go-lang.c: Remove _initialize_go_language prototype. + * go32-nat.c: Remove _initialize_go32_nat prototype. + * guile/guile.c: Remove _initialize_guile prototype. + * h8300-tdep.c: Remove _initialize_h8300_tdep prototype. + * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype. + * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype. + * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype. + * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype. + * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype. + * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype. + * hppa-tdep.c: Remove _initialize_hppa_tdep prototype. + * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype. + * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep + prototype. + * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep + prototype. + * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype. + * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype. + * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype. + * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype. + * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype. + * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype. + * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype. + * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype. + * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype. + * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype. + * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype. + * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype. + * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype. + * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. + * i386-tdep.c: Remove _initialize_i386_tdep prototype. + * i386-windows-nat.c: Remove _initialize_i386_windows_nat + prototype. + * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame + prototype. + * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype. + * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype. + * ia64-tdep.c: Remove _initialize_ia64_tdep prototype. + * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype. + * infcall.c: Remove _initialize_infcall prototype. + * infcmd.c: Remove _initialize_infcmd prototype. + * inferior.c: Remove _initialize_inferiors prototype. + * inflow.c: Remove _initialize_inflow prototype. + * infrun.c: Remove _initialize_infrun prototype. + * interps.c: Remove _initialize_interpreter prototype. + * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype. + * jit.c: Remove _initialize_jit prototype. + * language.c: Remove _initialize_language prototype. + * linux-fork.c: Remove _initialize_linux_fork prototype. + * linux-nat.c: Remove _initialize_linux_nat prototype. + * linux-tdep.c: Remove _initialize_linux_tdep prototype. + * linux-thread-db.c: Remove _initialize_thread_db prototype. + * lm32-tdep.c: Remove _initialize_lm32_tdep prototype. + * m2-lang.c: Remove _initialize_m2_language prototype. + * m32c-tdep.c: Remove _initialize_m32c_tdep prototype. + * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype. + * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype. + * m32r-tdep.c: Remove _initialize_m32r_tdep prototype. + * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype. + * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. + * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype. + * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype. + * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype. + * m68k-tdep.c: Remove _initialize_m68k_tdep prototype. + * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. + * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype. + * machoread.c: Remove _initialize_machoread prototype. + * macrocmd.c: Remove _initialize_macrocmd prototype. + * macroscope.c: Remove _initialize_macroscope prototype. + * maint.c: Remove _initialize_maint_cmds prototype. + * mdebugread.c: Remove _initialize_mdebugread prototype. + * memattr.c: Remove _initialize_mem prototype. + * mep-tdep.c: Remove _initialize_mep_tdep prototype. + * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype. + * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype. + * mi/mi-interp.c: Remove _initialize_mi_interp prototype. + * mi/mi-main.c: Remove _initialize_mi_main prototype. + * microblaze-linux-tdep.c: Remove + _initialize_microblaze_linux_tdep prototype. + * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype. + * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype. + * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype. + * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype. + * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype. + * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype. + * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype. + * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype. + * mips-tdep.c: Remove _initialize_mips_tdep prototype. + * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype. + * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep + prototype. + * mipsread.c: Remove _initialize_mipsread prototype. + * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep + prototype. + * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype. + * moxie-tdep.c: Remove _initialize_moxie_tdep prototype. + * msp430-tdep.c: Remove _initialize_msp430_tdep prototype. + * mt-tdep.c: Remove _initialize_mt_tdep prototype. + * nds32-tdep.c: Remove _initialize_nds32_tdep prototype. + * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep + prototype. + * nios2-tdep.c: Remove _initialize_nios2_tdep prototype. + * nto-procfs.c: Remove _initialize_procfs prototype. + * nto-tdep.c: Remove _initialize_nto_tdep prototype. + * objc-lang.c: Remove _initialize_objc_language prototype. + * objfiles.c: Remove _initialize_objfiles prototype. + * observer.c: Remove observer_test_first_notification_function, + observer_test_second_notification_function, + observer_test_third_notification_function, and + _initialize_observer prototypes. + * opencl-lang.c: Remove _initialize_opencl_language prototypes. + * osabi.c: Remove _initialize_gdb_osabi prototype. + * osdata.c: Remove _initialize_osdata prototype. + * p-valprint.c: Remove _initialize_pascal_valprint prototype. + * parse.c: Remove _initialize_parse prototype. + * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype. + * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype. + * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype. + * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype. + * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype. + * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype. + * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype. + * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype. + * printcmd.c: Remove _initialize_printcmd prototype. + * probe.c: Remove _initialize_probe prototype. + * proc-api.c: Remove _initialize_proc_api prototype. + * proc-events.c: Remove _initialize_proc_events prototype. + * proc-service.c: Remove _initialize_proc_service prototype. + * procfs.c: Remove _initialize_procfs prototype. + * psymtab.c: Remove _initialize_psymtab prototype. + * python/python.c: Remove _initialize_python prototype. + * ravenscar-thread.c: Remove _initialize_ravenscar prototype. + * record-btrace.c: Remove _initialize_record_btrace prototype. + * record-full.c: Remove _initialize_record_full prototype. + * record.c: Remove _initialize_record prototype. + * regcache.c: Remove _initialize_regcache prototype. + * reggroups.c: Remove _initialize_reggroup prototype. + * remote-notif.c: Remove _initialize_notif prototype. + * remote-sim.c: Remove _initialize_remote_sim prototype. + * remote.c: Remove _initialize_remote prototype. + * reverse.c: Remove _initialize_reverse prototype. + * rl78-tdep.c: Remove _initialize_rl78_tdep prototype. + * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype. + * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep + prototype. + * rs6000-nat.c: Remove _initialize_rs6000_nat prototype. + * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype. + * rust-exp.y: Remove _initialize_rust_exp prototype. + * rx-tdep.c: Remove _initialize_rx_tdep prototype. + * s390-linux-nat.c: Remove _initialize_s390_nat prototype. + * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype. + * score-tdep.c: Remove _initialize_score_tdep prototype. + * selftest-arch.c: Remove _initialize_selftests_foreach_arch + prototype. + * ser-go32.c: Remove _initialize_ser_dos prototype. + * ser-mingw.c: Remove _initialize_ser_windows prototype. + * ser-pipe.c: Remove _initialize_ser_pipe prototype. + * ser-tcp.c: Remove _initialize_ser_tcp prototype. + * ser-unix.c: Remove _initialize_ser_hardwire prototype. + * serial.c: Remove _initialize_serial prototype. + * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype. + * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype. + * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype. + * sh-tdep.c: Remove _initialize_sh_tdep prototype. + * skip.c: Remove _initialize_step_skip prototype. + * sol-thread.c: Remove _initialize_sol_thread prototype. + * solib-aix.c: Remove _initialize_solib_aix prototype. + * solib-darwin.c: Remove _initialize_darwin_solib prototype. + * solib-dsbt.c: Remove _initialize_dsbt_solib prototype. + * solib-frv.c: Remove _initialize_frv_solib prototype. + * solib-spu.c: Remove _initialize_spu_solib prototype. + * solib-svr4.c: Remove _initialize_svr4_solib prototype. + * solib-target.c: Remove _initialize_solib_target prototype. + * solib.c: Remove _initialize_solib prototype. + * source.c: Remove _initialize_source prototype. + * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype. + * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep + prototype. + * sparc-nat.c: Remove _initialize_sparc_nat prototype. + * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype. + * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype. + * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep + prototype. + * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype. + * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype. + * sparc-tdep.c: Remove _initialize_sparc_tdep prototype. + * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat + prototype. + * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep + prototype. + * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat + prototype. + * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep + prototype. + * sparc64-nat.c: Remove _initialize_sparc64_nat prototype. + * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat + prototype. + * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep + prototype. + * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat + prototype. + * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep + prototype. + * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep + prototype. + * spu-linux-nat.c: Remove _initialize_spu_nat prototype. + * spu-multiarch.c: Remove _initialize_spu_multiarch prototype. + * spu-tdep.c: Remove _initialize_spu_tdep prototype. + * stabsread.c: Remove _initialize_stabsread prototype. + * stack.c: Remove _initialize_stack prototype. + * stap-probe.c: Remove _initialize_stap_probe prototype. + * std-regs.c: Remove _initialize_frame_reg prototype. + * symfile-debug.c: Remove _initialize_symfile_debug prototype. + * symfile-mem.c: Remove _initialize_symfile_mem prototype. + * symfile.c: Remove _initialize_symfile prototype. + * symmisc.c: Remove _initialize_symmisc prototype. + * symtab.c: Remove _initialize_symtab prototype. + * target-dcache.c: Remove _initialize_target_dcache prototype. + * target-descriptions.c: Remove _initialize_target_descriptions + prototype. + * thread.c: Remove _initialize_thread prototype. + * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep + prototype. + * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype. + * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype. + * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep + prototype. + * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype. + * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype. + * tracefile.c: Remove _initialize_tracefile prototype. + * tracepoint.c: Remove _initialize_tracepoint prototype. + * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype. + * tui/tui-interp.c: Remove _initialize_tui_interp prototype. + * tui/tui-layout.c: Remove _initialize_tui_layout prototype. + * tui/tui-regs.c: Remove _initialize_tui_regs prototype. + * tui/tui-stack.c: Remove _initialize_tui_stack prototype. + * tui/tui-win.c: Remove _initialize_tui_win prototype. + * tui/tui.c: Remove _initialize_tui prototype. + * typeprint.c: Remove _initialize_typeprint prototype. + * user-regs.c: Remove _initialize_user_regs prototype. + * utils.c: Remove _initialize_utils prototype. + * v850-tdep.c: Remove _initialize_v850_tdep prototype. + * valarith.c: Remove _initialize_valarith prototype. + * valops.c: Remove _initialize_valops prototype. + * valprint.c: Remove _initialize_valprint prototype. + * value.c: Remove _initialize_values prototype. + * varobj.c: Remove _initialize_varobj prototype. + * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype. + * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype. + * vax-tdep.c: Remove _initialize_vax_tdep prototype. + * windows-nat.c: Remove _initialize_windows_nat, + _initialize_check_for_gdb_ini, and _initialize_loadable + prototypes. + * windows-tdep.c: Remove _initialize_windows_tdep prototype. + * xcoffread.c: Remove _initialize_xcoffread prototype. + * xml-support.c: Remove _initialize_xml_support prototype. + * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype. + * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat + prototype. + * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep + prototype. + * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype. + +2017-09-08 Keith Seitz <keiths@redhat.com> + + * dwarf2read.c (struct field_info) <fnfields>: Remove unused + field. + +2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com> + + * f-valprint.c (f_val_print): Remove check for one byte + sized integers. Remove printing of character type. + +2017-09-08 Frank Penczek <frank.penczek@intel.com> + Christoph Weinmann <christoph.t.weinmann@intel.com> + Bernhard Heckel <bernhard.heckel@intel.com> + + * f-typeprint.c (f_type_print_base): Use fprintfi_filtered + to maintain proper indentation when printing pointers/refs. + +2017-09-07 Joel Brobecker <brobecker@adacore.com> + + GDB 8.0.1 released. + +2017-09-07 Joel Brobecker <brobecker@adacore.com> + + * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell. + +2017-09-05 Tom Tromey <tom@tromey.com> + + * parse.c (funcall_chain): Now a std::vector. + (start_arglist, end_arglist): Simplify. + (free_funcalls): Remove. + (parse_exp_in_context_1): Remove cleanup. + +2017-09-05 Tom Tromey <tom@tromey.com> + + * go-exp.y (go_parse): Don't create a cleanup. + +2017-09-05 Tom Tromey <tom@tromey.com> + + * d-exp.y (PrimaryExpression): Use std::string. + (d_parse): Don't create a cleanup. + +2017-09-05 Tom Tromey <tom@tromey.com> + + * utils.c (do_clear_parser_state): Remove. + (make_cleanup_clear_parser_state): Remove. + * p-exp.y (pascal_parse): Use scoped_restore. + * m2-exp.y (m2_parse): Use scoped_restore. + * f-exp.y (f_parse): Use scoped_restore. + * d-exp.y (d_parse): Use scoped_restore. + * c-exp.y (c_parse): Use scoped_restore. + * ada-exp.y (ada_parse): Use scoped_restore. + * utils.h (make_cleanup_clear_parser_state): Remove. + +2017-09-06 Keith Seitz <keiths@redhat.com> + + * dwarf2read.c (dw2_linkage_name_attr): New function. + (dw2_linkage_name): New function. + (dwarf2_compute_name, dwarf2_physname, read_call_site_scope) + (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name. + (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr. + +2017-09-06 Kamil Rytarowski <n54@gmx.com> + + * config/djgpp/djconfig.sh: Correct shell portability issue. + +2017-09-06 Kamil Rytarowski <n54@gmx.com> + + * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD. + +2017-09-06 John Baldwin <jhb@FreeBSD.org> + + * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. + * NEWS: Mention new FreeBSD/mips native configuration. + * configure.host: Add aarch64*-*-freebsd*. + * configure.nat: Likewise. + * aarch64-fbsd-nat.c: New file. + +2017-09-06 John Baldwin <jhb@FreeBSD.org> + + * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o. + (ALLDEPFILES): Add aarch64-fbsd-tdep.c. + * NEWS: Mention new FreeBSD/aarch64 target. + * configure.tgt: Add aarch64*-*-freebsd*. + * aarch64-fbsd-tdep.c: New file. + * aarch64-fbsd-tdep.h: New file. + +2017-09-06 Kamil Rytarowski <n54@gmx.com> + + * MAINTAINERS (Write After Approval): Add Kamil Rytarowski. + +2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> + + * parse.c (find_minsym_type_and_address): Don't relocate addresses + of TLS symbols. + +2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init + call. + +2017-09-05 Simon Marchi <simon.marchi@ericsson.com> + + * infrun.c (follow_exec): Call add_thread after + target_find_description. + +2017-09-05 Simon Marchi <simon.marchi@ericsson.com> + + * infrun.c (handle_inferior_event_1): When exec'ing, read + stop_pc after follow_exec. + +2017-09-05 Simon Marchi <simon.marchi@ericsson.com> + + * remote.c (process_g_packet): Update error message. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * configure.tgt (gdb_target_obs): Add i386.o for x86_64-* + targets. + +2017-09-05 Pedro Alves <palves@redhat.com> + + * eval.c (eval_call, evaluate_funcall): New functions, factored + out from ... + (evaluate_subexp_standard): ... this. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * amd64-tdep.c (amd64_target_description): Create target + descriptions. + (_initialize_amd64_tdep): Don't call functions + initialize_tdesc_amd64_*. Add self tests. + * arch/amd64.c (amd64_create_target_description): Add parameter + is_linux. Call set_tdesc_osabi if is_linux is true. + * arch/amd64.h (amd64_create_target_description): Update the + declaration. + * arch/i386.c (i386_create_target_description): Add parameter + is_linux. Call set_tdesc_osabi if is_linux is true. + * arch/i386.h (i386_create_target_description): Update + declaration. + * configure.tgt: Add i386.o to gdb_target_obs. + * features/Makefile (XMLTOC): Remove i386/*.xml. + * features/i386/amd64-avx-avx512.c: Remove. + * features/i386/amd64-avx-mpx-avx512-pku.c: Remove. + * features/i386/amd64-avx-mpx.c: Remove. + * features/i386/amd64-avx.c: Remove. + * features/i386/amd64-mpx.c: Remove. + * features/i386/amd64.c: Remove. + * features/i386/i386-avx-avx512.c: Remove. + * features/i386/i386-avx-mpx-avx512-pku.c: Remove. + * features/i386/i386-avx-mpx.c: Remove. + * features/i386/i386-avx.c: Remove. + * features/i386/i386-mmx.c: Remove. + * features/i386/i386-mpx.c: Remove. + * features/i386/i386.c: Remove. + * i386-tdep.c: Don't include features/i386/i386*.c., include + target-descriptions.h and arch/i386.h. + (i386_target_description): Create target descriptions. + (i386_gdbarch_init): Don't call initialize_tdesc_i386_* + functions. Do self tests. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml. + * features/i386/amd64-avx-avx512-linux.c: Removed. + * features/i386/amd64-avx-linux.c: Removed. + * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed. + * features/i386/amd64-avx-mpx-linux.c: Removed. + * features/i386/amd64-linux.c: Removed. + * features/i386/amd64-mpx-linux.c: Removed. + * features/i386/x32-avx-avx512-linux.c: Removed. + * features/i386/x32-avx-linux.c: Removed. + * features/i386/x32-linux.c: Removed. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * amd64-linux-tdep.c: Include arch/amd64.h. Don't include + features/i386/*.c. + (amd64_linux_read_description): Call + amd64_create_target_description. + * arch/amd64.c: New file. + * arch/amd64.h: New file. + * configure.tgt (x86_64-*-linux*): Append amd64.o. + * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * amd64-linux-tdep.c: Don't include amd64-XXX-linux and + x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c. + (amd64_linux_read_description): Create target descriptions. + (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX + functions. Add unit tests. + * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and + x32-core.xml. + * features/i386/64bit-avx.c: Generated. + * features/i386/64bit-avx512.c: Generated. + * features/i386/64bit-core.c: Generated. + * features/i386/64bit-linux.c: Generated. + * features/i386/64bit-mpx.c: Generated. + * features/i386/64bit-pkeys.c: Generated. + * features/i386/64bit-segments.c: Generated. + * features/i386/64bit-sse.c: Generated. + * features/i386/x32-core.c: Generated. + * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature + c files for amd64-linux and x32-linux. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * amd64-linux-tdep.c (amd64_linux_read_description): New + function. + (amd64_linux_core_read_description): Call + amd64_linux_read_description. + (amd64_linux_init_abi): Likewise. + (amd64_x32_linux_init_abi): Likewise. + * amd64-linux-tdep.h (amd64_linux_read_description): Declare. + * x86-linux-nat.c (x86_linux_read_description): Call + amd64_linux_read_description. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * amd64-linux-tdep.c (amd64_linux_core_read_description): Update + comments. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml. + * features/i386/i386-avx-avx512-linux.c: Remove. + * features/i386/i386-avx-linux.c: Remove. + * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove. + * features/i386/i386-avx-mpx-linux.c: Remove. + * features/i386/i386-linux.c: Remove. + * features/i386/i386-mmx-linux.c: Remove. + * features/i386/i386-mpx-linux.c: Remove. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * Makefile.in (ALL_TARGET_OBS): Add i386.o. + (SFILES): Add arch/i386.c. + (HFILES_NO_SRCDIR): Add arch/i386.h. + * arch/i386.c: New file. + * arch/i386.h: New file. + * arch/tdesc.h (allocate_target_description): Declare. + (set_tdesc_architecture): Declare. + (set_tdesc_osabi): Declare. + * configure.tgt (i[34567]86-*-linux*): Add i386.o. + * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c. + include arch/i386.h. + (i386_linux_read_description): Remove code and call + i386_create_target_description. + (set_tdesc_architecture): New function. + (set_tdesc_osabi): New function. + * target-descriptions.h (allocate_target_description): Remove. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * arch/tdesc.h (tdesc_create_feature): Add an argument xml. + * target-descriptions.c (tdesc_create_feature): Likewise, and + adjust code. + * features/i386/32bit-avx.c: Re-generated. + * features/i386/32bit-avx512.c: Re-generated. + * features/i386/32bit-core.c: Re-generated. + * features/i386/32bit-linux.c: Re-generated. + * features/i386/32bit-mpx.c: Re-generated. + * features/i386/32bit-pkeys.c: Re-generated. + * features/i386/32bit-sse.c: Re-generated. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * regformats/regdef.h (struct reg): Override operator == and !=. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * arch/tdesc.h: New file. + * regformats/regdat.sh: Generate code using tdesc_create_reg. + * target-descriptions.c: Update comments. + * target-descriptions.h: Include "arch/tdesc.h". Remove the + declarations. + * features/i386/32bit-avx.c: Re-generated. + * features/i386/32bit-avx512.c: Re-generated. + * features/i386/32bit-core.c: Re-generated. + * features/i386/32bit-linux.c: Re-generated. + * features/i386/32bit-mpx.c: Re-generated. + * features/i386/32bit-pkeys.c: Re-generated. + * features/i386/32bit-sse.c: Re-generated. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * regformats/regdat.sh: Update generated code. + +2017-09-05 Yao Qi <yao.qi@linaro.org> + + * regformats/regdat.sh: Adjust code order. + +2017-09-05 Simon Marchi <simon.marchi@ericsson.com> + + * expprint.c (dump_subexp_body_standard): Use constant format + string in fprintf_filtered call. + +2017-09-04 John Baldwin <jhb@FreeBSD.org> + + * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and + NetBSD/i386. + * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX. + +2017-09-04 John Baldwin <jhb@FreeBSD.org> + + * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H. + +2017-09-04 John Baldwin <jhb@FreeBSD.org> + + * bsd-kvm.o: Define _KMEMUSER. + * configure.ac: Define _KMEMUSER when checking for "struct lwp". + * configure: Regenerate. + +2017-09-04 John Baldwin <jhb@FreeBSD.org> + + * amd64-fbsd-nat.c: Add include of "x86-xstate.h". + * i386-fbsd-nat.c: Likewise. + +2017-09-04 John Baldwin <jhb@FreeBSD.org> + + * unittests/array-view-selftests.c: Add include of <array>. + +2017-09-04 John Baldwin <jhb@FreeBSD.org> + + * spu-tdep.c (flush_ea_cache): Add missing argument to + call_function_by_hand. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * NEWS (Safer support for debugging with no debug info): New. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * c-exp.y (function_method, function_method_void): Add current + instance flags to TYPE_INSTANCE. + * dwarf2read.c (check_modifier): New. + (compute_delayed_physnames): Assert that only C++ adds delayed + physnames. Mark fn_fields as const/volatile depending on + physname. + * eval.c (make_params): New type_instance_flags parameter. Use + it as the new type's instance flags. + (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance + flags element and pass it to make_params. + * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle + instance flags element. + (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise. + * gdbtypes.h: Include "enum-flags.h". + (type_instance_flags): New enum-flags type. + (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC) + (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean. + * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust. + (follow_type_instance_flags): New function. + (operator_check_standard) <TYPE_INSTANCE>: Adjust. + * parser-defs.h (follow_type_instance_flags): Declare. + * valops.c (value_struct_elt_for_reference): const/volatile must + match too. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * cp-namespace.c (cp_search_static_and_baseclasses): Handle + function/method scopes; lookup the nested name as a function local + static variable. + +2017-09-04 Pedro Alves <palves@redhat.com> + + (%type <voidval>): Add function_method. + * c-exp.y (exp): New production for calls with no arguments. + (function_method, function_method_void_or_typelist): New + productions. + (exp): New production for "method()::static_var". + * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR. + * expprint.c (print_subexp_standard, dump_subexp_body_standard): + Handle OP_FUNC_STATIC_VAR. + * parse.c (operator_length_standard): + Handle OP_FUNC_STATIC_VAR. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS + handling. + * expprint.c (print_subexp_standard, dump_subexp_body_standard): + Ditto. + * parse.c (operator_length_standard, operator_check_standard): + Ditto. + * std-operator.def (UNOP_MEMVAL_TLS): Delete. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * ax-gdb.c: Include "typeprint.h". + (gen_expr_for_cast): New function. + (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it. + <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's + type is unknown. + * dwarf2read.c (new_symbol_full): Fallback to int instead of + nodebug_data_symbol. + * eval.c: Include "typeprint.h". + (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>: + Error out if symbol has unknown type. + <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to + evaluate_subexp_for_cast. + (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle + OP_VAR_MSYM_VALUE. + (evaluate_subexp_for_cast): New function. + * gdbtypes.c (init_nodebug_var_type): New function. + (objfile_type): Use it to initialize types of variables with no + debug info. + * typeprint.c (error_unknown_type): New. + * typeprint.h (error_unknown_type): New declaration. + * compile/compile-c-types.c (convert_type_basic): Handle + TYPE_CODE_ERROR; warn and fallback to int for variables with + unknown type. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * eval.c (evaluate_var_value): New function, factored out from ... + (evaluate_subexp_standard): ... here. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>: + Remove useless assignments to 'op'. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * eval.c (eval_skip_value): New function. + (evaluate_subexp_standard): Use it. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract + function name from symbol/minsym and pass it to + error_call_unknown_return_type. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE. + * ax-gdb.c (gen_msym_var_ref): New function. + (gen_expr): Handle OP_VAR_MSYM_VALUE. + * eval.c (evaluate_var_msym_value): New function. + * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE. + <OP_FUNCALL>: Extract function name from symbol/minsym and pass it + to call_function_by_hand. + * expprint.c (print_subexp_standard, dump_subexp_body_standard): + Handle OP_VAR_MSYM_VALUE. + (union exp_element) <msymbol>: New field. + * minsyms.h (struct type): Forward declare. + (find_minsym_type_and_address): Declare. + * parse.c (write_exp_elt_msym): New function. + (write_exp_msymbol): Delete, refactored as ... + (find_minsym_type_and_address): ... this new function. + (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE. + (operator_length_standard, operator_check_standard): Handle + OP_VAR_MSYM_VALUE. + * std-operator.def (OP_VAR_MSYM_VALUE): New. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle + TYPE_GNU_IFUNC specially here. Throw error if return type is + unknown. + * ada-typeprint.c (print_func_type): Handle functions with unknown + return type. + * c-typeprint.c (c_type_print_base): Handle functions and methods + with unknown return type. + * compile/compile-c-symbols.c (convert_symbol_bmsym) + <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol. + * compile/compile-c-types.c: Include "objfiles.h". + (convert_func): For functions with unknown return type, warn and + default to int. + * compile/compile-object-run.c (compile_object_run): Adjust call + to call_function_by_hand_dummy. + * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to + call_function_by_hand. + * eval.c (evaluate_subexp_standard): Adjust calls to + call_function_by_hand. Handle functions and methods with unknown + return type. Pass expect_type to call_function_by_hand. + * f-typeprint.c (f_type_print_base): Handle functions with unknown + return type. + * gcore.c (call_target_sbrk): Adjust call to + call_function_by_hand. + * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL + return type instead of int. Make nodebug_text_gnu_ifunc_symbol be + an integer address type instead of nodebug. + * guile/scm-value.c (gdbscm_value_call): Adjust call to + call_function_by_hand. + * infcall.c (error_call_unknown_return_type): New function. + (call_function_by_hand): New "default_return_type" parameter. + Pass it down. + (call_function_by_hand_dummy): New "default_return_type" + parameter. Use it instead of defaulting to int. If there's no + default and the return type is unknown, throw an error. If + there's a default return type, and the called function has no + debug info, then assume the function is prototyped. + * infcall.h (call_function_by_hand, call_function_by_hand_dummy): + New "default_return_type" parameter. + (error_call_unknown_return_type): New declaration. + * linux-fork.c (call_lseek): Cast return type of lseek. + (inferior_call_waitpid, checkpoint_command): Adjust calls to + call_function_by_hand. + * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust + calls to call_function_by_hand. + * m2-typeprint.c (m2_procedure): Handle functions with unknown + return type. + * objc-lang.c (lookup_objc_class, lookup_child_selector) + (value_nsstring, print_object_command): Adjust calls to + call_function_by_hand. + * p-typeprint.c (pascal_type_print_varspec_prefix): Handle + functions with unknown return type. + (pascal_type_print_func_varspec_suffix): New function. + (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC, + TYPE_CODE_METHOD>: Use it. + * python/py-value.c (valpy_call): Adjust call to + call_function_by_hand. + * rust-lang.c (rust_evaluate_funcall): Adjust call to + call_function_by_hand. + * valarith.c (value_x_binop, value_x_unop): Adjust calls to + call_function_by_hand. + * valops.c (value_allocate_space_in_inferior): Adjust call to + call_function_by_hand. + * typeprint.c (type_print_unknown_return_type): New function. + * typeprint.h (type_print_unknown_return_type): New declaration. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * gdbtypes.c (lookup_function_type_with_arguments): Mark function + types with more than one parameter as prototyped. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * cli/cli-cmds.c (print_disassembly, disassemble_current_function) + (disassemble_command): Use gdb_disassembly_flags instead of bare + int. + * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn) + (dump_insns, do_mixed_source_and_assembly_deprecated) + (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly): + Use gdb_disassembly_flags instead of bare int. + * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN) + (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME) + (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE) + (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're... + (enum gdb_disassembly_flag): ... values of this new enumeration. + (gdb_disassembly_flags): Define. + (gdb_disassembly) + (gdb_pretty_print_disassembler::pretty_print_insn): Use it. + * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use + gdb_disassembly_flags instead of bare int. + * record-btrace.c (btrace_insn_history) + (record_btrace_insn_history, record_btrace_insn_history_range) + (record_btrace_insn_history_from): Use gdb_disassembly_flags + instead of bare int. + * record.c (get_insn_history_modifiers, cmd_record_insn_history): + Use gdb_disassembly_flags instead of bare int. + * target-debug.h (target_debug_print_gdb_disassembly_flags): + Define. + * target-delegates.c: Regenerate. + * target.c (target_insn_history, target_insn_history_from) + (target_insn_history_range): Use gdb_disassembly_flags instead of + bare int. + * target.h: Include "disasm.h". + (struct target_ops) <to_insn_history, to_insn_history_from, + to_insn_history_range>: Use gdb_disassembly_flags instead of bare + int. + (target_insn_history, target_insn_history_from) + (target_insn_history_range): Use gdb_disassembly_flags instead of + bare int. + +2017-09-04 Simon Marchi <simon.marchi@ericsson.com> + + * cli/cli-script.c (build_command_line): For if/while commands, + check whether args is empty. + +2017-09-04 Simon Marchi <simon.marchi@ericsson.com> + + * cli/cli-script.h (enum misc_command_type): Move from defs.h. + (enum command_control_type): Likewise. + (struct command_line): Likewise. + (free_command_lines): Likewise. + (struct command_lines_deleter): Likewise. + (command_line_up): Likewise. + (read_command_lines): Likewise. + (read_command_lines_1): Likewise. + * defs.h (enum misc_command_type): Move to cli/cli-script.h. + (enum command_control_type): Likewise. + (struct command_line): Likewise. + (free_command_lines): Likewise. + (struct command_lines_deleter): Likewise. + (command_line_up): Likewise. + (read_command_lines): Likewise. + (read_command_lines_1): Likewise. + * breakpoint.h: Include cli/cli-script.h. + * extension-priv.h: Likewise. + * gdbcmd.h: Likewise. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * ada-lang.c (is_known_support_routine): Move sal declaration to + where it is initialized. + * breakpoint.c (create_internal_breakpoint, init_catchpoint) + (parse_breakpoint_sals, decode_static_tracepoint_spec) + (clear_command, update_static_tracepoint): Remove init_sal + references. Move declarations closer to initializations. + * cli/cli-cmds.c (list_command): Move sal declarations closer to + initializations. + * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal + references. Move sal declarations closer to initializations. + * frame.c (find_frame_sal): Return a symtab_and_line via function + return instead of output parameter. Remove init_sal references. + * frame.h (find_frame_sal): Return a symtab_and_line via function + return instead of output parameter. + * guile/scm-frame.c (gdbscm_frame_sal): Adjust. + * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new + instead of memset. + (gdbscm_find_pc_line): Remove init_sal reference. + * infcall.c (call_function_by_hand_dummy): Remove init_sal + references. Move declarations closer to initializations. + * infcmd.c (set_step_frame): Update. Move declarations closer to + initializations. + (finish_backward): Remove init_sal references. Move declarations + closer to initializations. + * infrun.c (process_event_stop_test, handle_step_into_function) + (insert_hp_step_resume_breakpoint_at_frame) + (insert_step_resume_breakpoint_at_caller): Likewise. + * linespec.c (create_sals_line_offset, decode_digits_ordinary) + (symbol_to_sal): Likewise. + * probe.c (parse_probes_in_pspace): Remove init_sal reference. + * python/py-frame.c (frapy_find_sal): Move sal declaration closer + to its initialization. + * reverse.c (save_bookmark_command): Use new/delete. Remove + init_sal references. Move declarations closer to initializations. + * source.c (get_current_source_symtab_and_line): Remove brace + initialization. + (set_current_source_symtab_and_line): Now takes the sal by const + reference. Remove brace initialization. + (line_info): Remove init_sal reference. + * source.h (set_current_source_symtab_and_line): Now takes a + symtab_and_line via const reference. + * stack.c (set_current_sal_from_frame): Adjust. + (print_frame_info): Adjust. + (get_last_displayed_sal): Return the sal via function return + instead of via output parameter. Simplify. + (frame_info): Adjust. + * stack.h (get_last_displayed_sal): Return the sal via function + return instead of via output parameter. + * symtab.c (init_sal): Delete. + (find_pc_sect_line): Remove init_sal references. Move + declarations closer to initializations. + (find_function_start_sal): Remove init_sal references. Move + declarations closer to initializations. + * symtab.h (struct symtab_and_line): In-class initialize all + fields. + * tracepoint.c (set_traceframe_context) + (print_one_static_tracepoint_marker): Remove init_sal references. + Move declarations closer to initializations. + * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust. + * tui/tui-stack.c (tui_show_frame_info): Adjust. Move + declarations closer to initializations. + * tui/tui-winsource.c (tui_update_source_window_as_is): Remove + init_sal references. Adjust. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * ax-gdb.c (agent_command_1): Use range-for. + * break-catch-throw.c (re_set_exception_catchpoint): Update. + * breakpoint.c: Include "common/array-view.h". + (init_breakpoint_sal, create_breakpoint_sal): Change sals + parameter from struct symtabs_and_lines to + array_view<symtab_and_line>. Adjust. Use range-for. Update. + (breakpoint_sals_to_pc): Change sals parameter from struct + symtabs_and_lines to std::vector reference. + (check_fast_tracepoint_sals): Change sals parameter from struct + symtabs_and_lines to std::array_view. Use range-for. + (decode_static_tracepoint_spec): Return a std::vector instead of + symtabs_and_lines. Update. + (create_breakpoint): Update. + (break_range_command, until_break_command, clear_command): Update. + (base_breakpoint_decode_location, bkpt_decode_location) + (bkpt_probe_create_sals_from_location) + (bkpt_probe_decode_location, tracepoint_decode_location) + (tracepoint_probe_decode_location) + (strace_marker_create_sals_from_location): Return a std::vector + instead of symtabs_and_lines. + (strace_marker_create_breakpoints_sal): Update. + (strace_marker_decode_location): Return a std::vector instead of + symtabs_and_lines. Update. + (update_breakpoint_locations): Change struct symtabs_and_lines + parameters to gdb::array_view. Adjust. + (location_to_sals): Return a std::vector instead of + symtabs_and_lines. Update. + (breakpoint_re_set_default): Use std::vector instead of struct + symtabs_and_lines. + (decode_location_default): Return a std::vector instead of + symtabs_and_lines. Update. + * breakpoint.h: Include "common/array-view.h". + (struct breakpoint_ops) <decode_location>: Now returns a + std::vector instead of returning a symtabs_and_lines via output + parameter. + (update_breakpoint_locations): Change sals parameters to use + gdb::array_view. + * cli/cli-cmds.c (edit_command, list_command): Update to use + std::vector and gdb::array_view. + (ambiguous_line_spec): Adjust to use gdb::array_view and + range-for. + (compare_symtabs): Rename to ... + (cmp_symtabs): ... this. Change parameters to symtab_and_line + const reference and adjust. + (filter_sals): Rewrite using std::vector and standard algorithms. + * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify. + (jump_command): Update to use std::vector. + * linespec.c (struct linespec_state) <canonical_names>: Update + comment. + (add_sal_to_sals_basic): Delete. + (add_sal_to_sals, filter_results, convert_results_to_lsals) + (decode_line_2, create_sals_line_offset) + (convert_address_location_to_sals, convert_linespec_to_sals) + (convert_explicit_location_to_sals, parse_linespec) + (event_location_to_sals, decode_line_full, decode_line_1) + (decode_line_with_current_source) + (decode_line_with_last_displayed, decode_objc) + (decode_digits_list_mode, decode_digits_ordinary, minsym_found) + (linespec_result::~linespec_result): Adjust to use std::vector + instead of symtabs_and_lines. + * linespec.h (linespec_sals::sals): Now a std::vector. + (struct linespec_result): Use std::vector, bool, and in-class + initialization. + (decode_line_1, decode_line_with_current_source) + (decode_line_with_last_displayed): Return std::vector. + * macrocmd.c (info_macros_command): Use std::vector. + * mi/mi-main.c (mi_cmd_trace_find): Use std::vector. + * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use + std::vector. + * probe.h (parse_probes): Return a std::vector. + * python/python.c (gdbpy_decode_line): Use std::vector and + gdb::array_view. + * source.c (select_source_symtab, line_info): Use std::vector. + * stack.c (func_command): Use std::vector. + * symtab.h (struct symtabs_and_lines): Delete. + * tracepoint.c (tfind_line_command, scope_info): Use std::vector. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/array-view-selftests.c. + (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o. + * common/array-view.h: New file. + * unittests/array-view-selftests.c: New file. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * cli/cli-cmds.c (edit_command): Pass message to + ambiguous_line_spec. + (list_command): Pass message to ambiguous_line_spec. Say + "first"/"last" instead of "start" and "end" to be consistent with + the manual. + (ambiguous_line_spec): Add 'format' and vararg parameters. Use + them to print formatted message. + +2017-09-04 Pedro Alves <palves@redhat.com> + + * btrace.c (ftrace_add_pt): Pass btrace_insn to + ftrace_update_insns by reference instead of pointer. + +2017-09-04 Yao Qi <yao.qi@linaro.org> + + * i386-go32-tdep.c: Include x86-xstate.h. + (i386_go32_init_abi): Call i386_target_description. + * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx + if xcr0 is X86_XSTATE_X87_MASK. + * i386-tdep.h (tdesc_i386): Remove the declaration. + (tdesc_i386_mmx): Likewise. + +2017-09-04 Yao Qi <yao.qi@linaro.org> + + * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return + X86_XSTATE_SSE_MASK instead of 0. + +2017-09-04 Yao Qi <yao.qi@linaro.org> + + * amd64-fbsd-nat.c (amd64fbsd_read_description): Call + i386_target_description. + * i386-fbsd-nat.c (i386fbsd_read_description): Call + i386_target_description. + * i386-tdep.c (i386_gdbarch_init): Likewise. + +2017-09-04 Yao Qi <yao.qi@linaro.org> + + * amd64-darwin-tdep.c: Include "x86-xstate.h". + (x86_darwin_init_abi_64): Call amd64_target_description. + * amd64-dicos-tdep.c: Likewise. + * amd64-fbsd-nat.c: Likewise. + * amd64-fbsd-tdep.c: Likewise. + * amd64-nbsd-tdep.c: Likewise. + * amd64-obsd-tdep.c: Likewise. + * amd64-sol2-tdep.c: Likewise. + * amd64-windows-tdep.c: Likewise. + * amd64-tdep.h (tdesc_amd64): Remove the declaration. + +2017-09-04 Simon Marchi <simon.marchi@ericsson.com> + + * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove. + (btrace_function) <insn>: Change type to use std::vector. + * btrace.c (ftrace_debug, ftrace_call_num_insn, + ftrace_find_call, ftrace_new_gap, ftrace_update_function, + ftrace_update_insns, ftrace_compute_global_level_offset, + btrace_stitch_bts, btrace_clear, btrace_insn_get, + btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to + change to std::vector. + (ftrace_update_insns): Adjust to change to std::vector, change + type of INSN parameter. + (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns. + * record-btrace.c (btrace_call_history_insn_range, + btrace_compute_src_line_range, + record_btrace_frame_prev_register): Adjust to change to + std::vector. + * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust + to change to std::vector. + +2017-09-03 Tom Tromey <tom@tromey.com> + + * corefile.c (reopen_exec_file): Use std::string. + +2017-09-03 Tom Tromey <tom@tromey.com> + + * compile/compile.c (compile_register_name_mangled): Return + std::string. + * compile/compile-loc2c.c (pushf_register_address): Update. + (pushf_register): Update. + * compile/compile-c-types.c (convert_array): Update. + * compile/compile-c-symbols.c (generate_vla_size): Update. + (error_symbol_once): Use a gdb::unique_xmalloc_ptr. + (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr. + (convert_one_symbol): Update. + (generate_c_for_for_one_variable): Update. + * compile/compile-c-support.c (c_get_range_decl_name): Return a + std::string. + (generate_register_struct): Update. + * compile/compile-internal.h (c_get_range_decl_name): Return a + std::string. + (compile_register_name_mangled): Return std::string. + +2017-09-03 Tom Tromey <tom@tromey.com> + + * utils.c (perror_string): Return a std::string. + (throw_perror_with_name, perror_warning_with_name): Update. + +2017-09-03 Tom Tromey <tom@tromey.com> + + * demangle.c (demangle_command): Use std::string, + unique_xmalloc_ptr. + +2017-09-03 Tom Tromey <tom@tromey.com> + + * cli/cli-setshow.c (do_set_command): Use std::string. + +2017-09-03 Tom Tromey <tom@tromey.com> + + * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr. + +2017-09-03 Tom Tromey <tom@tromey.com> + + * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string. + +2017-09-03 Tom Tromey <tom@tromey.com> + + * mi/mi-cmd-env.c (env_execute_cli_command): Use + gdb::unique_xmalloc_ptr. + +2017-09-03 Tom Tromey <tom@tromey.com> + + * thread.c (print_thread_info_1): Use string_printf. + (thread_apply_command, thread_apply_all_command): Use + std::string. + +2017-09-03 Tom Tromey <tom@tromey.com> + + * valprint.c (val_print_string): Update. + * gdbcore.h (memory_error_message): Return std::string. + * corefile.c (memory_error_message): Return std::string. + (memory_error): Update. + * breakpoint.c (insert_bp_location): Update. + +2017-09-03 Simon Marchi <simon.marchi@ericsson.com> + + * target/waitstatus.h (target_waitstatus_to_string): Change + return type to std::string. + * target/waitstatus.c (target_waitstatus_to_string): Return + std::string. + * target.h (target_waitstatus_to_string): Remove declaration. + * infrun.c (resume, clear_proceed_status_thread, + print_target_wait_results, do_target_wait, save_waitstatus, + stop_all_threads): Adjust. + * record-btrace.c (record_btrace_wait): Adjust. + * target-debug.h + (target_debug_print_struct_target_waitstatus_p): Adjust. + +2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com> + + PR gdb/22046 + * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED + detection. + +2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com> + + * NEWS (Changes since GDB 8.0): Add entry mentioning new support + for setting/unsetting environment variables on the remote target. + (New remote packets): Add entries for QEnvironmentHexEncoded, + QEnvironmentUnset and QEnvironmentReset. + * common/environ.c (gdb_environ::operator=): Extend method to + handle m_user_set_env_list and m_user_unset_env_list. + (gdb_environ::clear): Likewise. + (match_var_in_string): Change type of first parameter from 'char + *' to 'const char *'. + (gdb_environ::set): Extend method to handle + m_user_set_env_list and m_user_unset_env_list. + (gdb_environ::unset): Likewise. + (gdb_environ::clear_user_set_env): New method. + (gdb_environ::user_set_envp): Likewise. + (gdb_environ::user_unset_envp): Likewise. + * common/environ.h (gdb_environ): Handle m_user_set_env_list and + m_user_unset_env_list on move constructor/assignment. + (unset): Add new default parameter 'update_unset_list = true'. + (clear_user_set_env): New method. + (user_set_envp): Likewise. + (user_unset_envp): Likewise. + (m_user_set_env_list): New std::set. + (m_user_unset_env_list): Likewise. + * common/rsp-low.c (hex2str): New function. + (bin2hex): New overload for bin2hex function. + * common/rsp-low.c (hex2str): New prototype. + (str2hex): New overload prototype. + * remote.c: Include "environ.h". Add QEnvironmentHexEncoded, + QEnvironmentUnset and QEnvironmentReset. + (remote_protocol_features): Add QEnvironmentHexEncoded, + QEnvironmentUnset and QEnvironmentReset packets. + (send_environment_packet): New function. + (extended_remote_environment_support): Likewise. + (extended_remote_create_inferior): Call + extended_remote_environment_support. + (_initialize_remote): Add QEnvironmentHexEncoded, + QEnvironmentUnset and QEnvironmentReset packet configs. + * unittests/environ-selftests.c (gdb_selftest_env_var): + New variable. + (test_vector_initialization): New function. + (test_init_from_host_environ): Likewise. + (test_reinit_from_host_environ): Likewise. + (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B): + Likewise. + (test_unset_set_empty_vector): Likewise. + (test_vector_clear): Likewise. + (test_std_move): Likewise. + (test_move_constructor): + (test_self_move): Likewise. + (test_set_unset_reset): Likewise. + (run_tests): Rewrite in terms of the functions above. + +2017-08-31 Weimin Pan <weimin.pan@oracle.com> + + * sparc64-tdep.c (adi_stat_t): Fix comment formatting. + (adi_available): Use a temp variable of type CORE_ADDR as argument + 3 when calling target_auxv_search. + (adi_normalize_address): Use masks and xor operators to calculate + normalized address. + (adi_read_versions, adi_write_versions, adi_print_versions) + (do_examine, do_assign): Use paddress. + +2017-08-29 John Baldwin <jhb@FreeBSD.org> + + * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR. + * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR + out of loop and add supply of FIR. + (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and + add collect of FIR. + +2017-08-28 Simon Marchi <simon.marchi@ericsson.com> + + PR gdb/21827 + * cli/cli-script.c (define_command): Don't convert command name + to lower case. + +2017-08-25 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp". + Update all callers accordingly. Remove all code blocks handling + the case where DISPP is not NULL. + +2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> + + PR symtab/22003 + * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow) + (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) + (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const. + +2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> + + * dwarf2read.c (build_type_psymtabs_reader): New prototype. + (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES. + (read_comp_units_from_section): New parameter abbrev_section, use + read_and_check_comp_unit_head, allocate signatured_type if needed. + (create_all_comp_units): Update read_comp_units_from_section caller. + +2017-08-23 Pedro Alves <palves@redhat.com> + + PR remote/21852 + * remote.c (add_current_inferior_and_thread): Set inferior_ptid + to null_ptid and switch to thread without reading the registers + after adding the inferior. + +2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> + + * NEWS (Changes since GDB 8.0): Add set compile-gcc and show + compile-gcc. + * compile/compile.c (compile_gcc, show_compile_gcc): New. + (compile_to_object): Implement compile_gcc. + (_initialize_compile): Install "set compile-gcc". Initialize + compile_gcc. + +2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> + + * compile/compile.c (compile_to_object): Conditionally call + set_verbose. Conditionally call compile or compile_v0. + +2017-08-07 Weimin Pan <weimin.pan@oracle.com> + + * sparc64-tdep.h: (adi_normalize_address): New export. + * sparc-nat.h: (open_adi_tag_fd): New export. + * sparc64-linux-nat.c: (open_adi_tag_fd): New function. + * sparc64-linux-tdep.c: + (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines. + (sparc64_linux_handle_segmentation_fault): New function. + (sparc64_linux_init_abi): Register + sparc64_linux_handle_segmentation_fault + * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h. + (sparc64_addr_bits_remove): New function. + (sparc64_init_abi): Register sparc64_addr_bits_remove. + (MAX_PROC_NAME_SIZE): New macro. + (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines. + (sparc64adilist): New variable. + (adi_proc_list): New variable. + (find_adi_info): New function. + (add_adi_info): New function. + (get_adi_info_proc): New function. + (get_adi_info): New function. + (info_adi_command): New function. + (read_maps_entry): New function. + (adi_available): New function. + (adi_normalize_address): New function. + (adi_align_address): New function. + (adi_convert_byte_count): New function. + (adi_tag_fd): New function. + (adi_is_addr_mapped): New function. + (adi_read_versions): New function. + (adi_write_versions): New function. + (adi_print_versions): New function. + (do_examine): New function. + (do_assign): New function. + (adi_examine_command): New function. + (adi_assign_command): New function. + (_initialize_sparc64_adi_tdep): New function. + +2017-08-22 Simon Marchi <simon.marchi@ericsson.com> + + * breakpoint.c (breakpoints_info): Rename to ... + (info_breakpoints_command): ... this. + (watchpoints_info): Rename to ... + (info_watchpoints_command): ... this. + (tracepoints_info): Rename to ... + (info_tracepoints_command): ... this. + (_initialize_breakpoint): Adjust. + * dcache.c (dcache_info): Rename to ... + (info_display_command): ... this. + (_initialize_dcache): Adjust. + * frame.h (args_info): Rename to ... + (info_args_command): ... this. + (locals_info): Rename to ... + (info_locals_command): ... this. + * infcmd.c (nofp_registers_info): Rename to ... + (info_registers_command): ... this. + (float_info): Rename to ... + (info_float_command): ... this. + (program_info): Rename to ... + (info_program_command): ... this. + (all_registers_info): Rename to ... + (info_all_registers_command): ... this. + (vector_info): Rename to ... + (info_vector_command): ... this. + (float_info): Rename to ... + (info_float_command): ... this. + (_initialize_infcmd): Adjust. + * inferior.h (term_info): Rename to ... + (info_terminal_command): ... this. + * inflow.c (term_info): Rename to ... + (info_terminal_command): ... this. + (_initialize_inflow): Adjust. + * infrun.c (signals_info): Rename to ... + (info_signals_command): ... this. + (_initialize_infrun): Adjust. + * objc-lang.c (classes_info): Rename to ... + (info_classes_command): ... this. + (selectors_info): Rename to ... + (info_selectors_command): ... this. + (_initialize_objc_language): Adjust. + * printcmd.c (sym_info): Rename to ... + (info_symbol_command): ... this. + (address_info): Rename to ... + (info_address_command): ... this. + (display_info): Rename to ... + (info_display_command): ... this. + (_initialize_printcmd): Adjust. + * reverse.c (bookmarks_info): Rename to ... + (info_breakpoints_command): ... this. + (_initialize_reverse): Adjust. + * ser-go32.c (dos_info): Rename to ... + (info_serial_command): ... this. + (_initialize_ser_dos): Adjust. + * skip.c (skip_info): Rename to ... + (info_skip_command): ... this. + (_initialize_step_skip): Adjust. + * source.c (line_info): Rename to ... + (info_line_command): ... this. + (source_info): Rename to ... + (info_source_command) + * stack.c (frame_info): Rename to ... + (info_frame_command): ... this. + (locals_info): Rename to ... + (info_locals_command): ... this. + (args_info): Rename to ... + (info_args_command): ... this. + (_initialize_stack): Adjust. + * symtab.c (sources_info): Rename to ... + (info_sources_command): ... this. + (variables_info): Rename to ... + (info_variables_command): ... this. + (functions_info): Rename to ... + (info_functions_command): ... this. + (types_info): Rename to ... + (info_types_command): ... this. + (_initialize_symtab): Adjust. + * target.c (target_info): Rename to ... + (info_target_command): ... this. + (initialize_targets): Adjust. + * tracepoint.c (tvariables_info): Rename to ... + (info_tvariables_command): ... this. + (scope_info): Rename to ... + (info_scope_command): ... this. + (trace_dump_actions): Adjust. + (_initialize_tracepoint): Adjust. + +2017-08-22 Tom Tromey <tom@tromey.com> + + * breakpoint.h (install_breakpoint): Update. + * breakpoint.c (add_solib_catchpoint): Update. + (install_breakpoint): Change argument to a std::unique_ptr. + (create_fork_vfork_event_catchpoint): Use std::unique_ptr. + (create_breakpoint_sal, create_breakpoint): Update. + (watch_command_1, catch_exec_command_1) + (strace_marker_create_breakpoints_sal): Use std::unique_ptr. + (add_to_breakpoint_chain): Change argument to a std::unique_ptr. + Return the breakpoint. + (set_raw_breakpoint_without_location, set_raw_breakpoint) + (new_single_step_breakpoint): Update. + * break-catch-throw.c (handle_gnu_v3_exceptions): Use + std::unique_ptr. + * break-catch-syscall.c (create_syscall_event_catchpoint): Use + std::unique_ptr. + * break-catch-sig.c (create_signal_catchpoint): Use + std::unique_ptr. + * ada-lang.c (create_ada_exception_catchpoint): Use + std::unique_ptr. + +2017-08-22 Tom Tromey <tom@tromey.com> + + * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr. + +2017-08-22 Tom Tromey <tom@tromey.com> + + * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr. + (lookup_partial_symbol): Update. + +2017-08-22 Tom Tromey <tom@tromey.com> + + * source.h (rewrite_source_path): Return a unique_xmalloc_ptr. + * source.c (rewrite_source_path): Return a unique_xmalloc_ptr. + (find_and_open_source, symtab_to_fullname): Update. + * psymtab.c (psymtab_to_fullname): Update. + +2017-08-22 Tom Tromey <tom@tromey.com> + + * exec.c (exec_file_attach): Update. + * linux-thread-db.c (try_thread_db_load): Update. + * guile/scm-safe-call.c (gdbscm_safe_source_script): Update. + * utils.c (gdb_realpath): Change return type. + (gdb_realpath_keepfile): Update. + (gdb_realpath_check_trailer, gdb_realpath_tests): New functions. + (_initialize_utils): Register the new self test. + * source.c (openp): Update. + (find_and_open_source): Update. + * nto-tdep.c (nto_find_and_open_solib): Update. + * main.c (set_gdb_data_directory): Update. + (captured_main_1): Update. + * dwarf2read.c (dwarf2_get_dwz_file): Update + (dw2_map_symbol_filenames): Update. + * auto-load.c (auto_load_safe_path_vec_update): Update. + (filename_is_in_auto_load_safe_path_vec): Change type of + "filename_realp". + (auto_load_objfile_script): Update. + (file_is_auto_load_safe): Update. Use std::string. + * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr. + +2017-08-22 Tom Tromey <tom@tromey.com> + + * utils.c (gdb_realpath_keepfile): Return a + gdb::unique_xmalloc_ptr. + * exec.c (exec_file_attach): Update. + * utils.h (gdb_realpath_keepfile): Return a + gdb::unique_xmalloc_ptr. + +2017-08-22 Tom Tromey <tom@tromey.com> + + * compile/compile.c (compile_file_command): Use + gdb::unique_xmalloc_ptr, std::string. + * utils.c (gdb_abspath): Change return type. + * source.c (openp): Update. + * objfiles.c (allocate_objfile): Update. + * main.c (set_gdb_data_directory): Update. + * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr. + +2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com> + + * cli-cmds.c (list_commands): List actual code around more than + one location. + +2017-08-21 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'. + +2017-08-21 Pedro Alves <palves@redhat.com> + + PR gdb/19487 + * c-exp.y (variable production): Handle function aliases. + * minsyms.c (msymbol_is_text): New function. + * minsyms.h (msymbol_is_text): Declare. + * symtab.c (find_function_alias_target): New function. + * symtab.h (find_function_alias_target): Declare. + +2017-08-21 Pedro Alves <palves@redhat.com> + + * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past + typedefs. + * typeprint.c (whatis_exp): If handling "whatis", and expression + is OP_TYPE, strip one typedef level. Otherwise don't strip + typedefs here. + * valops.c (value_cast): Save "to" type before resolving + stubs/typedefs. Use that type as resulting value's type. + +2017-08-18 Tom Tromey <tom@tromey.com> + Pedro Alves <palves@redhat.com> + + * spu-multiarch.c (parse_spufs_run): Use scoped_restore. + * sol-thread.c (sol_thread_resume, sol_thread_wait) + (sol_thread_xfer_partial, rw_common): Use scoped_restore. + * procfs.c (procfs_do_thread_registers): Use scoped_restore. + * proc-service.c (ps_xfer_memory): Use scoped_restore. + * linux-tdep.c (linux_corefile_thread): Remove a cleanup. + (linux_get_siginfo_data): Add "thread" argument. Use + scoped_restore. + * linux-nat.c (linux_child_follow_fork) + (check_stopped_by_watchpoint): Use scoped_restore. + * infrun.c (displaced_step_prepare_throw, write_memory_ptid) + (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore. + (restore_inferior_ptid, save_inferior_ptid): Remove. + * btrace.c (btrace_fetch): Use scoped_restore. + * bsd-uthread.c (bsd_uthread_fetch_registers) + (bsd_uthread_store_registers): Use scoped_restore. + * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use + scoped_restore. + * aix-thread.c (aix_thread_resume, aix_thread_wait) + (aix_thread_xfer_partial): Use scoped_restore. + * inferior.h (save_inferior_ptid): Remove. + +2017-08-18 Yao Qi <yao.qi@linaro.org> + + PR tdep/21818 + * arm-tdep.c (gdb_print_insn_arm): Mark + USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL. + +2017-08-18 Yao Qi <yao.qi@linaro.org> + + * NEWS: Mention GDBserver's new option "--selftest". + * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c. + * selftest.c: Move it to common/selftest.c. + * selftest.h: Move it to common/selftest.h. + * selftest-arch.c (reset): New function. + (tests_with_arch): Call reset. + +2017-08-18 Yao Qi <yao.qi@linaro.org> + + * selftest.c (run_tests): Don't call QUIT. Call debug_printf + instead of exception_fprintf and printf_filtered. + +2017-08-18 Yao Qi <yao.qi@linaro.org> + + * selftest.c (register_self_test): Rename it to + selftests::register_test. + (run_self_tests): selftest::run_tests. + * selftest.h: Update declarations. + * selftest-arch.c (register_self_test_foreach_arch): Rename it to + selftests::register_test_foreach_arch. + * selftest-arch.h: Update declaration. + * aarch64-tdep.c: Update. + * arm-tdep.c: Likewise. + * disasm-selftests.c: Likewise. + * dwarf2loc.c: Likewise. + * dwarf2-frame.c: Likewise. + * findvar.c: Likewise. + * gdbarch-selftests.c: Likewise. + * maint.c (maintenance_selftest): Likewise. + * regcache.c: Likewise. + * rust-exp.y: Likewise. + * selftest-arch.c: Likewise. + * unittests/environ-selftests.c: Likewise. + * unittests/function-view-selftests.c: Likewise. + * unittests/offset-type-selftests.c: Likewise. + * unittests/optional-selftests.c: Likewise. + * unittests/scoped_restore-selftests.c: Likewise. + * utils-selftests.c: Likewise. + +2017-08-17 Pedro Alves <palves@redhat.com> + + * cli/cli-cmds.c (source_command): Delete 'old_source_verbose' + local. + +2017-08-17 Pedro Alves <palves@redhat.com> + + * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New + field. + (reset_die_in_process): Delete, replaced by ... + (process_die_scope): ... this new class. Make it responsible for + freeing cu->line_header too. + (process_die): Use process_die_scope. + (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in + cu->line_header_die_owner. Don't release the line header if it's + owned by the CU. + (setup_type_unit_groups): Make the CU/DIE own the line header. + Don't release the line header here. + +2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change) + + * elfread.c (elf_read_minimal_symbols): xfree synthsyms. + +2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com> + + * NEWS: Mention new shortcuts for nexti and stepi in TUI + Single-Key mode + +2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com> + + * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key + mode command list. + +2017-08-15 Stafford Horne <shorne@gmail.com> + + * MAINTAINERS (Write After Approval): Add Stafford Horne. + +2017-08-15 Stafford Horne <shorne@gmail.com> + + * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname. + +2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com> + + PR gdb/21954 + * infcmd.c (unset_environment_command): Use the 'clear' method on + the environment instead of resetting it. + +2017-08-15 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian + platforms. + +2017-08-14 Tom Tromey <tom@tromey.com> + + * valprint.c (print_octal_chars): Use HOST_CHAR_BIT. + (print_binary_chars): Likewise. + (BITS_IN_BYTES): Remove. + +2017-08-14 Tom Tromey <tom@tromey.com> + + PR gdb/21675 + * valprint.c (LOW_ZERO): Change value to 034. + (print_octal_chars): Add static_asserts for octal constants. + * printcmd.c (print_scalar_formatted): Add 'd' case. + +2017-08-11 Tom Tromey <tom@tromey.com> + + * symfile.c (add_symbol_file_command): Use std::vector. + +2017-08-14 Tom Tromey <tom@tromey.com> + + * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. + * break-catch-syscall.c (create_syscall_event_catchpoint): Use + std::move. + * break-catch-sig.c (create_signal_catchpoint): Use std::move. + +2017-08-11 Pedro Alves <palves@redhat.com> + + * infrun.c (process_event_stop_test): Adjust + function_name_is_marked_for_skip call. + * skip.c: Include <list>. + (skiplist_entry): Make it a class with private fields, and + getters/setters. + (skiplist_entry_chain): Delete. + (skiplist_entries): New. + (skiplist_entry_count): Delete. + (highest_skiplist_entry_num): New. + (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete. + (add_skiplist_entry): Delete. + (skiplist_entry::skiplist_entry): New. + (skiplist_entry::add_entry): New. + (skip_file_command, skip_function): Adjust. + (compile_skip_regexp): Delete. + (skip_command): Don't compile regexp here. Adjust to use + skiplist_entry::add_entry. + (skip_info): Adjust to use range-for and getters. + (skip_enable_command, skip_disable_command): Adjust to use + range-for and setters. + (skip_delete_command): Adjust to use std::list. + (add_skiplist_entry): Delete. + (skip_file_p): Delete, refactored as ... + (skiplist_entry::do_skip_file_p): ... this new method. + (skip_gfile_p): Delete, refactored as ... + (skiplist_entry::do_gskip_file_p): ... this new method. + (skip_function_p, skip_rfunction_p): Delete, refactored as ... + (skiplist_entry::skip_function_p): ... this new method. + (function_name_is_marked_for_skip): Now returns bool, and takes + the function sal by const reference. Adjust to use range-for and + skiplist_entry methods. + (_initialize_step_skip): Remove references to + skiplist_entry_chain, skiplist_entry_count. + * skip.h (function_name_is_marked_for_skip): Now returns bool, and + takes the function sal by const reference. + +2017-08-11 Yao Qi <yao.qi@linaro.org> + + * dwarf2-frame.c (clear_pointer_cleanup): Remove. + (dwarf2_frame_cache): Remove reset_cache_cleanup. + (dwarf2_frame_cache): + * frame-unwind.c (frame_unwind_try_unwinder): Catch + RETURN_MASK_ALL and set *this_case to NULL. + * frame-unwind.h: Update comments. + +2017-08-11 Yao Qi <yao.qi@linaro.org> + + * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove. + (dwarf2_frame_state_copy_regs): Remove. + (dwarf2_frame_state_free_regs): Remove. + (dwarf2_frame_state::~dwarf2_frame_state): Remove. + (dwarf2_restore_rule): Call method .alloc_regs instead of + dwarf2_frame_state_alloc_regs. + (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info + constructor. Call std::move. + (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs. + (dwarf2_frame_cache): Likewise. + + [GDB_SELF_TEST]: Include selftest.h and + selftest-arch.h. + [GDB_SELF_TEST] (execute_cfa_program_test): New function. + (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register + execute_cfa_program_test. + + * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor, + copy ctor, assignment operator, move assignment. + <alloc_regs>: New method. + <swap>: New method. + (struct dwarf2_frame_state): Delete dtor. + (dwarf2_frame_state_alloc_regs): Remove declaration. + * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call + dwarf2_frame_state_alloc_regs, use .alloc_regs instead. + +2017-08-11 Yao Qi <yao.qi@linaro.org> + + * dwarf2-frame.c (dwarf2_frame_state_free): Remove. + (dwarf2_frame_state::dwarf2_frame_state): New. + (dwarf2_frame_state::~dwarf2_frame_state): New. + (dwarf2_fetch_cfa_info): Update. + (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object + rather than a pointer. Update code. + * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and + dtor. + <data_align, code_align, retaddr_column>: Change them to const. + <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them + to bool. + +2017-08-11 Yao Qi <yao.qi@linaro.org> + + * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove. + <loc.exp>: New field. + * dwarf2-frame.c (execute_cfa_program): Update. + (dwarf2_frame_prev_register): Update. + +2017-08-10 Pedro Alves <palves@redhat.com> + + * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define. + +2017-08-09 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c (struct fbsd_fork_info): Remove. + (fbsd_pending_children): Use std::list. + (fbsd_remember_child): Likewise. + (fbsd_is_child_pending): Likewise. + (fbsd_pending_vfork_done): Use std::forward_list. + (fbsd_add_vfork_done): Likewise. + (fbsd_is_vfork_done_pending): Likewise. + (fbsd_next_vfork_done): Likewise. + +2017-08-09 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New. + (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr. + [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string + for `mapfilename'. + (fbsd_xfer_partial): Use gdb::byte_vector. + (fbsd_add_threads): Use gdb::unique_xmalloc_ptr. + +2017-08-09 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and + "filestuff.h". + (fbsd_find_memory_regions): Fix `mapfile' initialization. + +2017-08-09 Tom Tromey <tom@tromey.com> + + * skip.c (skiplist_entry): New constructor. + (skiplist_entry::enabled, skiplist_entry::function_is_regexp) + (skiplist_entry::file_is_glob): Now bool. + (skiplist_entry::file, skiplist_entry::function): Now + std::string. + (make_skip_entry): Return a unique_ptr. Use new. + (free_skiplist_entry, free_skiplist_entry_cleanup) + (make_free_skiplist_entry_cleanup): Remove. + (skip_command, skip_disable_command, add_skiplist_entry) + (skip_form_bytes, compile_skip_regexp, skip_command, skip_info) + (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p) + (function_name_is_marked_for_skip): Update. + (skip_delete_command): Update. Use delete. + +2017-08-09 Jiong Wang <jiong.wang@arm.com> + + * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h". + (aarch64_linux_core_read_description): New function. + (aarch64_linux_init_abi): Register gdbarch_core_read_description. + +2017-08-09 Pedro Alves <palves@redhat.com> + + * cp-name-parser.y (cp_comp_to_string): Return a + gdb::unique_xmalloc_ptr<char>. + * cp-support.c (replace_typedefs_qualified_name) + (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>. + (cp_canonicalize_string_full): Use op= instead of explicit + convertion. + (cp_class_name_from_physname, method_name_from_physname) + (cp_func_name, cp_remove_params): Adjust to use + gdb::unique_xmalloc_ptr<char>. + * cp-support.h (cp_comp_to_string): Return a + gdb::unique_xmalloc_ptr<char>. + * python/py-type.c (typy_lookup_type): Adjust to use + gdb::unique_xmalloc_ptr<char>. + +2017-08-09 H.J. Lu <hongjiu.lu@intel.com> + + * dwarf2read.c (dwarf2_string_attr): Fix a typo. + +2017-08-09 Alex Lindsay <alexlindsay239@gmail.com> + Yao Qi <yao.qi@linaro.org> + + * cp-support.c (cp_canonicalize_string_full): Use + gdb::unique_xmalloc_ptr<char>. + (cp_canonicalize_string): Likewise. + +2017-08-09 Yao Qi <yao.qi@linaro.org> + + * features/Makefile (WHICH): Remove i386/ non-linux stuff. + * regformats/i386/amd64-avx-avx512.dat: Remove. + * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove. + * regformats/i386/amd64-avx-mpx.dat:Remove. + * regformats/i386/amd64-avx.dat: Remove. + * regformats/i386/amd64-mpx.dat: Remove. + * regformats/i386/i386-avx-avx512.dat: Remove. + * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove. + * regformats/i386/i386-avx-mpx.dat: Remove. + * regformats/i386/i386-mmx.dat: Remove. + * regformats/i386/i386-mpx.dat: Remove. + +2017-08-09 Yao Qi <yao.qi@linaro.org> + + * amd64-tdep.h (tdesc_x32): Remove the declaration. + * amd64-tdep.c: Don't include features/i386/x32*.c. + (_initialize_amd64_tdep): Don't call initialize_tdesc_x32* + functions. + * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx, + and i386/x32-avx-avx512. + (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml, + and i386/x32.xml. + * features/i386/x32-avx-avx512.c: Removed. + * features/i386/x32-avx-avx512.xml: Removed. + * features/i386/x32-avx.c: Removed. + * features/i386/x32-avx.xml: Removed. + * features/i386/x32.c: Removed. + * features/i386/x32.xml: Removed. + * regformats/i386/x32-avx-avx512.dat: Removed. + * regformats/i386/x32-avx.dat: Removed. + * regformats/i386/x32.dat: Removed. + +2017-08-07 Maciej W. Rozycki <macro@imgtec.com> + + PR breakpoints/21886 + * mem-break.c (default_memory_insert_breakpoint): Use + `->placed_address' rather than `->reqstd_address' for the + breakpoint location. + +2017-08-07 Maciej W. Rozycki <macro@imgtec.com> + + * arch-utils.c (default_print_insn): Remove arch/mach/endian + assertions. + +2017-08-07 Maciej W. Rozycki <macro@imgtec.com> + + * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with + a union of `tdep_info', `tdesc_data' and `id'. + * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data' + rather than `info.tdep_info'. + * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise. + * i386-linux-tdep.c (i386_linux_init_abi): Likewise. + * i386-tdep.c (i386_gdbarch_init): Likewise. + * mips-linux-tdep.c (mips_linux_init_abi): Likewise. + * mips-tdep.c (mips_gdbarch_init): Likewise. + * nds32-tdep.c (nds32_gdbarch_init): Likewise. + * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. + * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than + `info.tdep_info'. + (ppc_linux_init_abi): Use `info.tdesc_data' rather than + `info.tdep_info'. + * sparc-tdep.c (sparc32_gdbarch_init): Likewise. + * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than + `info.tdep_info'. + * spu-tdep.c (spu_gdbarch_init): Likewise. + * gdbarch.h: Regenerate. + +2017-08-07 Leszek Swirski <leszeks@google.com> + + PR symtab/20899 + * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt. + +2017-08-07 Simon Marchi <simon.marchi@ericsson.com> + + * remote-sim.c (gdbsim_load): Remove char **argv local variable. + (gdbsim_open): Rename gdb_argv args object to argv. + +2017-08-05 Tom Tromey <tom@tromey.com> + + * compile/compile-object-load.c (compile_object_load): Use + gdb::unique_xmalloc_ptr. + * cli/cli-dump.c (scan_filename): Rename from + scan_filename_with_cleanup. Change return type. + (scan_expression): Rename from scan_expression_with_cleanup. + Change return type. + (dump_memory_to_file, dump_value_to_file, restore_command): + Use gdb::unique_xmalloc_ptr. Update. + * cli/cli-cmds.c (find_and_open_script): Use + gdb::unique_xmalloc_ptr. + * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr. + * symmisc.c (maintenance_print_symbols) + (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr. + * symfile.c (symfile_bfd_open, generic_load) + (add_symbol_file_command, remove_symbol_file_command): Use + gdb::unique_xmalloc_ptr. + * source.c (openp): Use gdb::unique_xmalloc_ptr. + * psymtab.c (maintenance_print_psymbols): Use + gdb::unique_xmalloc_ptr. + * corelow.c (core_open): Use gdb::unique_xmalloc_ptr. + * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr. + * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr. + (reload_shared_libraries_1): Likewise. + +2017-08-05 Tom Tromey <tom@tromey.com> + + * rust-exp.y (rust_op_ptr, set_field): Remove typedefs. + (rust_op_vector, rust_set_vector): New typedefs. + (current_parser): New global. + (work_obstack): Change to pointer type. Update all users. + (rust_ast, pstate): Remove globals. + (struct rust_parser): New. + (%union) <params, field_inits>: Change type. + (start, tuple_expr, unit_expr, struct_expr_list, literal) + (field_expr, expr_list, maybe_expr_list, type_list): Update. + (ast_call_ish, ast_path, ast_function_type, ast_tuple_type) + (convert_params_to_types, convert_params_to_expression): Change + type of "params". + (ast_string): Change type of "fields". + (rust_parse): Make a rust_parser. Remove cleanups. + (rust_lex_tests): Make and install an auto_obstack. + +2017-08-04 Yao Qi <yao.qi@linaro.org> + + * configure.srv (ipa_x32_linux_regobj): New. + * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512 + instead of X86_TDESC_AVX512. + (initialize_low_tracepoint): Call + init_registers_x32_avx_avx512_linux. + +2017-08-04 Yao Qi <yao.qi@linaro.org> + + * utils.h (gdb_argv): Add namespace std for nullptr_t. + +2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com> + + * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv): + Remove. + * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * python/py-param.c (compute_enum_values): Use gdb_argv. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * utils.h (struct gdb_argv_deleter): New. + (gdb_argv): New class. + * utils.c (gdb_argv::reset): New method. + * tracepoint.c (delete_trace_variable_command): Use gdb_argv. + * tracefile.c (tsave_command): Use gdb_argv. + * top.c (new_ui_command): Use gdb_argv. + * symmisc.c (maintenance_print_symbols) + (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv. + * symfile.c (symbol_file_command, generic_load) + (remove_symbol_file_command): Use gdb_argv. + * stack.c (backtrace_command): Use gdb_argv. + * source.c (add_path, show_substitute_path_command) + (unset_substitute_path_command, set_substitute_path_command): + Use gdb_argv. + * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv. + * ser-mingw.c (pipe_windows_open): Use gdb_argv. + * remote.c (extended_remote_run, remote_put_command) + (remote_get_command, remote_delete_command): Use gdb_argv. + * remote-sim.c (gdbsim_load, gdbsim_create_inferior) + (gdbsim_open): Use gdb_argv. + * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv. + * psymtab.c (maintenance_print_psymbols): Use gdb_argv. + * procfs.c (procfs_info_proc): Use gdb_argv. + * interps.c (interpreter_exec_cmd): Use gdb_argv. + * infrun.c (handle_command): Use gdb_argv. + * inferior.c (add_inferior_command, clone_inferior_command): + Use gdb_argv. + * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv. + * exec.c (exec_file_command): Use gdb_argv. + * cli/cli-cmds.c (alias_command): Use gdb_argv. + * compile/compile.c (build_argc_argv): Use gdb_argv. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * python/python.c (compute_python_string): Return std::string. + (gdbpy_eval_from_control_command): Update. + (do_start_initialization): Use std::string. + * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not + xstrprintf. + * python/py-breakpoint.c (local_setattro): Use string_printf, not + xstrprintf. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * top.h (do_restore_instream_cleanup): Remove. + * top.c (do_restore_instream_cleanup): Remove. + (read_command_file): Use scoped_restore. + * cli/cli-script.c (execute_user_command): Use scoped_restore. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * cli/cli-script.c (execute_user_command) + (execute_control_command): Use scoped_restore. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * cli/cli-script.c (do_restore_user_call_depth): Remove. + (execute_user_command): Remove user_call_depth; use + user_args_stack's size instead. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * top.h (in_user_command): Remove. + * top.c (in_user_command): Remove. + * cli/cli-script.c (do_restore_user_call_depth) + (execute_user_command): Update. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * valops.c (search_struct_method): Use gdb::byte_vector. + * valarith.c (value_concat): Use std::vector. + * target.c (memory_xfer_partial): Use gdb::byte_vector. + (simple_search_memory): Likewise. + * printcmd.c (find_string_backward): Use gdb::byte_vector. + * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector. + * gcore.c (gcore_copy_callback): Use gdb::byte_vector. + * elfread.c (elf_rel_plt_read): Use std::string. + * cp-valprint.c (cp_print_value): Use gdb::byte_vector. + * cli/cli-dump.c (restore_section_callback): Use + gdb::byte_vector. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * tui/tui-regs.c (tui_restore_gdbout): Remove. + (tui_register_format): Use scoped_restore. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * reverse.c (exec_direction_default): Remove. + (exec_reverse_once): Use scoped_restore. + * remote.c (restore_remote_timeout): Remove. + (remote_flash_erase, remote_flash_write, remote_flash_done) + (readchar, remote_serial_write): Use scoped_restore. + * cli/cli-script.c (struct source_cleanup_lines_args) + (source_cleanup_lines): Remove. + (script_from_file): Use scoped_restore. + * cli/cli-cmds.c (source_verbose_cleanup): Remove. + (source_command): Use scoped_restore. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * utils.h (make_cleanup_free_so): Remove. + * utils.c (do_free_so, make_cleanup_free_so): Remove. + * solist.h (struct so_deleter): New. + (so_list_up): New typedef. + * solib-svr4.c (svr4_read_so_list): Use so_list_up. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * utils.h (make_cleanup_restore_current_language): Remove. + * utils.c (do_restore_current_language) + (make_cleanup_restore_current_language): Remove. + * parse.c (parse_exp_in_context_1) + (parse_expression_with_language): Use + scoped_restore_current_language. + * mi/mi-main.c (mi_cmd_execute): Use + scoped_restore_current_language. + * language.h (scoped_restore_current_language): New class. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * compile/compile.c (cleanup_unlink_file): Remove. + (compile_to_object): Use gdb::unlinker. + (eval_compile_command): Likewise. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * utils.h (make_cleanup_fclose): Remove. + * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * top.c (open_terminal_stream): Return gdb_file_up. + (new_ui_command): Update. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * source.c (print_source_lines_base, forward_search_command) + (reverse_search_command): Use gdb_file_up. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * fbsd-nat.c (fbsd_find_memory_regions): Update. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * cli/cli-cmds.c (find_and_open_script): Change return type. + Remove "streamp" and "full_path" parameters. + (source_script_with_search): Update. + * auto-load.c (source_script_file): Update. + * cli/cli-cmds.h (find_and_open_script): Change type. + (open_script): New struct. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * xml-support.c (xml_fetch_content_from_file): Update. + * ui-file.c (stdio_file::open): Update. + * tracefile-tfile.c (tfile_start): Update. + * remote.c (remote_file_put, remote_file_get): Update. + * nat/linux-procfs.c (linux_proc_get_int) + (linux_proc_pid_get_state, linux_proc_tid_get_name): Update. + * nat/linux-osdata.c (linux_common_core_of_thread): Update. + (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus) + (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem) + (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update. + * nat/linux-btrace.c (linux_determine_kernel_start): Update. + * linux-nat.c (linux_proc_pending_signals): Update. + * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up. + (file_closer): Remove. + * compile/compile.c (compile_to_object): Update. + * common/filestuff.h (struct gdb_file_deleter): New. + (gdb_file_up): New typedef. + (gdb_fopen_cloexec): Change return type. + * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up. + * cli/cli-dump.c (fopen_with_cleanup): Remove. + (dump_binary_file, restore_binary_file): Update. + * auto-load.c (auto_load_objfile_script_1): Update. + +2017-08-03 Tom Tromey <tom@tromey.com> + + * tracepoint.c (tvariables_info_1): Use ui_out_emit_table. + (info_static_tracepoint_markers_command): Likewise. + * solib.c (info_sharedlibrary_command): Use ui_out_emit_table. + * skip.c (skip_info): Use ui_out_emit_table. + * progspace.c (print_program_space): Use ui_out_emit_table. + * osdata.c (info_osdata): Use ui_out_emit_table. + * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use + ui_out_emit_table. + * linux-thread-db.c (info_auto_load_libthread_db): Use + ui_out_emit_table. + * inferior.c (print_inferior): Use ui_out_emit_table. + * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table. + * breakpoint.c (breakpoint_1): Use ui_out_emit_table. + * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table. + * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table. + * ui-out.h (class ui_out_emit_table): New. + +2017-08-02 Maciej W. Rozycki <macro@imgtec.com> + + * mips-tdep.c (mips_fpu_type_str): New function. + (mips_dump_tdep): Call it. + +2017-08-01 Maciej W. Rozycki <macro@imgtec.com> + + * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access + `->mips_fpu_type'. + +2017-07-31 Xavier Roirand <roirand@adacore.com> + + * solib-darwin.c (DYLD_VERSION_MAX): Increase value. + +2017-07-27 Xavier Roirand <roirand@adacore.com> + + * MAINTAINERS (Write After Approval): Add Xavier Roirand. + +2017-07-26 Yao Qi <yao.qi@linaro.org> + + * cli/cli-cmds.c (maintenancechecklist): New variable. + * gdbcmd.h (maintenancechecklist): Declare it. + * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]: + Call i386_linux_read_description with different masks. + * maint.c (maintenance_check_command): New function. + (_initialize_maint_cmds): Call add_prefix_cmd. + * target-descriptions.c (tdesc_reg): override operator != and ==. + (tdesc_type): Likewise. + (tdesc_feature): Likewise. + (target_desc): Likewise. + [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function. + (maintenance_check_xml_descriptions): New function. + (_initialize_target_descriptions) Add command "xml-descriptions". + * target-descriptions.h (selftests::record_xml_tdesc): Declare. + +2017-07-26 Yao Qi <yao.qi@linaro.org> + + * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c. + Include features/i386/32bit-*.c. + (i386_linux_read_description): Generate target description if it + doesn't exist. + (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386 + functions. + * features/i386/32bit-linux.c: Re-generated. + * features/i386/32bit-sse.c: Likewise. + * target-descriptions.c (print_c_feature::visit): Print code to + set register number if needed. + (print_c_feature) <m_next_regnum>: New field. + +2017-07-26 Yao Qi <yao.qi@linaro.org> + + * features/Makefile (CFILES): Rename with TDESC_CFILES. + (FEATURE_XMLFILES): New. + (FEATURE_CFILES): New. + New rules. + (clean-cfiles): Remove generated c files. + * features/i386/32bit-avx.c: Generated. + * features/i386/32bit-avx512.c: Generated. + * features/i386/32bit-core.c: Generated. + * features/i386/32bit-linux.c: Generated. + * features/i386/32bit-mpx.c: Generated. + * features/i386/32bit-pkeys.c: Generated. + * features/i386/32bit-sse.c: Generated. + * target-descriptions.c: Include algorithm. + (tdesc_element_visitor): Add method visit_end. + (print_c_tdesc): Implement visit_end. + (print_c_tdesc:: m_filename_after_features): Move it to + protected. + (print_c_feature): New class. + (maint_print_c_tdesc_cmd): Use print_c_feature if XML file + name starts with "i386/32bit-". + +2017-07-26 Yao Qi <yao.qi@linaro.org> + + * target-descriptions.c (tdesc_element_visitor): New class. + (tdesc_element): New class. + (tdesc_reg): Inherit from tdesc_element. + (tdesc_reg::accept): New function. + (tdesc_type): Inherit from tdesc_element. + (tdesc_type::accept): New function. + (tdesc_feature): Inherit from tdesc_element. + (tdesc_feature::accept): New function. + (target_desc): Inherit from tdesc_element. + (target_desc::target_desc): New. + (target_desc::~target_desc): New. + (target_desc::accept): New. + (allocate_target_description): Use new. + (free_target_description): Use delete. + (print_c_tdesc): New class. + (maint_print_c_tdesc_cmd): Adjust. + + * features/aarch64.c: Re-generated. + * features/arc-arcompact.c: Re-generated. + * features/arc-v2.c: Re-generated. + * features/arm/arm-with-iwmmxt.c: Re-generated. + * features/arm/arm-with-m.c: Re-generated. + * features/arm/arm-with-m-fpa-layout.c: Re-generated. + * features/arm/arm-with-m-vfp-d16.c: Re-generated. + * features/arm/arm-with-neon.c: Re-generated. + * features/arm/arm-with-vfpv2.c: Re-generated. + * features/arm/arm-with-vfpv3.c: Re-generated. + * features/i386/amd64-avx-avx512.c: Re-generated. + * features/i386/amd64-avx-avx512-linux.c: Re-generated. + * features/i386/amd64-avx.c: Re-generated. + * features/i386/amd64-avx-linux.c: Re-generated. + * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated. + * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. + * features/i386/amd64-avx-mpx.c: Re-generated. + * features/i386/amd64-avx-mpx-linux.c: Re-generated. + * features/i386/amd64.c: Re-generated. + * features/i386/amd64-linux.c: Re-generated. + * features/i386/amd64-mpx.c: Re-generated. + * features/i386/amd64-mpx-linux.c: Re-generated. + * features/i386/i386-avx-avx512.c: Re-generated. + * features/i386/i386-avx-avx512-linux.c: Re-generated. + * features/i386/i386-avx.c: Re-generated. + * features/i386/i386-avx-linux.c: Re-generated. + * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated. + * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated. + * features/i386/i386-avx-mpx.c: Re-generated. + * features/i386/i386-avx-mpx-linux.c: Re-generated. + * features/i386/i386.c: Re-generated. + * features/i386/i386-linux.c: Re-generated. + * features/i386/i386-mmx.c: Re-generated. + * features/i386/i386-mmx-linux.c: Re-generated. + * features/i386/i386-mpx.c: Re-generated. + * features/i386/i386-mpx-linux.c: Re-generated. + * features/i386/x32-avx-avx512.c: Re-generated. + * features/i386/x32-avx-avx512-linux.c: Re-generated. + * features/i386/x32-avx.c: Re-generated. + * features/i386/x32-avx-linux.c: Re-generated. + * features/i386/x32.c: Re-generated. + * features/i386/x32-linux.c: Re-generated. + * features/microblaze.c: Re-generated. + * features/microblaze-with-stack-protect.c: Re-generated. + * features/mips64-dsp-linux.c: Re-generated. + * features/mips64-linux.c: Re-generated. + * features/mips-dsp-linux.c: Re-generated. + * features/mips-linux.c: Re-generated. + * features/nds32.c: Re-generated. + * features/nios2.c: Re-generated. + * features/nios2-linux.c: Re-generated. + * features/rs6000/powerpc-32.c: Re-generated. + * features/rs6000/powerpc-32l.c: Re-generated. + * features/rs6000/powerpc-403.c: Re-generated. + * features/rs6000/powerpc-403gc.c : Re-generated. + * features/rs6000/powerpc-405.c: Re-generated. + * features/rs6000/powerpc-505.c: Re-generated. + * features/rs6000/powerpc-601.c: Re-generated. + * features/rs6000/powerpc-602.c: Re-generated. + * features/rs6000/powerpc-603.c: Re-generated. + * features/rs6000/powerpc-604.c: Re-generated. + * features/rs6000/powerpc-64.c: Re-generated. + * features/rs6000/powerpc-64l.c: Re-generated. + * features/rs6000/powerpc-7400.c: Re-generated. + * features/rs6000/powerpc-750.c: Re-generated. + * features/rs6000/powerpc-860.c: Re-generated. + * features/rs6000/powerpc-altivec32.c: Re-generated. + * features/rs6000/powerpc-altivec32l.c: Re-generated. + * features/rs6000/powerpc-altivec64.c: Re-generated. + * features/rs6000/powerpc-altivec64l.c: Re-generated. + * features/rs6000/powerpc-cell32l.c: Re-generated. + * features/rs6000/powerpc-cell64l.c: Re-generated. + * features/rs6000/powerpc-e500.c: Re-generated. + * features/rs6000/powerpc-e500l.c: Re-generated. + * features/rs6000/powerpc-isa205-32l.c: Re-generated. + * features/rs6000/powerpc-isa205-64l.c: Re-generated. + * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated. + * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated. + * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated. + * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated. + * features/rs6000/powerpc-vsx32.c: Re-generated. + * features/rs6000/powerpc-vsx32l.c: Re-generated. + * features/rs6000/powerpc-vsx64.c: Re-generated. + * features/rs6000/powerpc-vsx64l.c: Re-generated. + * features/rs6000/rs6000.c: Re-generated. + * features/s390-linux32.c: Re-generated. + * features/s390-linux32v1.c: Re-generated. + * features/s390-linux32v2.c: Re-generated. + * features/s390-linux64.c: Re-generated. + * features/s390-linux64v1.c: Re-generated. + * features/s390-linux64v2.c: Re-generated. + * features/s390-te-linux64.c: Re-generated. + * features/s390-tevx-linux64.c: Re-generated. + * features/s390-vx-linux64.c: Re-generated. + * features/s390x-linux64.c: Re-generated. + * features/s390x-linux64v1.c: Re-generated. + * features/s390x-linux64v2.c: Re-generated. + * features/s390x-te-linux64.c: Re-generated. + * features/s390x-tevx-linux64.c: Re-generated. + * features/s390x-vx-linux64.c: Re-generated. + * features/sparc/sparc32-solaris.c: Re-generated. + * features/sparc/sparc64-solaris.c: Re-generated. + * features/tic6x-c62x.c: Re-generated. + * features/tic6x-c62x-linux.c: Re-generated. + * features/tic6x-c64x.c: Re-generated. + * features/tic6x-c64x-linux.c: Re-generated. + * features/tic6x-c64xp.c: Re-generated. + * features/tic6x-c64xp-linux.c: Re-generated. + +2017-07-26 Yao Qi <yao.qi@linaro.org> + + * i386-linux-tdep.c (i386_linux_read_description): New function. + (i386_linux_core_read_description): Call + i386_linux_read_description. + * i386-linux-tdep.h (i386_linux_read_description): Declare. + (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations. + (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise + (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise. + (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise. + * x86-linux-nat.c (x86_linux_read_description): Call + i386_linux_read_description. + +2017-07-26 Yao Qi <yao.qi@linaro.org> + + * NEWS: Mention it. + * features/Makefile (%.c: %.xml): Pass the xml file name to + command "maint print c-tdesc". + * target-descriptions.c (maint_print_c_tdesc_cmd): Get file + name from 'arg'. + +2017-07-26 Yao Qi <yao.qi@linaro.org> + + * target-descriptions.c (target_desc): Add ctor and dtor. Do + in-class initialization. + (tdesc_create_feature): Call new instead of XCNEW. + (free_target_description): Ue delete. + +2017-07-25 John Baldwin <jhb@FreeBSD.org> + + * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo. + +2017-07-25 Yao Qi <yao.qi@linaro.org> + + * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc + constant. + (amd64_x32_init_abi): Likewise. + * amd64-tdep.h (amd64_init_abi): Update declaration. + (amd64_x32_init_abi): Likewise. + +2017-07-25 Yao Qi <yao.qi@linaro.org> + + PR tdep/21717 + * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update + condition for FPSCR. + (arm_linux_store_inferior_registers): Likewise. + +2017-07-22 Tom Tromey <tom@tromey.com> + + * break-catch-syscall.c (struct catch_syscall_inferior_data) + <syscalls_counts>: Now a std::vector. + (get_catch_syscall_inferior_data): Use "new". + (catch_syscall_inferior_data_cleanup): Use "delete". + (insert_catch_syscall, remove_catch_syscall) + (clear_syscall_counts): Update. + +2017-07-22 Tom Tromey <tom@tromey.com> + + * break-catch-syscall.c (syscall_catchpoint) + <syscalls_to_be_caught>: Now a std::vector<int> + (~syscall_catchpoint): Remove. + (insert_catch_syscall, remove_catch_syscall) + (breakpoint_hit_catch_syscall, print_one_catch_syscall) + (print_mention_catch_syscall, print_recreate_catch_syscall): + Update. + (create_syscall_event_catchpoint): Change type of "filter" + parameter. + (catch_syscall_split_args): Return a std::vector. + (catch_syscall_command_1, catching_syscall_number_1): Update. + +2017-07-22 Tom Tromey <tom@tromey.com> + + * break-catch-throw.c (struct exception_catchpoint) + <exception_rx>: Now a std::string. + (~exception_catchpoint): Remove. + (print_one_detail_exception_catchpoint): Update. + (handle_gnu_v3_exceptions): Change type of except_rx. + (extract_exception_regexp): Return a std::string. + (catch_exception_command_1): Update. + +2017-07-22 Tom Tromey <tom@tromey.com> + + * break-catch-sig.c (gdb_signal_type): Remove typedef. + (struct signal_catchpoint) <signals_to_be_caught>: Now a + std::vector. + <catch_all>: Now a bool. + (~signal_catchpoint): Remove. + (signal_catchpoint_insert_location) + (signal_catchpoint_remove_location) + (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one) + (signal_catchpoint_print_mention) + (signal_catchpoint_print_recreate) + (signal_catchpoint_explains_signal): Update. + (create_signal_catchpoint): Change type of "filter" and + "catch_all". + (catch_signal_split_args): Return a std::vector. Change type of + "catch_all". + (catch_signal_command): Update. + +2017-07-20 Pedro Alves <palves@redhat.com> + + * ada-lang.c (ada_language_defn): Make extern. + (_initialize_ada_language): Remove add_language call. + * c-lang.c (c_language_defn, cplus_language_defn) + (asm_language_defn, minimal_language_defn): Make extern. + (_initialize_c_language): Delete. + * completer.c (compare_cstrings): Delete, moved to utils.h. + * d-lang.c (d_language_defn): Make extern. + (_initialize_d_language): Remove add_language calls. + * defs.h (enum language): Add comment. + * f-lang.c (f_language_defn): Make extern. + (_initialize_f_language): Remove add_language call. + * go-lang.c (go_language_defn): Make extern. + (_initialize_go_language): Remove add_language call. + * language.c: Include <algorithm>. + (languages): Redefine as const array. + (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete. + (set_language_command): Handle "local". Use for-range loop. + (set_language): Remove loop. + (language_enum): Rewrite. + (language_def, language_str): Remove loops. + (add_language): Delete. + (add_set_language_command): New, based on add_languages. + (skip_language_trampoline): Adjust. + (local_language_defn): Delete. + (language_gdbarch_post_init): Adjust. + (_initialize_language): Remove add_language calls. Call + add_set_language_command. + * language.h (add_language): Delete. + (auto_language_defn) + (unknown_language_defn, minimal_language_defn, ada_language_defn) + (asm_language_defn, c_language_defn, cplus_language_defn) + (d_language_defn, f_language_defn, go_language_defn) + (m2_language_defn, objc_language_defn, opencl_language_defn) + (pascal_language_defn, rust_language_defn): Declare. + * m2-lang.c (m2_language_defn): Make extern. + (_initialize_m2_language): Remove add_language call. + * objc-lang.c (objc_language_defn): Make extern. + (_initialize_objc_language): Remove add_language call. + * opencl-lang.c (opencl_language_defn): Make extern. + (_initialize_opencl_language): Remove add_language call. + * p-lang.c (pascal_language_defn): Make extern. + (_initialize_pascal_language): Delete. + * rust-lang.c (rust_language_defn): Make extern. + (_initialize_rust_language): Delete. + * utils.h (compare_cstrings): New static inline function. + +2017-07-20 Pedro Alves <palves@redhat.com> + + * ada-lang.c (ada_to_fixed_type_1): Adjust. + (get_var_value): Constify parameters. + (get_int_var_value): Change prototype. + (to_fixed_range_type): Adjust. + * ada-lang.h (get_int_var_value): Change prototype. + +2017-07-20 Pedro Alves <palves@redhat.com> + + * dwarf2read.c (dw2_lookup_symbol): Use + SYMBOL_MATCHES_SEARCH_NAME. + * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME. + +2017-07-20 Pedro Alves <palves@redhat.com> + + * block.c (block_iter_name_step, block_iter_name_first) + (block_iter_name_next): Delete. + (block_lookup_symbol_primary): Adjust to use + dict_iter_match_first/dict_iter_match_next. + * block.h (block_iter_name_first, block_iter_name_next): Delete + declarations. + (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use + dict_iter_match_first/dict_iter_match_next. + +2017-07-20 Pedro Alves <palves@redhat.com> + + * cp-support.c (cp_find_first_component_aux): Add missing case for + end of string. + +2017-07-18 David Blaikie <dblaikie@gmail.com> + + * dwarf2read.c (create_cus_hash_table): Re-add lost initialization + of dwo_cu's dwo_file. + +2017-07-18 Yao Qi <yao.qi@linaro.org> + + * remote.c (store_registers_using_G): Remove one line comment. + +2017-07-18 Yao Qi <yao.qi@linaro.org> + + * regcache.c (regcache_cpy): Simplify it. + (regcache::cpy_no_passthrough): Remove it. + * regcache.h (cpy_no_passthrough): Remove it. + (regcache_dup, regcache_cpy): Update comments. + +2017-07-18 Pedro Alves <palves@redhat.com> + + * remote-sim.c (sim_command_completer): Adjust to work with a + completion_tracker instead of a VEC. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * completer.c (complete_source_filenames): New function. + (complete_address_and_linespec_locations): New function. + (location_completer): Use complete_address_and_linespec_locations. + (completion_tracker::build_completion_result): Honor the tracker's + request to suppress append. + * completer.h (completion_tracker::suppress_append_ws) + (completion_tracker::set_suppress_append_ws): New methods. + (completion_tracker::m_suppress_append_ws): New field. + (complete_source_filenames): New declaration. + * linespec.c (linespec_complete_what): New. + (struct ls_parser) <complete_what, completion_word, + completion_quote_char, completion_quote_end, completion_tracker>: + New fields. + (string_find_incomplete_keyword_at_end): New. + (linespec_lexer_lex_string): Record quote char. If in completion + mode, don't throw. + (linespec_lexer_consume_token): Advance the completion word point. + (linespec_lexer_peek_token): Save/restore completion info. + (save_stream_and_consume_token): New. + (set_completion_after_number): New. + (linespec_parse_basic): Set what to complete next depending on + token. Handle function and label completions specially. + (parse_linespec): Disable objc shortcut in completion mode. Set + what to complete next depending on token type. Skip keyword if in + completion mode. + (complete_linespec_component, linespec_complete): New. + * linespec.h (linespec_complete): Declare. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * linespec.c (linespec_lexer_lex_string, find_toplevel_char): + Handle 'operator<' / 'operator<<'. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * completer.c (collect_explicit_location_matches): Handle + MATCH_LABEL. + (convert_explicit_location_to_linespec): New, factored out from + ... + (convert_explicit_location_to_sals): ... this. + (complete_label): New. + (linespec_complete_label, find_label_symbols_in_block): New. + (find_label_symbols): Add completion_mode parameter and adjust to + call find_label_symbols_in_block. + * linespec.h (linespec_complete_label): Declare. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * ada-lang.c (ada_collect_symbol_completion_matches): Add + complete_symbol_mode parameter. + * cli/cli-cmds.c (complete_command): Get the completion result out + of the handle_brkchars tracker if used a custom word point. + * completer.c: Include "linespec.h". + (enum explicit_location_match_type) <MATCH_LINE>: New enumerator. + (advance_to_expression_complete_word_point): New. + (completion_tracker::completes_to_completion_word): New. + (complete_files_symbols): Pass down + complete_symbol_mode::EXPRESSION. + (explicit_options, probe_options): New. + (collect_explicit_location_matches): Complete on the + explictit_loc->foo instead of word. Use + linespec_complete_function. Handle MATCH_LINE. Handle offering + keyword and options completions. + (backup_text_ptr): Delete. + (skip_keyword): New. + (complete_explicit_location): Remove 'word' parameter. Add + language, quoted_arg_start and quoted_arg_end parameters. + Rewrite, parsing left to right. + (location_completer): Rewrite. + (location_completer_handle_brkchars): New function. + (symbol_completer): Pass down complete_symbol_mode::EXPRESSION. + (enum complete_line_internal_reason): Adjust comments. + (completion_tracker::discard_completions): New. + (completer_handle_brkchars_func_for_completer): Handle + location_completer. + (gdb_custom_word_point_brkchars) + (gdb_org_rl_basic_quote_characters): New. + (gdb_completion_word_break_characters_throw) + (completion_find_completion_word): Handle trackers that use a + custom word point. + (completion_tracker::advance_custom_word_point_by): New. + (completion_tracker::build_completion_result): Don't rely on + readline appending the quote char. + (gdb_rl_attempted_completion_function_throw): Handle trackers that + use a custom word point. + (gdb_rl_attempted_completion_function): Restore + rl_basic_quote_characters. + * completer.h (class completion_tracker): Extend intro comment. + (completion_tracker::set_quote_char) + (completion_tracker::quote_char) + (completion_tracker::set_use_custom_word_point) + (completion_tracker::use_custom_word_point) + (completion_tracker::custom_word_point) + (completion_tracker::set_custom_word_point) + (completion_tracker::advance_custom_word_point_by) + (completion_tracker::completes_to_completion_word) + (completion_tracker::discard_completions): New methods. + (completion_tracker::m_quote_char) + (completion_tracker::m_use_custom_word_point) + (completion_tracker::m_custom_word_point): New fields. + (advance_to_expression_complete_word_point): Declare. + * f-lang.c (f_collect_symbol_completion_matches): Add + complete_symbol_mode parameter. + * language.h (struct language_defn) + <la_collect_symbol_completion_matches>: Add complete_symbol_mode + parameter. + * linespec.c (linespec_keywords): Add NULL terminator. Make extern. + (linespec_complete_function): New function. + (linespec_lexer_lex_keyword): Adjust. + * linespec.h (linespec_keywords, linespec_complete_function): New + declarations. + * location.c (find_end_quote): New function. + (explicit_location_lex_one): Add explicit_completion_info + parameter. Save quoting info. Don't throw if being called for + completion. Don't handle Ada operators here. + (is_cp_operator, skip_op_false_positives, first_of) + (explicit_location_lex_one_function): New function. + (string_to_explicit_location): Replace 'dont_throw' parameter with + an explicit_completion_info pointer parameter. Handle it. Don't + use explicit_location_lex_one to lex function names. Use + explicit_location_lex_one_function instead. + * location.h (struct explicit_completion_info): New. + (string_to_explicit_location): Replace 'dont_throw' parameter with + an explicit_completion_info pointer parameter. + * symtab.c (default_collect_symbol_completion_matches_break_on): + Add complete_symbol_mode parameter. Handle LINESPEC mode. + (default_collect_symbol_completion_matches) + (collect_symbol_completion_matches): Add complete_symbol_mode + parameter. + (collect_symbol_completion_matches_type): Pass down + complete_symbol_mode::EXPRESSION. + (collect_file_symbol_completion_matches): Add complete_symbol_mode + parameter. Handle LINESPEC mode. + * symtab.h (complete_symbol_mode): New. + (default_collect_symbol_completion_matches_break_on) + (default_collect_symbol_completion_matches) + (collect_symbol_completion_matches) + (collect_file_symbol_completion_matches): Add complete_symbol_mode + parameter. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * utils.c (enum class strncmp_iw_mode): New. + (strcmp_iw): Rename to ... + (strncmp_iw_with_mode): ... this. Add string2_len and mode + parameters. Handle them. + (strncmp_iw): New. + (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode. + * utils.h (strncmp_iw): Declare. + (strcmp_iw): Move describing comments here. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and + CP_OPERATOR_STR. + * c-typeprint.c (is_type_conversion_operator): Use + CP_OPERATOR_STR. + * cp-support.c (LENGTH_OF_OPERATOR): Delete. + (cp_find_first_component_aux): Use CP_OPERATOR_STR and + CP_OPERATOR_LEN. + * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New. + * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR. + * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR. + * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and + CP_OPERATOR_STR. + * location.c: Include "cp-support.h". + (explicit_location_lex_one): Use CP_OPERATOR_LEN and + CP_OPERATOR_STR. + * symtab.c (operator_chars): Use CP_OPERATOR_STR and + CP_OPERATOR_LEN. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * cli/cli-cmds.c (complete_command): Use a completion tracker + along with completion_find_completion_word for handle_brkchars + phase. + * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE) + (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New. + (struct gdb_rl_completion_word_info): New. + (gdb_rl_find_completion_word): New. + (completion_find_completion_word): New. + * completer.h (completion_find_completion_word): Declare. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * ada-lang.c (symbol_completion_match): Adjust comments. + (symbol_completion_add): Replace vector parameter with + completion_tracker parameter. Use it. + (ada_make_symbol_completion_list): Rename to... + (ada_collect_symbol_completion_matches): ... this. Add + completion_tracker parameter and use it. + (ada_language_defn): Adjust. + * break-catch-syscall.c (catch_syscall_completer): Adjust + prototype and work with completion_tracker instead of VEC. + * breakpoint.c (condition_completer): Adjust prototype and work + with completion_tracker instead of VEC. + * c-lang.c (c_language_defn, cplus_language_defn) + (asm_language_defn, minimal_language_defn): Adjust to renames. + * cli/cli-cmds.c (complete_command): Rework using + completion_tracker. Catch exceptions when completing. + * cli/cli-decode.c (integer_unlimited_completer) + (complete_on_cmdlist, complete_on_enum): Adjust prototype and work + with completion_tracker instead of VEC. + * command.h (struct completion_tracker): Forward declare. + (completer_ftype, completer_handle_brkchars_ftype): Change + types. + (complete_on_cmdlist, complete_on_enum): Adjust. + * completer.c: Include <algorithm>. + (struct gdb_completer_state): New. + (current_completion): New global. + (readline_line_completion_function): Delete. + (noop_completer, filename_completer) + (filename_completer_handle_brkchars, complete_files_symbols) + (linespec_location_completer): Adjust to work with a + completion_tracker instead of a VEC. + (string_or_empty): New. + (collect_explicit_location_matches): Adjust to work with a + completion_tracker instead of a VEC. + (explicit_location_completer): Rename to ... + (complete_explicit_location): ... this and adjust to work with a + completion_tracker instead of a VEC. + (location_completer): Adjust to work with a completion_tracker + instead of a VEC. + (add_struct_fields): Adjust to work with a completion_list instead + of VEC. + (expression_completer): Rename to ... + (complete_expression): ... this and adjust to work with a + completion_tracker instead of a VEC. Use complete_files_symbols. + (expression_completer): Reimplement on top of complete_expression. + (symbol_completer): Adjust to work with a completion_tracker + instead of a VEC. + (enum complete_line_internal_reason): Add describing comments. + (complete_line_internal_normal_command): Adjust to work with a + completion_tracker instead of a VEC. + (complete_line_internal): Rename to ... + (complete_line_internal_1): ... this and adjust to work with a + completion_tracker instead of a VEC. Assert TEXT is NULL in the + handle_brkchars phase. + (new_completion_tracker): Delete. + (complete_line_internal): Reimplement as TRY/CATCH wrapper around + complete_line_internal_1. + (free_completion_tracker): Delete. + (INITIAL_COMPLETION_HTAB_SIZE): New. + (completion_tracker::completion_tracker) + (completion_tracker::~completion_tracker): New. + (maybe_add_completion): Delete. + (completion_tracker::maybe_add_completion) + (completion_tracker::add_completion) + (completion_tracker::add_completions): New. + (throw_max_completions_reached_error): Delete. + (complete_line): Adjust to work with a completion_tracker instead + of a VEC. Don't create a completion_tracker_t or check for max + completions here. + (command_completer, command_completer_handle_brkchars) + (signal_completer, reg_or_group_completer_1) + (reg_or_group_completer, default_completer_handle_brkchars): + Adjust to work with a completion_tracker. + (gdb_completion_word_break_characters_throw): New. + (gdb_completion_word_break_characters): Reimplement. + (line_completion_function): Delete. + (completion_tracker::recompute_lowest_common_denominator) + (expand_preserving_ws) + (completion_tracker::build_completion_result) + (completion_result::completion_result) + (completion_result::completion_result) + (completion_result::~completion_result) + (completion_result::completion_result) + (completion_result::release_match_list, compare_cstrings) + (completion_result::sort_match_list) + (completion_result::reset_match_list) + (gdb_rl_attempted_completion_function_throw) + (gdb_rl_attempted_completion_function): New. + * completer.h (completion_list, struct completion_result) + (class completion_tracker): New. + (complete_line): Add completion_tracker parameter. + (readline_line_completion_function): Delete. + (gdb_rl_attempted_completion_function): New. + (noop_completer, filename_completer, expression_completer) + (location_completer, symbol_completer, command_completer) + (signal_completer, reg_or_group_completer): Update prototypes. + (completion_tracker_t, new_completion_tracker) + (make_cleanup_free_completion_tracker): Delete. + (enum maybe_add_completion_enum): Delete. + (maybe_add_completion): Delete. + (throw_max_completions_reached_error): Delete. + * corefile.c (complete_set_gnutarget): Adjust to work with a + completion_tracker instead of a VEC. + * cp-abi.c (cp_abi_completer): Adjust to work with a + completion_tracker instead of a VEC. + * d-lang.c (d_language_defn): Adjust. + * disasm.c (disassembler_options_completer): Adjust to work with a + completion_tracker instead of a VEC. + * f-lang.c (f_make_symbol_completion_list): Rename to ... + (f_collect_symbol_completion_matches): ... this. Adjust to work + with a completion_tracker instead of a VEC. + (f_language_defn): Adjust. + * go-lang.c (go_language_defn): Adjust. + * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer): + Adjust to work with a completion_tracker instead of a VEC. + * infrun.c (handle_completer): Likewise. + * interps.c (interpreter_completer): Likewise. + * interps.h (interpreter_completer): Likewise. + * language.c (unknown_language_defn, auto_language_defn) + (local_language_defn): Adjust. + * language.h (language_defn::la_make_symbol_completion_list): + Rename to ... + (language_defn::la_collect_symbol_completion_matches): ... this + and adjust to work with a completion_tracker instead of a VEC. + * m2-lang.c (m2_language_defn): Adjust. + * objc-lang.c (objc_language_defn): Adjust. + * opencl-lang.c (opencl_language_defn): Adjust. + * p-lang.c (pascal_language_defn): Adjust. + * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word. + (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work + with a completion_tracker. + * rust-lang.c (rust_language_defn): Adjust. + * symtab.c (free_completion_list, do_free_completion_list) + (return_val, completion_tracker): Delete. + (completion_list_add_name, completion_list_add_symbol) + (completion_list_add_msymbol, completion_list_objc_symbol) + (completion_list_add_fields, add_symtab_completions): Add + completion_tracker parameter and use it. + (default_make_symbol_completion_list_break_on_1): Rename to... + (default_collect_symbol_completion_matches_break_on): ... this. + Add completion_tracker parameter and use it instead of allocating + a completion tracker here. + (default_make_symbol_completion_list_break_on): Delete old + implementation. + (default_make_symbol_completion_list): Delete. + (default_collect_symbol_completion_matches): New. + (make_symbol_completion_list): Delete. + (collect_symbol_completion_matches): New. + (make_symbol_completion_type): Rename to ... + (collect_symbol_completion_matches_type): ... this. Add + completion_tracker parameter and use it instead of VEC. + (make_file_symbol_completion_list_1): Rename to... + (collect_file_symbol_completion_matches): ... this. Add + completion_tracker parameter and use it instead of VEC. + (make_file_symbol_completion_list): Delete. + (add_filename_to_list): Use completion_list instead of a VEC. + (add_partial_filename_data::list): Now a completion_list. + (make_source_files_completion_list): Work with a completion_list + instead of a VEC. + * symtab.h: Include "completer.h". + (default_make_symbol_completion_list_break_on) + (default_make_symbol_completion_list, make_symbol_completion_list) + (make_symbol_completion_type, make_file_symbol_completion_list) + (make_source_files_completion_list): Delete. + (default_collect_symbol_completion_matches_break_on) + (default_collect_symbol_completion_matches) + (collect_symbol_completion_matches) + (collect_symbol_completion_matches_type) + (collect_file_symbol_completion_matches) + (make_source_files_completion_list): New. + * top.c (init_main): Don't install a rl_completion_entry_function + hook. Install a rl_attempted_completion_function hook instead. + * tui/tui-layout.c (layout_completer): Adjust to work with a + completion_tracker. + * tui/tui-regs.c (tui_reggroup_completer): + * tui/tui-win.c (window_name_completer, focus_completer) + (winheight_completer): Adjust to work with a completion_tracker. + * value.c: Include "completer.h". + (complete_internalvar): Adjust to work with a completion_tracker. + * value.h (complete_internalvar): Likewise. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to + renames. + * cli/cli-decode.h (struct cmd_list_element) <completer>: Move + comments to completer_ftype's declaration. + <completer_handle_brkchars>: Change type to + completer_handle_brkchars_ftype. + * command.h (completer_ftype): Add describing comment and give + names to parameters. + (completer_ftype_void): Rename to ... + (completer_handle_brkchars_ftype) ... this. Add describing comment. + (set_cmd_completer_handle_brkchars): Adjust. + * completer.c (filename_completer_handle_brkchars): New function. + (complete_line_internal_normal_command): New function, factored + out from ... + (complete_line_internal): ... here. + (command_completer_handle_brkchars) + (default_completer_handle_brkchars) + (completer_handle_brkchars_func_for_completer): New functions. + * completer.h (set_gdb_completion_word_break_characters): Delete + declaration. + (completer_handle_brkchars_func_for_completer): New declaration. + * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use + completer_handle_brkchars_func_for_completer. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * completer.c (symbol_completer): New function, based on + make_symbol_completion_list_fn. + * completer.h (symbol_completer): New declaration. + * guile/scm-cmd.c (cmdscm_completers): Adjust. + * python/py-cmd.c (completers): Adjust. + * symtab.c (make_symbol_completion_list_fn): Delete. + * symtab.h (make_symbol_completion_list_fn): Delete. + * cli/cli-decode.c (add_cmd): Adjust. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * Makefile.in (COMMON_OBS): Add filename-seen-cache.o. + * dwarf2read.c: Include "filename-seen-cache.h". + * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field. + (dw2_map_symbol_filenames): Build and use a filenames_seen_cache. + * filename-seen-cache.c: New file. + * filename-seen-cache.h: New file. + * symtab.c: Include "filename-seen-cache.h". + (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE) + (create_filename_seen_cache, clear_filename_seen_cache) + (delete_filename_seen_cache, filename_seen): Delete, parts moved + to filename-seen-cache.h/filename-seen-cache.c. + (output_source_filename, sources_info) + (maybe_add_partial_symtab_filename) + (make_source_files_completion_list): Adjust to use + filename_seen_cache. + +2017-07-17 Pedro Alves <palves@redhat.com> + + * dwarf2read.c (dwarf2_per_objfile): In-class initialize all + fields. + (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const + dwarf2_debug_sections*)): New. + (dwarf2_per_objfile::dwarf2_per_objfile(const + dwarf2_per_objfile&)): Declare as deleted. + (dwarf2_per_objfile::operator=): Declare as deleted. + (dwarf2_per_objfile::dwarf2_per_objfile) + (dwarf2_per_objfile::~dwarf2_per_objfile) + (dwarf2_per_objfile::free_cached_comp_units): New. + (dwarf2_has_info): dwarf2_per_objfile initialization code moved to + ctor. Call dwarf2_per_objfile's ctor manually. + (dwarf2_locate_sections): Deleted/refactored as ... + (dwarf2_per_objfile::locate_sections): ... this new method. + (free_cached_comp_units): Defer to + dwarf2_per_objfile::free_cached_comp_units. + (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually. + +2017-07-14 Tom Tromey <tom@tromey.com> + + PR rust/21764: + * rust-exp.y (convert_ast_to_expression): Add "want_type" + parameter. + <UNOP_SIZEOF>: Split into separate case. + <UNOP_VAR_VALUE>: Handle want_type. Add error case. + +2017-07-14 Tom Tromey <tom@tromey.com> + + PR rust/21763: + * symtab.c (symbol_matches_domain): Add language_rust to special + case. + * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't + treat LOC_TYPEDEF symbols as variables. + +2017-07-14 Pedro Alves <palves@redhat.com> + + * symtab.c (make_file_symbol_completion_list_1): Iterate over + symtabs matching all symtabs with SRCFILE as file name instead of + only considering the first hit, with lookup_symtab. + +2017-07-14 Simon Marchi <simon.marchi@ericsson.com> + + * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and + operator_name parameters. + (gen_expr): Update function call. + +2017-07-14 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch + parameter. + * symtab.h (struct symbol_computed_ops::tracepoint_var_ref): + Likewise. + * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch + parameter, use agent_expr::gdbarch instead, update function + calls. + (locexpr_tracepoint_var_ref): Likewise. + (loclist_tracepoint_var_ref): Likewise. + * ax-gdb.c (gen_trace_static_fields): Likewise. + (gen_traced_pop): Likewise. + (gen_frame_args_address): Likewise. + (gen_frame_locals_address): Likewise. + (gen_var_ref): Likewise. + (gen_struct_ref_recursive): Likewise. + (gen_static_field): Likewise. + (gen_maybe_namespace_elt): Likewise. + (gen_expr): Likewise. + (gen_trace_for_var): Likewise. + (gen_trace_for_expr): Likewise. + (gen_trace_for_return_address): Likewise. + +2017-07-14 Simon Marchi <simon.marchi@ericsson.com> + + * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax + parameter. + (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call. + +2017-07-14 Simon Marchi <simon.marchi@ericsson.com> + + * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch + from ax, update calls. + (gen_usual_arithmetic): Likewise. + (gen_integral_promotions): Likewise. + (gen_bitfield_ref): Likewise. + (gen_primitive_field): Likewise. + (gen_struct_ref_recursive): Likewise. + (gen_struct_ref): Likewise. + (gen_maybe_namespace_elt): Likewise. + (gen_struct_elt_for_reference): Likewise. + (gen_namespace_elt): Likewise. + (gen_aggregate_elt_ref): Likewise. + (gen_expr): Get gdbarch from ax, update calls. + (gen_expr_binop_rest): Likewise. + +2017-07-13 Pedro Alves <palves@redhat.com> + + * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64 + as default tdesc. + * amd64-dicos-tdep.c (amd64_dicos_init_abi): + * amd64-fbsd-tdep.c (amd64fbsd_init_abi): + * amd64-linux-tdep.c (amd64_linux_init_abi): Pass + tdesc_amd64_linux as default tdesc. Get final tdesc from the + tdep. + (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc. + Get final tdesc from the tdep. + * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as + default tdesc. + * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. + * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. + * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter. + Use it as default tdesc. + (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it + down to amd_init_abi. No longer handle fallback tdesc here. + * amd64-tdep.h (tdesc_x32): Declare. + (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc' + parameter. + * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64 + as default tdesc. + +2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> + + * s390-linux-tdep.c (s390_process_record): Add support for + instructions new in arch12. + +2017-07-11 John Baldwin <jhb@FreeBSD.org> + + * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use + PT_GETFSBASE and PT_GETGSBASE. + (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and + PT_SETGSBASE. + +2017-07-11 John Baldwin <jhb@FreeBSD.org> + + * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat) + (amd64-avx-mpx.dat, amd64-avx-avx512.dat) + (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in + those rules. + * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml. + * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml. + * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml. + * features/i386/amd64-avx.xml: Add 64bit-segments.xml. + * features/i386/amd64-mpx.xml: Add 64bit-segments.xml. + * features/i386/amd64.xml: Add 64bit-segments.xml. + * features/i386/amd64-avx-avx512.c: Regenerated. + * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated. + * features/i386/amd64-avx-mpx.c: Regenerated. + * features/i386/amd64-avx.c: Regenerated. + * features/i386/amd64-mpx.c: Regenerated. + * features/i386/amd64.c: Regenerated. + * regformats/i386/amd64-avx-avx512.dat: Regenerated. + * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. + * regformats/i386/amd64-avx-mpx.dat: Regenerated. + * regformats/i386/amd64-avx.dat: Regenerated. + * regformats/i386/amd64-mpx.dat: Regenerated. + * regformats/i386/amd64.dat: Regenerated. + +2017-07-10 Yao Qi <yao.qi@linaro.org> + + * features/i386/amd64-avx-avx512-linux.c: Re-generated. + * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. + +2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com> + + * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and + unsetenv. + * 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/environ.m4: New file. + * gnulib/import/m4/setenv.m4: New file. + * gnulib/import/setenv.c: New file. + * gnulib/import/unsetenv.c: New file. + +2017-07-09 Simon Marchi <simon.marchi@ericsson.com> + + * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read + address when op is DW_OP_addr. + +2017-07-09 Tom Tromey <tom@tromey.com> + + * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size + check and apply to outer type. + +2017-07-07 John Baldwin <jhb@FreeBSD.org> + + * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS) + (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI) + (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New. + (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method. + +2017-07-07 John Baldwin <jhb@FreeBSD.org> + + * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name. + +2017-07-07 John Baldwin <jhb@FreeBSD.org> + + * corelow.c (get_core_siginfo): Remove. + (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method + instead of get_core_siginfo. + * gdbarch.sh (core_xfer_siginfo): New gdbarch callback. + * gdbarch.h: Re-generate. + * gdbarch.c: Re-generate. + * linux-tdep.c (linux_core_xfer_siginfo): New. + (linux_init_abi): Install gdbarch "core_xfer_siginfo" method. + +2017-07-07 John Baldwin <jhb@FreeBSD.org> + + * corelow.c (thread_section_name): Move to ... + * gdbcore.h (thread_section_name): ... here. + +2017-07-07 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32) + (struct siginfo32): New. + [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New. + (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO + via ptrace(PT_LWPINFO). + +2017-07-07 John Baldwin <jhb@FreeBSD.org> + + * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data) + (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data) + (fbsd_get_siginfo_type): New. + (fbsd_init_abi): Install gdbarch "get_siginfo_type" method. + (_initialize_fbsd_tdep): New. + +2017-07-06 David Blaikie <dblaikie@gmail.com> + + * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than + a singular dwo_unit*) to support multiple CUs in the same way that + multiple TUs are supported. + (create_cus_hash_table): Replace create_dwo_cu with a function for + parsing multiple CUs from a DWO file. + (open_and_init_dwo_file): Use create_cus_hash_table rather than + create_dwo_cu. + (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with + htab_find, rather than comparing the signature to a singleton CU in + the dwo_file. + +2017-07-06 Pedro Alves <palves@redhat.com> + + * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition. + 2017-07-04 Pedro Alves <palves@redhat.com> * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC. |