X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=3de085afcf0018d8ab167d704f5de5303c54741d;hb=8f572e5c0f71fd6641768985855b2e0955a78f51;hp=a5abe28e14d1a71a03aacbbd475bac7136d12e22;hpb=a25d8bf9c5b2c9d3671f4508c9132485c65c3773;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a5abe28e14..3de085afcf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,545 @@ +2015-04-10 Pedro Alves + + * infrun.c (displaced_step_in_progress): New function. + (do_target_resume): Advise target to report all signals if + displaced stepping. + +2015-04-10 Pedro Alves + + PR gdb/18216 + * infrun.c (process_event_stop_test): Don't assume a step-resume + is set if tp->stepped_breakpoint is true. + +2015-04-10 Yao Qi + + * arm-tdep.c (install_alu_reg): Update comment. + (thumb_copy_alu_reg): Remove local variable rn. Update + debugging message. Use r2 instead of r1 in the modified + instruction. + +2015-04-10 Pedro Alves + + PR gdb/13858 + * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install + linux_displaced_step_location as gdbarch_displaced_step_location + hook. + * arm-linux-tdep.c (arm_linux_init_abi): Likewise. + * i386-linux-tdep.c (i386_linux_init_abi): Likewise. + * linux-tdep.c (linux_displaced_step_location): New function, + based on ppc_linux_displaced_step_location. + * linux-tdep.h (linux_displaced_step_location): New declaration. + * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete. + (ppc_linux_inferior_created, ppc_linux_displaced_step_location): + Delete. + (ppc_linux_init_abi): Install linux_displaced_step_location as + gdbarch_displaced_step_location hook, even without Cell/B.E.. + (_initialize_ppc_linux_tdep): Don't install + ppc_linux_inferior_created as inferior_created observer. + * s390-linux-tdep.c (s390_gdbarch_init): Install + linux_displaced_step_location as gdbarch_displaced_step_location + hook. + +2015-04-09 Gary Benson + + * common/common-remote-fileio.h: Rename to... + * common/fileio.h: ...this. Update all references. + (remote_fileio_to_fio_error): Rename to... + (host_to_fileio_error): ...this. + (remote_fileio_to_be): Rename to... + (host_to_bigendian): ...this. Update all callers. + (remote_fileio_to_fio_uint): Rename to... + (host_to_fileio_uint): ...this. Update all callers. + (remote_fileio_to_fio_time): Rename to... + (host_to_fileio_time): ...this. Update all callers. + (remote_fileio_to_fio_stat): Rename to... + (host_to_fileio_stat): ...this. + Update all references. + * common/common-remote-fileio.c: Rename to... + * common/fileio.c: ...this. Update all references. + (remote_fileio_to_fio_error): Rename to... + (host_to_fileio_error): ...this. Update all callers. + (remote_fileio_mode_to_target): Rename to... + (fileio_mode_pack): ...this. Update all callers. + (remote_fileio_to_fio_mode): Rename to... + (host_to_fileio_mode): ...this. Update all callers. + (remote_fileio_to_fio_ulong): Rename to... + (host_to_fileio_ulong): ...this. Update all callers. + (remote_fileio_to_fio_stat): Rename to... + (host_to_fileio_stat): ...this. Update all callers. + +2015-04-09 Andy Wingo + + * guile/scm-frame.c (gdbscm_frame_read_register): New function. + (frame_functions): Bind gdbscm_frame_read_register to + frame-read-register. + * guile/lib/gdb.scm (frame-read-register): Export. + +2015-04-09 Gary Benson + + * common/common-remote-fileio.h (remote_fileio_to_fio_error): + New declaration. + * common/common-remote-fileio.c (remote_fileio_to_fio_error): + New function, factored out the named functions below. + * inf-child.c (gdb/fileio.h): Remove include. + (common-remote-fileio.h): New include. + (inf_child_errno_to_fileio_error): Remove function. Update + all callers to use remote_fileio_to_fio_error. + * remote-fileio.c (remote_fileio_errno_to_target): Likewise. + +2015-04-09 Andy Wingo + + * MAINTAINERS (Write After Approval): Add Andy Wingo. + +2015-04-09 H.J. Lu + + * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir. + Replace $zlibdir with $ZLIBDIR in LDFLAGS. + * configure: Regenerated. + +2015-04-09 Pedro Alves + + * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r. + * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4. + * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate. + * gnulib/import/Makefile.am: Update. + * gnulib/import/Makefile.in: Update. + * gnulib/import/m4/gnulib-cache.m4: Update. + * gnulib/import/m4/gnulib-comp.m4: Update. + * gnulib/import/m4/strtok_r.m4: New file. + * gnulib/import/strtok_r.c: New file. + +2015-04-09 Pedro Alves + + * gnulib/update-gnulib.sh (aclocal version check): Filter out + "called too early to check prototype". + +2015-04-08 Sergio Durigan Junior + + PR python/16699 + * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not + use a caching mechanism. Adjust comments and code to reflect + that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'. + (cmdpy_completer_handle_brkchars): Adjust call to + cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'. + (cmdpy_completer): Likewise. + +2015-04-08 Yao Qi + + * spu-tdep.c (spu_gdbarch_init): Don't call + set_gdbarch_cannot_step_breakpoint. + +2015-04-07 Sergio Durigan Junior + + * linux-tdep.c (decode_vmflags): Initialize 'saveptr'. + +2015-04-07 Pedro Alves + + * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ... + (ALL_THREADS_SAFE): ... this, and don't skip exited threads. + (delete_exited_threads): New declaration. + * infrun.c (follow_exec): Use ALL_THREADS_SAFE. + * linux-nat.c (linux_nat_update_thread_list): New function. + (linux_nat_add_target): Install it. + * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE. + * thread.c (prune_threads): Use ALL_THREADS_SAFE. + (delete_exited_threads): New function. + +2015-04-07 Pedro Alves + + * infrun.c (resume) : Get the + leader thread's regcache, not resume_ptid's. + +2015-04-06 Doug Evans + + * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as + VAR_DOMAIN. + (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters. + Include symbol domain in debugging output. + +2015-04-06 Pedro Alves + Bernd Edlinger + + * 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 + + * 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 + + * 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 + + * Makefile.in (top_srcdir): New. + * configure: Regenerated. + +2015-04-02 Gary Benson + + * NEWS: Announce the new default sysroot of "target:". + +2015-04-02 Gary Benson + + * main.c (captured_main): Set gdb_sysroot to "target:" + if not otherwise set. + +2015-04-02 Gary Benson + + * exec.c (exec_file_attach): Support "target:" filenames. + +2015-04-02 Gary Benson + + * solib.c (solib_find): Strip "target:" prefix from sysroot + if accessing local files. + +2015-04-02 Gary Benson + + * symfile.c (symfile_bfd_open): Reorder to remove duplicated + checks and error messages. + +2015-04-02 Gary Benson + + * 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 + + * 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 + + * target.h (struct target_ops) : + 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 + + * target.h (struct target_ops) : 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 + + * 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 + + * infrun.c (resume): Check currently_stepping after clearing + stepped_breakpoint, not before. + +2015-04-01 Pedro Alves + + * infrun.c (print_target_wait_results): Print all the ptid + elements. + +2015-04-01 Pedro Alves + + * infrun.c (keep_going): Also discard cleanups if inserting + breakpoints fails. + +2015-04-01 Pedro Alves + + * 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 + + * infrun.c (resume) : Use + do_target_resume. + +2015-04-01 Pedro Alves + + * linux-nat.c (linux_handle_extended_wait): Always call set_running. + +2015-04-01 Pierre-Marie de Rodat + + * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat". + +2015-04-01 Pedro Alves + + * linux-thread-db.c (record_thread): Readd the thread to gdb's + list if it was marked exited. + +2015-04-01 H.J. Lu + + * configure: Regenerated. + +2015-03-31 Sergio Durigan Junior + Jan Kratochvil + Oleg Nesterov + + 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//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 + + * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by + read_memory_unsigned_integer. + +2015-03-31 H.J. Lu + + * 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 . + * top.c (print_gdb_configuration): Remove --with-zlib and + --without-zlib. + * config.in: Regenerated. + * configure: Likewise. + +2015-03-31 Antoine Tremblay + + * 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 + + * compile/compile.c (compile_to_object): Allow triplets with or + without vendor set. + +2015-03-30 Doug Evans + + PR c++/18141 + * cp-namespace.c (cp_search_static_and_baseclasses): Always look for + klass in VAR_DOMAIN. + +2015-03-30 Gary Benson + + * 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 + + * 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 + + Revert: + 2015-03-26 Jan Kratochvil + Code cleanup. + * printcmd.c (print_command_1): Move expr variable scope. + +2015-03-27 Joel Brobecker + + * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL. + +2015-03-27 Andrzej Kaczmarek + + * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special + sections. + +2015-03-26 Joel Brobecker + + * 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 + + * MAINTAINERS (Write After Approval): Add "Jon Turney". + +2015-03-26 Andy Wingo + + 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 + + Code cleanup. + * printcmd.c (print_command_1): Move expr variable scope. + +2015-03-26 Jan Kratochvil + + Code cleanup. + * printcmd.c (validate_format): Make the parameter cmdname const. + +2015-03-26 Don Breazeal + + * remote.c (_initialize_remote): Update comment. + +2015-03-26 Pedro Alves + Jon TURNEY + + * 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 + + * target.h : 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) : 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 + Pedro Alves + + * 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 * thread.c (thread_apply_all_command): Take exited threads into