Strip "target:" prefix in solib_find if accessing local files
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 0dcb3a3d7f40db80f3ec3b39fa8ef6a380924647..7cc4265872478ab1c197504fbd9b251c295dbf4c 100644 (file)
@@ -1,3 +1,204 @@
+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
This page took 0.028375 seconds and 4 git commands to generate.