Add signal number conversions for OpenBSD.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 146ac98faebfd5d989306d461a2e1f6c75154ed1..89ccbe60fcc3f1753790d57765b3c465b069f73b 100644 (file)
@@ -1,3 +1,395 @@
+2014-02-12  Mark Kettenis  <kettenis@gnu.org>
+
+       * obsd-tdep.h (obsd_init_abi): New prototype.
+       * obsd-tdep.c: Define enum with OpenBSD signal numbers.
+       (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
+       (obsd_init_abi): New functions.
+       * i386obsd-tdep.c: Include "obsd-tdep.h".
+       (i386obsd_init_abi): Call obsd_init_abi.
+       * amd64obsd-tdep.c: Include "obsd-tdep.h".
+       (amd64obsd_init_abi): Call obsd_init_abi.
+       * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
+       obsd-tdep.c to gdb_target_obs.
+
+2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+        * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
+        double float arguments to 16-byte in the argument slots.
+
+2014-02-11  Doug Evans  <xdje42@gmail.com>
+
+       * configure.ac: Don't crash if pkg-config is not found and guile
+       wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
+       in guile checks.
+       * configure: Regenerate.
+
+2014-02-11  Yao Qi  <yao@codesourcery.com>
+
+       * aix-thread.c (aix_thread_xfer_partial): Update comments.
+       * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
+       * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
+       * gnu-nat.c (gnu_xfer_memory): Likewise.
+       * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
+       * rs6000-nat.c (rs6000_xfer_partial): Likewise.
+       * sparc-nat.c (sparc_xfer_wcookie): Likewise.
+       * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
+
+2014-02-11  Yao Qi  <yao@codesourcery.com>
+
+       * target.h (enum target_xfer_error): Rename to ...
+       (enum target_xfer_status): ... it.  New.  All users updated.
+       (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
+       New.
+       (TARGET_XFER_STATUS_ERROR_P): New macro.
+       (target_xfer_error_to_string): Remove declaration.
+       (target_xfer_status_to_string): Declare.
+       (target_xfer_partial_ftype): Adjust it.
+       (struct target_ops) <to_xfer_partial>: Return
+       target_xfer_status.  Add argument xfered_len.  Update
+       comments.
+       * target.c (target_xfer_error_to_string): Rename to ...
+       (target_xfer_status_to_string): ... it.  New.  All callers
+       updated.
+       (target_read_live_memory): Likewise.  Call target_xfer_partial
+       instead of target_read.
+       (memory_xfer_live_readonly_partial): Return
+       target_xfer_status.  Add argument xfered_len.
+       (raw_memory_xfer_partial): Likewise.
+       (memory_xfer_partial_1): Likewise.
+       (memory_xfer_partial): Likewise.
+       (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
+       properly.  Update debug message.
+       (default_xfer_partial, current_xfer_partial): Likewise.
+       (target_write_partial): Likewise.
+       (target_read_partial): Likewise.  All callers updated.
+       (read_whatever_is_readable): Likewise.
+       (target_write_with_progress): Likewise.
+       (target_read_alloc_1): Likewise.
+
+       * aix-thread.c (aix_thread_xfer_partial): Likewise.
+       * auxv.c (procfs_xfer_auxv): Likewise.
+       (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
+       * bfd-target.c (target_bfd_xfer_partial): Likewise.
+       * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
+       * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
+       * corefile.c (read_memory): Adjust.
+       * corelow.c (core_xfer_partial): Likewise.
+       * ctf.c (ctf_xfer_partial): Likewise.
+       * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
+       updated.
+       (darwin_xfer_partial): Likewise.
+       * exec.c (section_table_xfer_memory_partial): Likewise.  All
+       callers updated.
+       (exec_xfer_partial): Likewise.
+       * exec.h (section_table_xfer_memory_partial): Update
+       declaration.
+       * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
+       negative.
+       (gnu_xfer_partial): Likewise.
+       * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
+       (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
+       (ia64_hpux_xfer_solib_got): Likewise.
+       * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
+       type of 'partial_len' to ULONGEST.
+       * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
+       * linux-nat.c (linux_xfer_siginfo ): Likewise.
+       (linux_nat_xfer_partial): Likewise.
+       (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
+       (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
+       * monitor.c (monitor_xfer_memory): Likewise.
+       (monitor_xfer_partial): Likewise.
+       * procfs.c (procfs_xfer_partial): Likewise.
+       * record-btrace.c (record_btrace_xfer_partial): Likewise.
+       * record-full.c (record_full_xfer_partial): Likewise.
+       (record_full_core_xfer_partial): Likewise.
+       * remote-sim.c (gdbsim_xfer_memory): Likewise.
+       (gdbsim_xfer_partial): Likewise.
+       * remote.c (remote_write_bytes_aux): Likewise.  All callers
+       updated.
+       (remote_write_bytes, remote_read_bytes): Likewise.  All
+       callers updated.
+       (remote_flash_erase): Likewise.  All callers updated.
+       (remote_write_qxfer): Likewise.  All callers updated.
+       (remote_read_qxfer): Likewise.  All callers updated.
+       (remote_xfer_partial): Likewise.
+       * rs6000-nat.c (rs6000_xfer_partial): Likewise.
+       (rs6000_xfer_shared_libraries): Likewise.
+       * sol-thread.c (sol_thread_xfer_partial): Likewise.
+       (sol_thread_xfer_partial): Likewise.
+       * sparc-nat.c (sparc_xfer_wcookie): Likewise.
+       (sparc_xfer_partial): Likewise.
+       * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
+       updated.
+       (spu_xfer_partial): Likewise.
+       * spu-multiarch.c (spu_xfer_partial): Likewise.
+       * tracepoint.c (tfile_xfer_partial): Likewise.
+       * windows-nat.c (windows_xfer_memory): Likewise.
+       (windows_xfer_shared_libraries): Likewise.
+       (windows_xfer_partial): Likewise.
+       * valprint.c: Replace 'target_xfer_error' with
+       'target_xfer_status' in comments.
+
+2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
+
+       Checked in by Joel Brobecker <brobecker@adacore.com>.
+       * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
+
+2014-02-11  Joel Brobecker  <brobecker@adacore.com>
+
+       * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
+       function parameters.
+
+2014-02-10  Will Newton  <will.newton@linaro.org>
+
+       * elfread.c (elf_rel_plt_read): Look for a .got section if
+       looking up .got.plt fails.
+       (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
+       on address passed to elf_gnu_ifunc_record_cache.
+       (elf_gnu_ifunc_resolve_addr): Likewise.
+       (elf_gnu_ifunc_resolver_return_stop): Likewise.
+
+2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
+       (X_RETTURN): New macro.
+       * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
+
+       * sparc64-tdep.c (sparc64_init_abi): Hook
+       sparc_in_function_epilogue_p.
+
+2014-02-10  Gary Benson  <gbenson@redhat.com>
+
+       * symfile-debug.c (debug_qf_expand_symtabs_matching):
+       Rename name_matcher to symbol_matcher.
+
+2014-02-10  Gary Benson  <gbenson@redhat.com>
+
+       * symfile-debug.c (debug_qf_expand_symtabs_matching):
+       Use expand_symtabs_file_matcher_ftype and
+       expand_symtabs_symbol_matcher_ftype.
+
+2014-02-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
+       (struct ada_symbol_cache): New.
+       (ada_free_symbol_cache): Forward declare.
+       (struct ada_pspace_data): New.
+       (ada_pspace_data_handle): New static global.
+       (get_ada_pspace_data, ada_pspace_data_cleanup)
+       (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
+       (cache_space, cache): Delete, now folded inside struct
+       ada_pspace_data.
+       (ada_get_symbol_cache): New function.
+       (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
+       implementation.
+       (_initialize_ada_language): Remove initialization of cache_space.
+       Move call to observer_attach_inferior_exit up, grouping it
+       with the other observer registrations inside this function.
+       Rename command to be more general.  Add call to
+       register_program_space_data_with_cleanup.
+
+2014-02-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
+       ada_new_objfile_observer.
+       (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
+       (_initialize_tasks): Update uses of ada_new_objfile_observer
+       and ada_tasks_normal_stop_observer.
+
+2014-02-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_evaluate_subexp): Set the type of the value
+       returned by the 'Length attribute to integer.
+
+2014-02-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (_initialize_ada_language): Initialize
+       cache_space obstack.
+
+2014-02-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (HASH_SIZE): New macro.
+       (struct cache_entry): New type.
+       (cache_space, cache): New static globals.
+       (ada_clear_symbol_cache, find_entry): New functions.
+       (lookup_cached_symbol, cache_symbol): Implement.
+       (ada_new_objfile_observer, ada_free_objfile_observer): New.
+       (_initialize_ada_language): Attach ada_new_objfile_observer
+       and ada_free_objfile_observer.
+
+2014-02-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
+       (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
+       struct block * parameter.
+       (ada_lookup_symbol_list_worker): Constify local variable "block".
+       Remove cast which is no longer necessary.
+
+2014-02-10  Doug Evans  <xdje42@gmail.com>
+
+       Add Guile as an extension language.
+       * NEWS: Mention Guile scripting.
+       * Makefile.in (SUBDIR_GUILE_OBS): New variable.
+       (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
+       (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
+       (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
+       (CLIBS): Add GUILE_LIBS.
+       (install-guile): New rule.
+       (guile.o): New rule.
+       (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
+       (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
+       (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
+       (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
+       (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
+       (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
+       (scm-type.o, scm-utils.o, scm-value.o): New rules.
+       * configure.ac: New option --with-guile.
+       * configure: Regenerate.
+       * config.in: Regenerate.
+       * auto-load.c: Remove #include "python/python.h".  Add #include
+       "gdb/section-scripts.h".
+       (source_section_scripts): Handle Guile scripts.
+       (_initialize_auto_load): Add name of Guile objfile script to
+       scripts-directory help text.
+       * breakpoint.c (condition_command): Tweak comment to include Scheme.
+       * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
+       (struct breakpoint): New member scm_bp_object.
+       * defs.h (enum command_control_type): New value guile_control.
+       * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
+       "extension.h".
+       (show_user): Update comment.
+       (_initialize_cli_cmds): Update help text for "show user".  Update help
+       text for max-user-call-depth.
+       * cli/cli-script.c: Remove #include "python/python.h".  Add #include
+       "extension.h".
+       (multi_line_command_p): Add guile_control.
+       (print_command_lines): Handle guile_control.
+       (execute_control_command, recurse_read_control_structure): Ditto.
+       (process_next_line): Recognize "guile" commands.
+       * disasm.c (gdb_disassemble_info): Make non-static.
+       * disasm.h: #include "dis-asm.h".
+       (struct gdbarch): Add forward decl.
+       (gdb_disassemble_info): Declare.
+       * extension.c: #include "guile/guile.h".
+       (extension_languages): Add guile.
+       (get_ext_lang_defn): Handle EXT_LANG_GDB.
+       * extension.h (enum extension_language): New value EXT_LANG_GUILE.
+       * gdbtypes.c (get_unsigned_type_max): New function.
+       (get_signed_type_minmax): New function.
+       * gdbtypes.h (get_unsigned_type_max): Declare.
+       (get_signed_type_minmax): Declare.
+       * guile/README: New file.
+       * guile/guile-internal.h: New file.
+       * guile/guile.c: New file.
+       * guile/guile.h: New file.
+       * guile/scm-arch.c: New file.
+       * guile/scm-auto-load.c: New file.
+       * guile/scm-block.c: New file.
+       * guile/scm-breakpoint.c: New file.
+       * guile/scm-disasm.c: New file.
+       * guile/scm-exception.c: New file.
+       * guile/scm-frame.c: New file.
+       * guile/scm-gsmob.c: New file.
+       * guile/scm-iterator.c: New file.
+       * guile/scm-lazy-string.c: New file.
+       * guile/scm-math.c: New file.
+       * guile/scm-objfile.c: New file.
+       * guile/scm-ports.c: New file.
+       * guile/scm-pretty-print.c: New file.
+       * guile/scm-safe-call.c: New file.
+       * guile/scm-string.c: New file.
+       * guile/scm-symbol.c: New file.
+       * guile/scm-symtab.c: New file.
+       * guile/scm-type.c: New file.
+       * guile/scm-utils.c: New file.
+       * guile/scm-value.c: New file.
+       * guile/lib/gdb.scm: New file.
+       * guile/lib/gdb/boot.scm: New file.
+       * guile/lib/gdb/experimental.scm: New file.
+       * guile/lib/gdb/init.scm: New file.
+       * guile/lib/gdb/iterator.scm: New file.
+       * guile/lib/gdb/printing.scm: New file.
+       * guile/lib/gdb/types.scm: New file.
+       * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
+       (VPATH): Add $(GUILE_SRCDIR).
+       (GUILE_DIR): New variable.
+       (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
+       (all): Add stamp-guile dependency.
+       (stamp-guile): New rule.
+       (clean-guile, install-guile, uninstall-guile): New rules.
+       (install-only): Add install-guile dependency.
+       (uninstall): Add uninstall-guile dependency.
+       (clean): Add clean-guile dependency.
+
+2014-02-09  Doug Evans  <xdje42@gmail.com>
+
+       Revert this patch (which I approved, mea culpa).
+
+       2014-02-08  Mark Kettenis  <kettenis@gnu.org>
+
+       * Makefile.in (all-lib): Remove.
+       ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
+
+2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix Python stack corruption.
+       * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
+       gdb_py_longest.
+
+2014-02-08  Mark Kettenis  <kettenis@gnu.org>
+
+       * Makefile.in (all-lib): Remove.
+       ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
+
+2014-02-07  Doug Evans  <dje@google.com>
+
+       * extension-priv.h (extension_language_script_ops): Add comment.
+       (extension_language_ops): Add comment.
+       (active_ext_lang_state): Fix typo in comment.
+
+2014-02-07  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (handle_signal_stop) <signal arrives while stepping
+       over a breakpoint>: Switch back to the stepping thread.
+
+2014-02-07  Yao Qi  <yao@codesourcery.com>
+
+       * target.c (target_xfer_partial): Return zero if LEN is zero.
+
+2014-02-07  Yao Qi  <yao@codesourcery.com>
+
+       * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
+       (ld_so_xfer_auxv): Likewise.
+       * bfd-target.c (target_bfd_xfer_partial): Likewise.
+       * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
+       * corelow.c (core_xfer_partial): Likewise.
+       * ctf.c (ctf_xfer_partial): Likewise.
+       * darwin-nat.c (darwin_read_dyld_info): Likewise.
+       (darwin_xfer_partial): Likewise.
+       * exec.c (exec_xfer_partial): Likewise.
+       * gnu-nat.c (gnu_xfer_partial): Likewise.
+       * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
+       * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
+       * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
+       * linux-nat.c (linux_xfer_siginfo): Likewise.
+       (linux_proc_xfer_spu): Likewise.
+       * procfs.c (procfs_xfer_partial): Likewise.
+       * record-full.c (record_full_xfer_partial): Likewise.
+       (record_full_core_xfer_partial): Likewise.
+       * remote-sim.c (gdbsim_xfer_partial): Likewise.
+       * remote.c (remote_write_qxfer): Likewise.
+       (remote_write_qxfer, remote_read_qxfer): Likewise.
+       (remote_xfer_partial): Likewise.
+       * rs6000-nat.c (rs6000_xfer_partial): Likewise.
+       (rs6000_xfer_shared_libraries): Likewise.
+       * sparc-nat.c (sparc_xfer_wcookie): Likewise.
+       * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
+       (spu_xfer_partial): Likewise.
+       * target.c (memory_xfer_partial_1): Likewise.
+       * tracepoint.c (tfile_xfer_partial): Likewise.
+       * windows-nat.c (windows_xfer_shared_libraries): Likewise.
+       (windows_xfer_partial): Likewise.
+
 2014-02-07  Yao Qi  <yao@codesourcery.com>
 
        * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
This page took 0.027112 seconds and 4 git commands to generate.