Fallback to stub-termcap.c on all hosts
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 3695bb39a5a58d9d968c19429acb90bcc7b71aab..919e93cec168863a76bb20485476d1ae921f5a20 100644 (file)
@@ -1,3 +1,462 @@
+2015-04-06  Pedro Alves  <palves@redhat.com>
+           Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * configure.ac: Remove the mingw32-specific stub-termcap.o
+       fallback, and instead fallback to the stub termcap on all hosts.
+       * configure: Regenerate.
+       * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
+       symbols.
+
+2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * gdbtypes.c (is_dynamic_type_internal): Remove the unused
+       "top_level" parameter.
+       (resolve_dynamic_type_internal): Remove the unused "top_level"
+       parameter.  Update call to is_dynamic_type_internal.
+       (is_dynamic_type): Update call to is_dynamic_type_internal.
+       (resolve_dynamic_range): Update call to
+       resolve_dynamic_type_internal.
+       (resolve_dynamic_union): Likewise.
+       (resolve_dynamic_struct): Likewise.
+       (resolve_dynamic_type): Likewise.
+
+2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
+       TYPE_CODE_REF types so that they are not considered as dynamic
+       depending on the referenced type.
+       (resolve_dynamic_type_internal): Likewise.
+
+2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.in (top_srcdir): New.
+       * configure: Regenerated.
+
+2015-04-02  Gary Benson <gbenson@redhat.com>
+
+       * NEWS: Announce the new default sysroot of "target:".
+
+2015-04-02  Gary Benson <gbenson@redhat.com>
+
+       * main.c (captured_main): Set gdb_sysroot to "target:"
+       if not otherwise set.
+
+2015-04-02  Gary Benson <gbenson@redhat.com>
+
+       * exec.c (exec_file_attach): Support "target:" filenames.
+
+2015-04-02  Gary Benson <gbenson@redhat.com>
+
+       * solib.c (solib_find): Strip "target:" prefix from sysroot
+       if accessing local files.
+
+2015-04-02  Gary Benson <gbenson@redhat.com>
+
+       * symfile.c (symfile_bfd_open): Reorder to remove duplicated
+       checks and error messages.
+
+2015-04-02  Gary Benson <gbenson@redhat.com>
+
+       * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
+       (remote_filename_p): Remove declaration.
+       (remote_bfd_open): Likewise.
+       * remote.c (remote_bfd_iovec_open): Remove function.
+       (remote_bfd_iovec_close): Likewise.
+       (remote_bfd_iovec_pread): Likewise.
+       (remote_bfd_iovec_stat): Likewise.
+       (remote_filename_p): Likewise.
+       (remote_bfd_open): Likewise.
+       * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
+       * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
+       (gdb_bfd_open_maybe_remote): Remove function.
+       (symfile_bfd_open):  Replace remote filename check with
+       target filename check.
+       (reread_symbols): Use gdb_bfd_open.
+       * build-id.c (gdbcore.h): New include.
+       (build_id_to_debug_bfd): Use gdb_bfd_open.
+       * infcmd.c (attach_command_post_wait): Remove remote filename
+       check.
+       * solib.c (solib_find): Replace remote-specific handling with
+       target-specific handling.  Update comments where necessary.
+       (solib_bfd_open): Replace remote-specific handling with
+       target-specific handling.
+       (gdb_sysroot_changed): New function.
+       (_initialize_solib): Call the above when gdb_sysroot changes.
+       * windows-tdep.c (gdbcore.h): New include.
+       (windows_xfer_shared_library): Use gdb_bfd_open.
+
+2015-04-02  Gary Benson <gbenson@redhat.com>
+
+       * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
+       (is_target_filename): New declaration.
+       (gdb_bfd_has_target_filename): Likewise.
+       (gdb_bfd_open): Update documentation comment.
+       * gdb_bfd.c (target.h): New include.
+       (gdb/fileio.h): Likewise.
+       (is_target_filename): New function.
+       (gdb_bfd_has_target_filename): Likewise.
+       (fileio_errno_to_host): Likewise.
+       (gdb_bfd_iovec_fileio_open): Likewise.
+       (gdb_bfd_iovec_fileio_pread): Likewise.
+       (gdb_bfd_iovec_fileio_close): Likewise.
+       (gdb_bfd_iovec_fileio_fstat): Likewise.
+       (gdb_bfd_open): Use target fileio to access paths prefixed
+       with "target:" where necessary.
+
+2015-04-02  Gary Benson <gbenson@redhat.com>
+
+       * target.h (struct target_ops) <to_filesystem_is_local>:
+       New field.
+       (target_filesystem_is_local): New macro.
+       * target-delegates.c: Regenerate.
+       * remote.c (remote_filesystem_is_local): New function.
+       (init_remote_ops): Initialize to_filesystem_is_local.
+
+2015-04-02  Gary Benson <gbenson@redhat.com>
+
+       * target.h (struct target_ops) <to_fileio_fstat>: New field.
+       (target_fileio_fstat): New declaration.
+       * target.c (target_fileio_fstat): New function.
+       * inf-child.c (inf_child_fileio_fstat): Likewise.
+       (inf_child_target): Initialize to_fileio_fstat.
+       * remote.c (init_remote_ops): Likewise.
+
+2015-04-01  Sasha Smundak  <asmundak@google.com>
+
+       * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
+       (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
+       (py-unwind.o): New recipe.
+       * NEWS: mention Python frame unwinding.
+       * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
+       gdb/unwinder.py and gdb/command/unwinder.py
+       * python/lib/gdb/__init__.py (packages): Add frame_unwinders
+       list.
+       (execute_unwinders): New function.
+       * python/lib/gdb/command/unwinders.py: New file.
+       * python/lib/gdb/unwinder.py: New file.
+       * python/py-objfile.c (objfile_object): Add frame_unwinders field.
+       (objfpy_dealloc): Decrement frame_unwinders reference count.
+       (objfpy_initialize): Create frame_unwinders list.
+       (objfpy_get_frame_unwinders): New function.
+       (objfpy_set_frame_unwinders): Ditto.
+       (objfile_getset): Add frame_unwinders attribute to Objfile.
+       * python/py-progspace.c (pspace_object): Add frame_unwinders field.
+       (pspy_dealloc): Decrement frame_unwinders reference count.
+       (pspy_initialize): Create frame_unwinders list.
+       (pspy_get_frame_unwinders): New function.
+       (pspy_set_frame_unwinders): Ditto.
+       (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
+       * python/py-unwind.c: New file.
+       * python/python-internal.h (pspy_get_name_unwinders): New prototype.
+       (objpy_get_frame_unwinders): New prototype.
+       (gdbpy_initialize_unwind): New prototype.
+       * python/python.c (gdbpy_apply_type_printers): Call
+       gdbpy_initialize_unwind.
+
+2015-04-01  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (resume): Check currently_stepping after clearing
+       stepped_breakpoint, not before.
+
+2015-04-01  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (print_target_wait_results): Print all the ptid
+       elements.
+
+2015-04-01  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (keep_going): Also discard cleanups if inserting
+       breakpoints fails.
+
+2015-04-01  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (wait_for_inferior): Install the
+       finish_thread_state_cleanup cleanup across the whole function, not
+       just around handle_inferior_event.
+
+2015-04-01  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (resume) <step past permanent breakpoint>: Use
+       do_target_resume.
+
+2015-04-01  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (linux_handle_extended_wait): Always call set_running.
+
+2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
+
+2015-04-01  Pedro Alves  <palves@redhat.com>
+
+       * linux-thread-db.c (record_thread): Readd the thread to gdb's
+       list if it was marked exited.
+
+2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure: Regenerated.
+
+2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Oleg Nesterov  <oleg@redhat.com>
+
+       PR corefiles/16092
+       * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
+       New enum identifying the various options of the coredump_filter
+       file.
+       (struct smaps_vmflags): New struct.
+       (use_coredump_filter): New variable.
+       (decode_vmflags): New function.
+       (mapping_is_anonymous_p): Likewise.
+       (dump_mapping_p): Likewise.
+       (linux_find_memory_regions_full): New variables
+       'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
+       Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
+       parsing of its information.  Implement memory mapping filtering
+       based on its contents.
+       (show_use_coredump_filter): New function.
+       (_initialize_linux_tdep): New command 'set use-coredump-filter'.
+       * NEWS: Mention the possibility of using the
+       '/proc/PID/coredump_filter' file when generating a corefile.
+       Mention new command 'set use-coredump-filter'.
+
+2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
+       read_memory_unsigned_integer.
+
+2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.in (ZLIB): New.
+       (ZLIBINC): Likewise.
+       (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
+       (CLIBS): Add $(ZLIB).
+       * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
+       Add -lz to LIBS.
+       * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
+       * top.c (print_gdb_configuration): Remove --with-zlib and
+       --without-zlib.
+       * config.in: Regenerated.
+       * configure: Likewise.
+
+2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
+
+       * NEWS: Mention info os cpus support.
+       * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
+       (struct osdata_type): Add cpus entry, reorder the entries in
+       alphabetical order.
+
+2015-03-31  Matthias Klose  <doko@ubuntu.com>
+
+       * compile/compile.c (compile_to_object): Allow triplets with or
+       without vendor set.
+
+2015-03-30  Doug Evans  <dje@google.com>
+
+       PR c++/18141
+       * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
+       klass in VAR_DOMAIN.
+
+2015-03-30  Gary Benson <gbenson@redhat.com>
+
+       * remote.c (remote_mourn_1): Remove function.  Update all callers
+       to use remote_mourn.
+       (extended_remote_mourn_1): Remove function.  Update all callers
+       to use extended_remote_mourn.
+       (extended_remote_attach_1): Remove function.  Update all callers
+       to use extended_remote_attach.
+
+2015-03-28  James Bowman  <james.bowman@ftdichip.com>
+
+       * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
+       (HFILES_NO_SRCDIR): Add ft32-tdep.h.
+       (ALLDEPFILES): Add ft32-tdep.c.
+       * configure.tgt: Add FT32 entry.
+       * ft32-tdep.c: New file, FT32 target-dependent code.
+       * ft32-tdep.h: New file, FT32 target-dependent code.
+
+2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Revert:
+       2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
+       Code cleanup.
+       * printcmd.c (print_command_1): Move expr variable scope.
+
+2015-03-27  Joel Brobecker  <brobecker@adacore.com>
+
+       * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
+
+2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
+
+       * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
+       sections.
+
+2015-03-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * dtrace-probe.c (dtrace_process_dof_probe): Contain any
+       exception raised while parsing the probe arguments.
+       Force parsing to be done using the C language parser.
+       * expression.h (parse_expression_with_language): Declare.
+       * parse.c (parse_expression_with_language): New function.
+
+2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * MAINTAINERS (Write After Approval): Add "Jon Turney".
+
+2015-03-26  Andy Wingo  <wingo@igalia.com>
+
+       PR symtab/18148
+       * dwarf2read.c (struct partial_die_info): Add has_const_value
+       member.
+       (add_partial_symbol): Don't punt on symbols that have const_value
+       attributes.
+       (read_partial_die): Detect DW_AT_const_value.
+
+2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * printcmd.c (print_command_1): Move expr variable scope.
+
+2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * printcmd.c (validate_format): Make the parameter cmdname const.
+
+2015-03-26  Don Breazeal  <donb@codesourcery.com>
+
+       * remote.c (_initialize_remote): Update comment.
+
+2015-03-26  Pedro Alves  <palves@redhat.com>
+           Jon TURNEY  <jon.turney@dronecode.org.uk>
+
+       * coffread.c (coff_symfile_read): When constructing the name of an
+       import stub symbol from import symbol for amd64, only skip the
+       char after _imp_ if the target is underscored (like i386) and the
+       char is indeed the target's leading char.
+
+2015-03-25  Pedro Alves  <palves@redhat.com>
+
+       * target.h <to_async>: Replace 'callback' and 'context' parameters
+       with boolean 'enable' parameter.
+       (target_async): Replace CALLBACK and CONTEXT parameters with
+       boolean ENABLE parameter.
+       * inf-loop.c (inferior_event_handler): Adjust.
+       * linux-nat.c (linux_nat_attach, linux_nat_resume)
+       (linux_nat_resume): Adjust.
+       (async_client_callback, async_client_context): Delete.
+       (handle_target_event): Call inferior_event_handler directly.
+       (linux_nat_async): Replace 'callback' and 'context' parameters
+       with boolean 'enable' parameter.  Adjust.  Remove references to
+       async_client_callback and async_client_context.
+       (linux_nat_close): Adjust.
+       * record-btrace.c (record_btrace_async): Replace 'callback' and
+       'context' parameters with boolean 'enable' parameter.  Adjust.
+       (record_btrace_resume): Adjust.
+       * record-full.c (record_full_async): Replace 'callback' and
+       'context' parameters with boolean 'enable' parameter.  Adjust.
+       (record_full_resume, record_full_core_resume): Adjust.
+       * remote.c (struct remote_state) <async_client_callback,
+       async_client_context>: Delete fields.
+       (remote_start_remote, extended_remote_attach_1, remote_resume)
+       (extended_remote_create_inferior): Adjust.
+       (remote_async_serial_handler): Call inferior_event_handler
+       directly.
+       (remote_async): Replace 'callback' and 'context' parameters with
+       boolean 'enable' parameter.  Adjust.
+       * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
+       Adjust.
+       * target-delegates.c: Regenerate.
+
+2015-03-25  Gary Benson <gbenson@redhat.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * target.c (fileio_ft_t): New typedef, define object vector.
+       (fileio_fhandles): New static variable.
+       (is_closed_fileio_fh): New macro.
+       (lowest_closed_fd): New static variable.
+       (acquire_fileio_fd): New function.
+       (release_fileio_fd): Likewise.
+       (fileio_fd_to_fh): New macro.
+       (target_fileio_open): Wrap the file descriptor on success.
+       (target_fileio_pwrite): Updated to use wrapped file descriptor.
+       (target_fileio_pread): Likewise.
+       (target_fileio_close): Likewise.
+
+2015-03-24  Pedro Alves  <palves@redhat.com>
+
+       * thread.c (thread_apply_all_command): Take exited threads into
+       account.
+
+2015-03-24  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (resume, proceed): Mention
+       switch_back_to_stepped_thread, not switch_back_to_stepping.
+
+2015-03-24  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (user_visible_resume_ptid): Rewrite going from
+       most-locked to unlocked instead of the opposite.  Move comment ...
+       * infrun.h (user_visible_resume_ptid): ... here.
+
+2015-03-24  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (linux_nat_resume): Output debug logs before trying
+       to resume the event lwp.  Use the lwp's ptid instead of the passed
+       in (maybe wildcard) ptid.
+       (stop_wait_callback): Tweak debug log output.
+       (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
+       TRAP_TRACE.
+       (linux_nat_filter_event): In debug output, distinguish a
+       resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
+       before trying to resume the lwp.
+
+2015-03-24  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
+       pointer indirection.
+       * gdbtypes.c (get_dyn_prop): Adjust, following change above.
+       (add_dyn_prop, copy_dynamic_prop_list): Likewise.
+
+2015-03-24  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
+       Renames DYN_ATTR_DATA_LOCATION.
+       (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
+       DYN_ATTR_DATA_LOCATION.
+       * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
+       instead of DYN_ATTR_DATA_LOCATION.
+
+2015-03-24  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (until_break_command): Adjust call to proceed.
+       * gdbthread.h (struct thread_control_state) <stepping_command>:
+       New field.
+       * infcall.c (run_inferior_call): Adjust call to proceed.
+       * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
+       Adjust calls to proceed.
+       (set_step_frame): Set the current thread's step_start_function
+       here.
+       (step_once): Adjust calls to proceed.
+       (jump_command, signal_command, until_next_command)
+       (finish_backward, finish_forward, proceed_after_attach_callback)
+       (attach_command_post_wait): Adjust calls to proceed.
+       * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
+       (do_target_resume): New function, factored out from ...
+       (resume): ... here.  Remove 'step' parameter.  Instead, check
+       currently_stepping to determine whether the thread should be
+       single-stepped.
+       (proceed): Remove 'step' parameter and don't set the thread's
+       step_start_function here.  Adjust call to 'resume'.
+       (handle_inferior_event): Adjust calls to 'resume'.
+       (switch_back_to_stepped_thread): Use do_target_resume instead of
+       'resume'.
+       (keep_going): Adjust calls to 'resume'.
+       * infrun.h (proceed): Remove 'step' parameter.
+       (resume): Likewise.
+       * windows-nat.c (do_initial_windows_stuff): Adjust call to
+       'resume'.
+       * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
+
 2015-03-24  Pedro Alves  <palves@redhat.com>
 
        * gdbthread.h (struct thread_control_state) <stepping_command>:
This page took 0.038262 seconds and 4 git commands to generate.