X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=2fb2af1194c60a1fe7b2590c1b5a3936119e6df3;hb=b292235f666ff2123e26794db73d5a27a685e7be;hp=fd1f3609df192bad6474598babcde3bafcc5b39e;hpb=49663d051c70e1366f9b94f586459a329e9b7053;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fd1f3609df..2fb2af1194 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,930 @@ +2017-09-25 Tom Tromey + + * regcache.c (class regcache_invalidator): New. + (struct register_to_invalidate): Remove. + (make_cleanup_regcache_invalidate): Remove. + (regcache::raw_write): Use regcache_invalidator. + +2017-09-25 Tom Tromey + + * spu-tdep.c (spu2ppu_sniffer): Update. + * regcache.h (make_cleanup_regcache_xfree): Don't declare. + * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree): + Remove. + * ppc-linux-tdep.c (ppu2spu_sniffer): Update. + * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update. + * frame.h (frame_save_as_regcache): Return std::unique_ptr. + * frame.c (frame_save_as_regcache): Return std::unique_ptr. + (frame_pop): Update. + +2017-09-25 Tom Tromey + + * spu-tdep.c (spu2ppu_dealloc_cache): Use delete. + * regcache.h (regcache_xfree): Don't declare. + * regcache.c (regcache_xfree): Remove. + (do_regcache_xfree): Use delete. + * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete. + * linux-fork.c (free_fork): Use delete. + (fork_save_infrun_state): Likewise. + * jit.c (jit_dealloc_cache): Use delete. + * infrun.c (discard_infcall_suspend_state): Use delete. + +2017-09-25 Tom Tromey + + * regcache.h (regcache_xmalloc): Don't declare. + (regcache_raw_set_cached_value): Update comment. + * regcache.c (regcache_xmalloc): Remove. + * ppc-linux-tdep.c (ppu2spu_sniffer): Use new. + * jit.c (jit_frame_sniffer): Use new. + * frame.c (frame_save_as_regcache): Use new. + +2017-09-25 Andreas Arnez + + * NEWS: Advertise support for guarded-storage registers on IBM z. + +2017-09-25 Andreas Arnez + + * s390-linux-nat.c (have_regset_gs): New static variable. + (s390_linux_fetch_inferior_registers): Handle guarded-storage + control block and guarded-storage broadcast control regsets. + (s390_read_description): Detect whether the target has + guarded-storage support, return appropriate tdesc. + * s390-linux-tdep.c (features/s390-gs-linux64.c): New include. + (features/s390x-gs-linux64.c): Likewise. + (struct gdbarch_tdep) : New field. + (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset) + (s390_gsbc_regset): New variables. + (s390_iterate_over_regset_sections): Iterate over s390_gs_regset + and s390_gsbc_regset, if applicable. + (s390_core_read_description): Check whether core file was from a + target with guarded-storage support; include appropriate regsets. + (s390_gdbarch_init): Add registers for guarded-storage support. + (_initialize_s390_tdep): Initialize new target descriptions that + include registers for guarded-storage support. + * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM) + (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM) + (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines. + (S390_NUM_REGS): Adjust macro definition. + (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64) + (tdesc_s390x_gs_linux64): New declarations. + +2017-09-25 Andreas Arnez + + * features/s390-gs-linux64.xml: New file. + * features/s390-gs.xml: New file. + * features/s390-gsbc.xml: New file. + * features/s390x-gs-linux64.xml: New file. + * features/Makefile (WHICH): Add s390-gs-linux64 and + s390x-gs-linux64. + (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros. + (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml. + * features/s390-gs-linux64.c: New generated file. + * features/s390x-gs-linux64.c: New file. + * regformats/s390-gs-linux64.dat: New file. + * regformats/s390x-gs-linux64.dat: New file. + +2017-09-23 Tom Tromey + + * defs.h (make_cleanup_override_quit_handler): Don't declare. + +2017-09-22 Tom Tromey + + * utils.c (class scoped_input_handler) : Change + type to scoped_restore_tmpl. + : Initialize m_quit_handler directly. + +2017-09-22 Sergio Durigan Junior + + * 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 + + * 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 + + * guile/scm-value.c (gdbscm_value_address): Initialize address, + get rid of res_val. + +2017-09-22 Rainer Orth + + * configure.nat : Add fork-inferior.o to NATDEPFILES. + : Likewise. + : 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 + + * 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 + + * 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 + + * 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 + + * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF. + +2017-09-21 Simon Marchi + + * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF. + +2017-09-21 Yao Qi + + * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o + to gdb_target_obs. + +2017-09-20 Tom Tromey + + * 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) : Now a counted_command_line. + (struct bpstats) : Likewise. + +2017-09-20 Tom Tromey + + * 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 + + * 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 + + * 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 + + * 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 + + * main.c (catch_command_errors): Rename from + catch_command_errors_const. + (captured_main_1): Update. + +2017-09-20 Pedro Alves + + * 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 + + * 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 + + * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing + backslash. + +2017-09-20 Walfred Tedeschi + + * 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 + + * 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 + + * Makefile.in (monitor.o): Remove the rule. + +2017-09-19 Yao Qi + + * 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 + + * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove + label abort_expression. + +2017-09-16 Simon Marchi + + * 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 + + * 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 + + * 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>. + (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 + + * mi/mi-main.c (mi_load_progress): Restore current_uiout using a + scoped_restore. + +2017-09-16 Simon Marchi + + * mi/mi-main.c (mi_load_progress): Make uiout variable + a unique_ptr. + +2017-09-15 Pedro Alves + + * 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 + + * dwarf2read.c (copy_string): Remove. + (parse_macro_definition): Replace copy_string with savestring. + +2017-09-15 Yao Qi + + * 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 + + * dwarf2expr.h (dwarf_stack_value): Add constructor. + (dwarf_expr_context) <~dwarf_expr_context>: Define as default. + : Change type to std::vector. + : Remove. + : 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 + + * dwarf2expr.h (dwarf_expr_context) : Change + return type to bool. + * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise. + +2017-09-14 Simon Marchi + + * dwarf2expr.h (dwarf_expr_piece) : + Change type to bool. + (dwarf_stack_value) : Likewise. + (dwarf_expr_context) : Change parameter type to + bool. + : Change return type to bool. + : 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 + + * dwarf2expr.h (struct dwarf_expr_piece): Move up. + (struct dwarf_expr_context) : Remove. + : 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. + : Remove. + : 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 + + * 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 + + * 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 + + * probe.h (struct probe_ops) : 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) 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 + + * 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. + (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 + + * d-namespace.c (d_lookup_symbol): Use std::string. + (find_symbol_in_baseclass): Likewise. + +2017-09-11 Tom Tromey + + * ctf.c (ctf_start): Use std::string. + +2017-09-11 Tom Tromey + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * language.h (language_enum): Make argument const. + * language.c (language_enum): Make argument const. + +2017-09-11 Tom Tromey + + * 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 + + * 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 + + * 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 + + 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 fields. + * python/py-event.h (create_thread_event_breakpoint): Add optional + "thread" parameter. + +2017-09-10 Andrew Burgess + + * utils.c (abort_with_message): Don't compare gdb_stderr to NULL, + check current_ui instead. + (internal_vproblem): Likewise. + +2017-09-09 Simon Marchi + + * thread.c (print_thread_info_1): Remove unnecessary calls to + uiout->is_mi_like_p. + +2017-09-09 Tom Tromey + + * 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 + + * linespec.c (create_sals_line_offset): Use gdb::def_vector. + 2017-09-09 Tom Tromey * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.