Return scoped_fd from open_source_file and find_and_open_source
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index fb655954a2656dd09e371ba3b141f385721d2fa1..2284038cbcdc3bb2016ef61b7ade7216a92722b2 100644 (file)
@@ -1,3 +1,220 @@
+2018-11-09  Tom Tromey  <tom@tromey.com>
+
+       * common/scoped_fd.h (class scoped_fd): Add move constructor and
+       move assignment operator.
+       * psymtab.c (psymtab_to_fullname): Update.
+       * source.h (open_source_file): Return scoped_fd.
+       (find_and_open_source): Likewise.
+       * source.c (open_source_file): Return scoped_fd.
+       (get_filename_and_charpos): Update.
+       (print_source_lines_base): Update.  Use scoped_fd::to_file.
+       (forward_search_command): Likewise.
+       (reverse_search_command): Likewise.
+       (find_and_open_source): Return scoped_fd.
+       * tui/tui-source.c (tui_set_source_content): Update.  Use
+       gdb_file_up.
+
+2018-11-09  John Baldwin  <jhb@FreeBSD.org>
+
+       * minsyms.c (minimal_symbol_reader::install): Fix unsigned
+       overflow.
+
+2018-11-09  Hafiz Abid Qadeer  <abidh@codesourcery.com>
+
+       * configure: Regenerate.
+
+2018-11-09  Tom de Vries  <tdevries@suse.de>
+
+       * symtab.c (symbol_set_names): Call symbol_find_demangled_name
+       unconditionally, to set the language of the symbol.  Manage freeing
+       returned pointer using gdb::unique_xmalloc_ptr.
+
+2018-11-08  Tom Tromey  <tom@tromey.com>
+
+       * record.c (require_record_target): Upper-case "<TAB>".
+
+2018-11-08  Tom Tromey  <tom@tromey.com>
+
+       * python/lib/gdb/command/pretty_printers.py
+       (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
+
+2018-11-08  Tom Tromey  <tom@tromey.com>
+
+       PR gdb/23555:
+       PR gdb/23838:
+       * target.h (target_supports_terminal_ours): Return bool.
+       * target.c (target_supports_terminal_ours): Handle case where
+       current_top_target returns nullptr.  Return bool.
+
+2018-11-08  Joel Brobecker  <brobecker@adacore.com>
+
+       * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
+       return the correct count for potential HFAs.
+
+2018-11-08  Jan Beulich  <jbeulich@suse.com>
+
+       * i387-tdep.c (i387_supply_xsave): Split handling of
+       X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
+       (i387_collect_xsave): Likewise.
+
+2018-11-08  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * riscv-tdep.c (riscv_insn::decode): Update header comment.
+       (riscv_frame_this_id): Catch errors thrown while building the
+       frame cache, leave the frame id as the default, which is the outer
+       frame id.
+
+2018-11-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (read_atcb): Only set task_info->called_task if
+       task_info->state == Entry_Caller_Sleep.
+       (print_ada_task_info): Do not check task_info->state before
+       checking task_info->called_task.
+       (info_task): Likewise.
+
+2018-11-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-tasks.c (read_atcb): Clear task_info before computing
+       the value of each of its fields.
+
+2018-11-07  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf2read.c (dwarf2_init_integer_type): Check for name being
+       NULL before dereferencing it.
+
+2018-11-06  Tom de Vries  <tdevries@suse.de>
+
+       * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
+       program headers.
+
+2018-11-06  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
+       so that it applies to uclinux as well.
+
+2018-11-06  Marius Muench  <marius.muench@eurecom.fr>
+
+       * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
+       when on AAPCS.
+
+2018-11-06  John Baldwin  <jhb@FreeBSD.org>
+
+       * riscv-fbsd-nat.c (getregs_supplies): Return true for
+       RISCV_CSR_SSTATUS_REGNUM.
+
+2018-11-04  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * source.c (open_source_file): Fix leak by transferring the
+       current s->fullname to the unique_xmalloc_ptr fullname given
+       to find_and_open_source.
+
+2018-11-04  Tom Tromey  <tom@tromey.com>
+
+       * varobj.c (install_default_visualizer): Update.
+       * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
+       Return gdbpy_ref.
+       * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
+       (find_pretty_printer_from_progspace)
+       (find_pretty_printer_from_gdb, find_pretty_printer)
+       (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
+       (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
+       Update.
+
+2018-11-04  Tom Tromey  <tom@tromey.com>
+
+       * python/python.c (gdbpy_parameter_value): Update.
+       * python/python-internal.h (python_string_to_unicode)
+       (python_string_to_target_python_string)
+       (host_string_to_python_string): Return gdbpy_ref.
+       * python/py-utils.c (python_string_to_unicode)
+       (unicode_to_encoded_python_string)
+       (unicode_to_target_python_string)
+       (python_string_to_target_string)
+       (python_string_to_target_python_string): Return gdbpy_ref.
+       (python_string_to_host_string): Update.
+       (host_string_to_python_string): Return gdbpy_ref.
+       * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
+       (stpy_fullname): Update.
+       * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
+       Update.
+       * python/py-prettyprint.c (print_string_repr): Update.
+       * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
+       (objfpy_get_build_id): Update.
+       * python/py-breakpoint.c (bppy_get_location)
+       (bppy_get_expression, bppy_get_condition, bppy_get_commands):
+       Update.
+
+2018-11-04  Tom Tromey  <tom@tromey.com>
+
+       * python/python-internal.h (gdb_py_object_from_longest)
+       (gdb_py_object_from_ulongest): Return gdbpy_ref.
+       * python/py-value.c (valpy_int): Update.
+       * python/py-utils.c (gdb_py_object_from_longest): Return
+       gdbpy_ref.
+       (gdb_py_object_from_ulongest): Likewise.
+       * python/py-type.c (typy_get_alignof): Update.
+       * python/py-linetable.c (ltpy_get_all_source_lines)
+       (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
+       * python/py-block.c (blpy_get_start, blpy_get_end): Update.
+
+2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * ada-lang.c (_initialize_ada_language): Fix typo.
+
+2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * language.c (type): Remove.
+       (_initialize_language): Remove assignment to type.
+
+2018-11-02  Joel Brobecker  <brobecker@adacore.com>
+
+       * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
+       * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
+       (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
+       * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
+       (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
+       (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
+       * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
+       and aarch64-ravenscar-thread.o.
+       * NEWS: Add entry documenting Ravenscar tasking support
+       on AArch64 ELF.
+
+2018-11-02  Matthew Malcomson  <matthew.malcomson@arm.com>
+
+       * symtab.c (info_functions_command): Initialize quiet flag.
+       * stack.c (info_args_command): Likewise.
+
+2018-11-01  Jim Wilson  <jimw@sifive.com>
+
+       * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
+       Set if pcptr if unaligned.  Return 2 if unaligned_p true.  Update
+       debugging messages.
+
+2018-11-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_watch_location_expression): New function.
+       (ada_language_defn): Set la_watch_location_expression to
+       ada_watch_location_expression.
+
+2018-11-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * print-utils.c (int_string): Remove unnecessary trailing spaces.
+
+2018-11-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * rs6000-tdep.c (skip_prologue): Fix potential negative left
+       shifting.
+
+2018-11-01  Jerome Guitton  <guitton@adacore.com>
+           Joel Brobecker  <brobecker@adacore.com>
+
+       * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
+       * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
+       * arm-pikeos-tdep.c: New file.
+       * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
+       embedded system.
+       * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
+
 2018-11-01  Simon Marchi  <simon.marchi@ericsson.com>
 
        * common/pathstuff.c (get_standard_temp_dir): New.
This page took 0.027815 seconds and 4 git commands to generate.