Fix PR cli/23785: Check if file exists when invoking "restore FILE binary"
[binutils-gdb.git] / gdb / ChangeLog
index 28e969cacf5864c205d0703ac2e8e21dcb831f93..e177cf28caeefe7588cbdff6c1d158fe3a65bbf9 100644 (file)
@@ -1,3 +1,200 @@
+2018-10-18  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR cli/23785
+       * cli/cli-dump.c (restore_binary_file): Check if "file" is
+       NULL.
+
+2018-10-17  Paul Koning  <paul_koning@dell.com>
+
+       * charset.c (convert_between_encodings): Fix unsigned overflow.
+
+2018-10-17  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-nat.c (fbsd_nat_target::info_proc) Use
+       fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
+       * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
+       (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
+       New functions.
+       (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
+       and fbsd_info_proc_mappings_header.
+       * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
+       (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
+       New.
+
+2018-10-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
+       Solaris Maintainer.
+
+2018-10-15  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui.c (strcat_to_buf): Remove casts.
+       * tui/tui-winsource.c (tui_show_source_line)
+       (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
+       * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
+       * tui/tui-windata.c (tui_first_data_item_displayed)
+       (tui_delete_data_content_windows, tui_erase_data_content)
+       (tui_display_all_data, tui_display_data_from)
+       (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
+       * tui/tui-win.c (tui_set_win_height)
+       (make_invisible_and_set_new_height, parse_scrolling_args): Remove
+       casts.
+       * tui/tui-win.c (tui_resize_all): Remove casts.
+       (tui_scroll_backward_command, tui_set_focus)
+       (tui_set_tab_width_command): Likewise.
+       * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
+       * tui/tui-regs.c (tui_show_register_group): Remove cast.
+       * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
+       * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
+       * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
+       Remove casts.
+
+2018-10-15  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
+       AArch64/ARM maintainer.
+
+2018-10-11  Gary Benson <gbenson@redhat.com>
+
+       * interps.h (interp::m_name): Make private and mutable.
+       * interps.c (interp::~interp): Free m_name.
+
+2018-10-10  Sergio Durigan Junior  <sergiodj@redhat.com>
+           Simon Marchi <simark@simark.ca>
+
+       * README (`configure' options): Add documentation for new
+       "--enable-unit-tests" option.
+       * acinclude.m4: Include "selftest.m4".
+       * configure: Regenerate.
+       * configure.ac: Use "GDB_AC_SELFTEST".
+       * maint.c (maintenance_selftest): Update message informing
+       that selftests have been disabled.
+       (maintenance_info_selftests): Likewise.
+       * selftest.m4: New file.
+
+2018-10-10  Gary Benson <gbenson@redhat.com>
+
+       * remote.c (remote_target::remote_send_printf): Add
+       missing va_end found by Coverity.
+
+2018-10-10  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * btrace.c (ftrace_update_function): Add indirect jump heuristic.
+
+2018-10-09  Tom Tromey  <tom@tromey.com>
+
+       * configure: Rebuild.
+       * sanitize.m4 (AM_GDB_UBSAN): Default to no.
+       * NEWS: Update --enable-ubsan documentation.
+
+2018-10-09  Gary Benson <gbenson@redhat.com>
+
+       * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
+       found by Coverity.
+
+2018-10-08  Tom Tromey  <tom@tromey.com>
+
+       * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
+       variable.
+       (riscv_fbsd_init_abi): Likewise.
+
+2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
+       * valops.c (value_struct_elt_for_reference): Rename local variable
+       to work around the shadowing a previous local warning.
+
+2018-10-08  John Baldwin  <jhb@FreeBSD.org>
+
+       * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
+       * NEWS: Mention new FreeBSD/riscv native configuration.
+       * configure.host: Add riscv*-*-freebsd*.
+       * configure.nat: Likewise.
+       * riscv-fbsd-nat.c: New file.
+
+2018-10-08  John Baldwin  <jhb@FreeBSD.org>
+
+       * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
+       (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
+       (ALLDEPFILES): Add riscv-fbsd-tdep.c.
+       * NEWS: Mention new FreeBSD/riscv target.
+       * configure.tgt: Add riscv*-*-freebsd*.
+       * riscv-fbsd-tdep.c: New file.
+       * riscv-fbsd-tdep.h: New file.
+
+2018-10-08  John Baldwin  <jhb@FreeBSD.org>
+
+       * regcache.h (struct regcache_map_entry): Note that this type can
+       be used with traditional frame caches.
+       * trad-frame.c (trad_frame_set_reg_regmap): New.
+       * trad-frame.h (trad_frame_set_reg_regmap): New.
+
+2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
+
+       PR c++/16841
+       * valops.c (get_virtual_base_offset): New function.
+       (value_struct_elt_for_reference): Use it to get virtual base offset
+       and add it in calculating class member address.
+
+2018-10-08   John Darrington <john@darrington.wattle.id.au>
+
+    * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
+      (check_producer): Check if the producer is codewarrior.
+      (producer_is_codewarrior): New function.
+      (lnp_state_machine::record_line): Ignore is_stmt flag for records
+       produced by codewarrior.
+      (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
+
+2018-10-06  Tom Tromey  <tom@tromey.com>
+
+       PR python/19399:
+       * python/py-inferior.c: Add "architecture" entry.
+       (infpy_architecture): New function.
+
+2018-10-06  Tom Tromey  <tom@tromey.com>
+
+       PR python/21765:
+       * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
+       SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
+       SYMBOL_TYPES_DOMAIN.  Define SYMBOL_MODULE_DOMAIN,
+       SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
+
+2018-10-06  Tom Tromey  <tom@tromey.com>
+
+       PR build/17077:
+       * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
+       * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
+       microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
+       #include.
+
+2018-10-06  Tom Tromey  <tom@tromey.com>
+
+       * python/py-breakpoint.c (bppy_get_location): Handle a
+       bp_breakpoint without a location.
+
+2018-10-06  Tom Tromey  <tom@tromey.com>
+
+       * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
+       (_RegEx): Reformat help text.
+       * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
+       (AnyCallerIs, AnyCallerMatches): Reformat help text.
+       * python/lib/gdb/function/as_string.py (_AsString): Reformat help
+       text.
+       * python/lib/gdb/command/xmethods.py (InfoXMethod)
+       (EnableXMethod, DisableXMethod): Remove help indentation.
+       Capitalize meta-syntactic variables.
+       * python/lib/gdb/command/unwinders.py (InfoUnwinder)
+       (EnableUnwinder, DisableUnwinder): Remove help indentation.
+       Capitalize meta-syntactic variables.
+       * python/lib/gdb/command/explore.py (ExploreCommand)
+       (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
+       * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
+       (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
+       * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
+       Remove help indentation.
+       (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
+       * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
+       (DisableFrameFilter, SetFrameFilterPriority)
+       (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
+
 2018-10-06  Tom Tromey  <tom@tromey.com>
 
        PR tui/28819: