Move some declarations to source.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 31d533433f7bc445975254075dc1a9079856a1c2..cfab252a7d10d3d03a3c59091c9d70813a811eaa 100644 (file)
@@ -1,3 +1,112 @@
+2018-02-14  Tom Tromey  <tom@tromey.com>
+
+       * solib.c: Include source.h.
+       * nto-tdep.c: Include source.h.
+       * mi/mi-cmd-env.c: Include source.h.
+       * infcmd.c: Include source.h.
+       * exec.c: Include source.h.
+       * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
+       (add_path, directory_switch, source_path, init_source_path): Move
+       declarations...
+       * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
+       (add_path, directory_switch, source_path, init_source_path):
+       ...here.
+
+2018-02-14  Tom Tromey  <tom@tromey.com>
+
+       * solist.h (exec_file_find, solib_find): Return
+       unique_xmalloc_ptr.
+       (solib_bfd_fopen): Take a const char *.
+       * solib.c (solib_find_1): Return unique_xmalloc_ptr.
+       (exec_file_find, solib_find): Likewise.
+       (solib_bfd_fopen): Do not take ownership of "pathname".
+       (solib_bfd_open): Use unique_xmalloc_ptr.
+       * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
+       * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
+       * infrun.c (follow_exec): Use unique_xmalloc_ptr.
+       * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
+
+2018-02-14  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (name_match_type_from_name): Remove reference to
+       ada_name_for_lookup in function's documentation.
+       * ada-lang.h (ada_name_for_lookup): Delete declaration.
+
+2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * defs.h (enum openp_flags): New enum.
+       (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
+       Move to enum openp_flags.
+       (openp_flags): New enum flags.
+       (openp): Change parameter type to openp_flags.
+       * source.c (openp): Change parameter type to openp_flags.
+       * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
+       * dwarf2read.c (try_open_dwop_file): Use openp_flags.
+
+2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
+       per-command.
+
+2018-02-12  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf2read.c (dwarf2_release_queue): Delete function, move body
+       into...
+       (class dwarf2_queue_guard): ...the destructor of this new class.
+       (dw2_do_instantiate_symtab): Create instance of the new class
+       dwarf2_queue_guard, remove cleanup.
+
+2018-02-09  Tom Tromey  <tom@tromey.com>
+
+       * source.c (find_source_lines): Don't reference past the end of
+       the vector.
+
+2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * remote.c (remote_btrace_maybe_reopen): Change error message.
+       * btrace.c (btrace_enable): Likewise.
+       (parse_xml_btrace): Likewise.
+       (parse_xml_btrace_conf): Likewise.
+
+2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
+       (linux_enable_pt, linux_enable_bts): Call
+       diagnose_perf_event_open_fail.
+
+2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
+       Remove parameter and change return type.  Update callers.  Move it.
+       (linux_enable_bts, linux_enable_pt): Improve error message.
+       (linux_enable_pt): Remove zero buffer size check.
+       (linux_enable_btrace): Improve error messages.  Remove NULL return
+       check.
+
+2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * btrace.c (btrace_enable): Remove target_supports_btrace call.
+       * nat/linux-btrace.c (perf_event_pt_event_type): Move.
+       (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
+       (linux_supports_pt, linux_supports_btrace): Remove.
+       (linux_enable_bts): Call cpu_supports_bts.
+       * nat/linux-btrace.h (linux_supports_btrace): Remove.
+       * remote.c (remote_supports_btrace): Remove.
+       (init_remote_ops): Remove remote_supports_btrace.
+       * target-delegates.c: Regenerated.
+       * target.c (target_supports_btrace): Remove.
+       * target.h (target_ops) <to_supports_btrace>: Remove
+       (target_supports_btrace): Remove.
+       * x86-linux-nat.c (x86_linux_create_target): Remove
+       linux_supports_btrace.
+
+2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
+       btrace failed.
+       * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
+       exception and use message in own exception.
+
 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
 
        * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
This page took 0.0372 seconds and 4 git commands to generate.