Get rid of "gdb_dirbuf" and use "getcwd (NULL, 0)"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 4d544f116a3faaff3c820b41efed7dc0f3fedcb6..54eadaef98f707049f0a3fdcfc4780cbd8e78fe9 100644 (file)
@@ -1,3 +1,349 @@
+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.
This page took 0.029177 seconds and 4 git commands to generate.