PR gdb/18021 - defend against "static virtual" methods
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 8f5029a44864a098c316076c2f9f8565988e91cf..6d41940989580e4cb410436e63765914b44712ea 100644 (file)
@@ -1,3 +1,397 @@
+2015-03-23  Keith Seitz  <keiths@redhat.com>
+
+       PR gdb/18021
+       * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
+       if we find a static method with DW_AT_vtable_elem_location.
+
+2015-03-21  Eli Zaretskii  <eliz@gnu.org>
+
+       * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
+       before the second loop, to avoid undefined behavior.  Reported by
+       Anton Blanchard <anton@samba.org>.
+
+2015-03-20  Keven Boell  <keven.boell@intel.com>
+
+       * gdbtypes.c (resolve_dynamic_type_internal): Adapt
+       data_location usage to linked list.
+       (resolve_dynamic_type_internal): Adapt data_location to
+       linked list.
+       (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
+       (copy_type_recursive, copy_type): Add copy of linked list.
+       * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
+       (struct dynamic_prop_list): New struct.
+       * dwarf2read.c (set_die_type): Set data_location data.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
+       inner block and make it const.
+       * machoread.c (get_archive_prefix_len): Make "lparen" const.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
+       * breakpoint.h (set_breakpoint_condition): Update declaration.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
+       (nto_init_solib_absolute_prefix): Likewise.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
+       * spu-tdep.c (spu_gdbarch_init): Make "name" const.
+
+2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * config/djgpp/README: Remove gdb.hp.
+
+2015-03-20  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
+       set_gdbarch_cannot_step_breakpoint.
+
+2015-03-19  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (linux_resume_one_lwp): Rename to ...
+       (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
+       instead call perror_with_name.
+       (check_ptrace_stopped_lwp_gone): New function.
+       (linux_resume_one_lwp): Reimplement as wrapper around
+       linux_resume_one_lwp_throw that swallows errors if the LWP is
+       gone.
+       (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
+       swallows errors if the LWP is gone.  Use
+       linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
+
+2015-03-19  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (status_callback): Return early if the LWP has no
+       status pending.
+
+2015-03-19  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (select_event_lwp_callback): Update comment to no
+       longer mention SIGTRAP.
+
+2015-03-18  Tristan Gingold  <gingold@adacore.com>
+
+        * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
+        redirection code to ...
+        (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
+        checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
+
+2015-03-18  Gary Benson <gbenson@redhat.com>
+
+       (remote_protocol_features): Remove the "vFile:fstat" feature.
+       (remote_hostio_fstat): Probe for "vFile:fstat" support.
+
+2015-03-11  Yao Qi  <yao.qi@linaro.org>
+
+       PR tdep/18107
+       * aarch64-linux-tdep.c: Include xml-syscall.h
+       (aarch64_linux_get_syscall_number): New function.
+       (aarch64_linux_init_abi): Call
+       set_gdbarch_get_syscall_number.
+       * syscalls/aarch64-linux.xml: New file.
+
+2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
+
+       * ser-base.h (ser_base_setstopbits): Change second argument name
+       from "rate" to "num".
+
+2015-03-17  Gary Benson <gbenson@redhat.com>
+           Luke Allardyce <lukeallardyce@gmail.com>
+
+       PR gdb/18131
+       * common/common-remote-fileio.h (sys/stat.h): New include.
+       (stuct stat): Remove forward declaration.
+
+2015-03-16  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
+       before writing core register notes.
+
+2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * gdb_curses.h (tgetnum): Mark with EXTERN_C.
+       * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
+       (tgoto): Wrap with extern "C".
+
+2015-03-16  Pedro Alves  <palves@redhat.com>
+           Yuanhui Zhang  <asmwarrior@gmail.com>
+
+       * stub-termcap.c (tputs): Change prototype.
+
+2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * windows-nat.c (struct thread_info_struct): Rename to ...
+       (struct windows_thread_info_struct): ... this.
+       (thread_info): Rename to ...
+       (windows_thread_info): ... this.
+       All users updated.
+
+2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * NEWS: New Removed targets and native configurations.
+
+2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Remove HPUX.
+       * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
+       (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
+       (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
+       ia64-hpux-tdep.h, solib-ia64-hpux.h.
+       (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
+       ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
+       * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
+       hppa-hpux-tdep.c.
+       * config/ia64/hpux.mh: Remove file.
+       * config/pa/hpux.mh: Remove file.
+       * configure: Rebuilt.
+       * configure.ac (dlgetmodinfo, somread.o): Remove.
+       * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
+       (ia64-*-hpux*): Remove its float format exception.
+       * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
+       * hppa-hpux-nat.c: Remove file.
+       * hppa-hpux-tdep.c: Remove file.
+       * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
+       Move them here from hppa-tdep.h
+       (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
+       (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
+       * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
+       Move them to hppa-tdep.c.
+       (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
+       declarations.
+       * ia64-hpux-nat.c: Remove file.
+       * ia64-hpux-tdep.c: Remove file.
+       * ia64-hpux-tdep.h: Remove file.
+       * inf-ttrace.c: Remove file.
+       * inf-ttrace.h: Remove file.
+       * solib-ia64-hpux.c: Remove file.
+       * solib-ia64-hpux.h: Remove file.
+       * solib-pa64.c: Remove file.
+       * solib-pa64.h: Remove file.
+       * solib-som.c: Remove file.
+       * solib-som.h: Remove file.
+       * somread.c: Remove file.
+
+2015-03-13  John Baldwin  <jhb@FreeBSD.org>
+
+       * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
+       * config.in: Regenerate.
+       * configure: Regenerate.
+       * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
+        define.
+       (fbsd_find_memory_regions): Use kinfo_getvmmap to
+       enumerate memory regions if present.
+
+2015-03-13  John Baldwin  <jhb@FreeBSD.org>
+
+       * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
+       * i386fbsd-tdep.c: Fix style in various gdb_static_assert
+       expressions.
+       (i386fbsd_sigtramp_p): Likewise.
+
+2015-03-12  John Baldwin  <jhb@FreeBSD.org>
+
+       * MAINTAINERS (Write After Approval): Add John Baldwin.
+
+2015-03-12  Gary Benson <gbenson@redhat.com>
+
+       * solib.c (_initialize_solib): Make "set/show sysroot" use
+       add_setshow_optional_filename_cmd so it can be restored to
+       empty after being set.
+
+2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * Makefile.in (SFILES): New source break-catch-syscall.c.
+       (COMMON_OBS): New object break-catch-syscall.o.
+       * break-catch-syscall.c: New file.
+       * breakpoint.c: Remove inclusion of "xml-syscall.h".
+       (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
+       (struct syscall_catchpoint): Likewise.
+       (dtor_catch_syscall): Likewise.
+       (catch_syscall_inferior_data): Likewise.
+       (struct catch_syscall_inferior_data): Likewise.
+       (get_catch_syscall_inferior_data): Likewise.
+       (catch_syscall_inferior_data_cleanup): Likewise.
+       (insert_catch_syscall): Likewise.
+       (remove_catch_syscall): Likewise.
+       (breakpoint_hit_catch_syscall): Likewise.
+       (print_it_catch_syscall): Likewise.
+       (print_one_catch_syscall): Likewise.
+       (print_mention_catch_syscall): Likewise.
+       (print_recreate_catch_syscall): Likewise.
+       (catch_syscall_breakpoint_ops): Likewise.
+       (syscall_catchpoint_p): Likewise.
+       (create_syscall_event_catchpoint): Likewise.
+       (catch_syscall_split_args): Likewise.
+       (catch_syscall_command_1): Likewise.
+       (is_syscall_catchpoint_enabled): Likewise.
+       (catch_syscall_enabled): Likewise.
+       (catching_syscall_number): Likewise.
+       (catch_syscall_completer): Likewise.
+       (clear_syscall_counts): Likewise.
+       (initialize_breakpoint_ops): Move initialization of syscall
+       catchpoints to break-catch-syscall.c.
+       (_initialize_breakpoint): Move code related to syscall catchpoints
+       to break-catch-syscall.c.
+
+2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * breakpoint.c (breakpoint_find_if): New function.
+       * breakpoint.h (breakpoint_find_if): New prototype.
+
+2015-03-11  Gary Benson <gbenson@redhat.com>
+
+       * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
+       * remote-fileio.c (remote_fileio_to_host_uint): New function.
+       (remote_fileio_to_host_ulong): Likewise.
+       (remote_fileio_to_host_mode): Likewise.
+       (remote_fileio_to_host_time): Likewise.
+       (remote_fileio_to_host_stat): Likewise.
+       * remote.c (PACKET_vFile_fstat): New enum value.
+       (remote_protocol_features): Register the "vFile:fstat" feature.
+       (remote_hostio_fstat): New function.
+       (remote_bfd_iovec_stat): Use the above.
+       (_initialize_remote): Register new "set/show remote
+       hostio-fstat-packet" command.
+       * symfile.c (separate_debug_file_exists): Update comment.
+       * NEWS: Announce new vFile:fstat packet.
+
+2015-03-11  Gary Benson <gbenson@redhat.com>
+
+       * common/common-remote-fileio.h: New file.
+       * common/common-remote-fileio.c: Likewise.
+       * Makefile.in (SFILES): Add common/common-remote-fileio.c.
+       (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
+       (COMMON_OBS): Add common-remote-fileio.o.
+       (common-remote-fileio.o): New rule.
+       * remote-fileio.h (common-remote-fileio.h): New include.
+       * remote-fileio.c (gdb/fileio.h): Do not include.
+       (remote_fileio_to_be): Moved to common-remote-fileio.h.
+       (remote_fileio_to_fio_uint): Likewise.
+       (remote_fileio_to_fio_time): Likewise.
+       (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
+       (remote_fileio_to_fio_mode): Likewise.
+       (remote_fileio_to_fio_ulong): Likewise.
+       (remote_fileio_to_fio_stat): Likewise.
+
+2015-03-11  Andy Wingo  <wingo@igalia.com>
+
+       * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
+       we were checking the cached type, not the cached dynamic type.
+
+2015-03-11  Andy Wingo  <wingo@igalia.com>
+
+       * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
+       other strings, as these are on the GC'd heap, and will be
+       collected along with the smob.
+
+2015-03-11  Andy Wingo  <wingo@igalia.com>
+
+       * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
+       (objfile_functions): Bind gdbscm_objfile_progspace to
+       objfile-progspace.
+       * guile/lib/gdb.scm: Add objfile-progspace to exports.
+
+2015-03-11  Andy Wingo  <wingo@igalia.com>
+
+       * guile/guile.c (_initialize_guile): Disable automatic
+       finalization, if Guile offers us that possibility.
+       * guile/guile.c (call_initialize_gdb_module):
+       * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
+       finalizers in appropriate places.
+       * configure.ac (AC_TRY_LIBGUILE): Add a check for
+       scm_set_automatic_finalization_enabled.
+       * configure: Regenerated.
+
+2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
+       SAL, if possible.
+
+2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * s390-linux-nat.c (struct arch_lwp_info): New.
+       (s390_fix_watch_points): Rename to...
+       (s390_prepare_to_resume): ...this.  Skip the PER info update
+       unless the watch points have changed.
+       (s390_refresh_per_info, s390_new_thread): New functions.
+       (s390_insert_watchpoint): Call s390_refresh_per_info instead of
+       s390_fix_watch_points.
+       (s390_remove_watchpoint): Likewise.
+       (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
+       Register s390_prepare_to_resume.
+
+2015-03-09  Pedro Alves  <palves@redhat.com>
+
+       Revert:
+       2015-03-07  Pedro Alves  <palves@redhat.com>
+       * common/gdb_socket.h: New file.
+       * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
+       sys/socket.h.
+       (net_open): Use union gdb_sockaddr_u.
+
+2015-03-07  Pedro Alves  <palves@redhat.com>
+
+       * configure.ac (build_warnings): Move -Wmissing-prototypes
+       -Wdeclaration-after-statement -Wmissing-parameter-type
+       -Wold-style-declaration -Wold-style-definition to the C-specific
+       set.
+       * configure: Regenerate.
+
+2015-03-07  Pedro Alves  <palves@redhat.com>
+
+       * common/gdb_socket.h: New file.
+       * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
+       sys/socket.h.
+       (net_open): Use union gdb_sockaddr_u.
+
+2015-03-07  Pedro Alves  <palves@redhat.com>
+
+       * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
+       (exceptions_state_mc_action_iter)
+       (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
+       Don't define.
+       [__cplusplus] (try_scope_depth): New global.
+       [__cplusplus] (exception_try_scope_entry)
+       (exception_try_scope_exit, gdb_exception_sliced_copy)
+       (exception_rethrow): New functions.
+       (throw_exception): In C++ mode, throw
+       gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
+       gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
+       (throw_it): In C++ mode, use try_scope_depth.
+       * common/common-exceptions.h [!__cplusplus]
+       (exceptions_state_mc_action_iter)
+       (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
+       Don't declare.
+       [__cplusplus] (exception_try_scope_entry)
+       (exception_try_scope_exit, exception_rethrow): Declare.
+       [__cplusplus] (struct exception_try_scope): New struct.
+       [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
+       C++ exceptions.
+       (struct gdb_exception_RETURN_MASK_ALL)
+       (struct gdb_exception_RETURN_MASK_ERROR)
+       (struct gdb_exception_RETURN_MASK_QUIT): New types.
+
 2015-03-07  Pedro Alves  <palves@redhat.com>
 
        * main.c (handle_command_errors): Remove volatile qualifier from
This page took 0.0288620000000001 seconds and 4 git commands to generate.