Enable fork tracing for native FreeBSD targets.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index be8eabbb3bcb76321f3104adb71ac0d6f7e95869..220bc36da83b098418b126e90024421e8034046e 100644 (file)
@@ -1,3 +1,447 @@
+2015-04-27  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
+       [TDP_RFPPWAIT] New variable fbsd_pending_children.
+       [TDP_RFPPWAIT] (fbsd_remember_child): New function.
+       [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
+       [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
+       [PT_LWPINFO] (fbsd_wait): New function.
+       [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
+       [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
+       [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
+       [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
+       [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
+       [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
+       [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
+       [TDP_RFPPWAIT] (fbsd_post_attach): New function.
+       (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
+       "fbsd_wait".
+       [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
+       Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
+       Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
+       Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
+       Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
+       Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
+       Set "to_post_attach" to "fbsd_post_attach".
+
+2015-04-27  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
+       (fbsd_find_memory_regions): Mark static.
+       (fbsd_nat_add_target): New function.
+       * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
+       fbsd_pid_to_exec_file and fbsd_find_memory_regions.
+       * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
+       * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
+       * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
+       * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
+
+2015-04-27  Gary Benson <gbenson@redhat.com>
+
+       * objfiles.c (allocate_objfile): Do not attempt to expand name
+       if name is a "target:" filename.
+       * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
+       to load auto-load scripts for objfiles with "target:" filenames.
+
+2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
+       (enum s390_vector_abi_kind): New enum.
+       (struct gdbarch_tdep)<vector_abi>: New field.
+       (s390_effective_inner_type): Add parameter min_size.  Stop
+       unwrapping if the inner type is smaller than min_size.
+       (s390_function_arg_float): Adjust call to
+       s390_effective_inner_type.
+       (s390_function_arg_vector): New function.
+       (s390_function_arg_integer): Adjust comment.
+       (struct s390_arg_state)<vr>: New field.
+       (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
+       arguments according to vector ABI when appropriate.
+       (s390_push_dummy_call): Initialize the argument state's field
+       'vr'.  Adjust calls to s390_handle_arg.
+       (s390_register_return_value): Handle vector return values.
+       (s390_return_value): Apply the "register" return value convention
+       to a vector when appropriate.
+       (s390_gdbarch_init): Initialize tdep->vector_abi.
+       * NEWS: Announce S390 vector ABI support.
+
+2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * s390-linux-tdep.c (s390_return_value_convention): Remove
+       function.  Inline its logic...
+       (s390_return_value): ...here.  Instead, move the handling of the
+       "register" return value convention...
+       (s390_register_return_value): ...here.  New function.
+
+2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * s390-linux-tdep.c
+       (is_float_singleton): Remove function.  Move the "singleton" part
+       of the logic...
+       (s390_effective_inner_type): ...here.  New function.
+       (is_float_like): Remove function.  Inline its logic...
+       (s390_function_arg_float): ...here.
+       (is_pointer_like, is_integer_like, is_struct_like): Remove
+       functions.  Inline their logic...
+       (s390_function_arg_integer): ...here.
+       (s390_function_arg_pass_by_reference): Remove function.
+       (extend_simple_arg): Remove function.
+       (alignment_of): Remove function.
+       (struct s390_arg_state): New structure.
+       (s390_handle_arg): New function.
+       (s390_push_dummy_call): Move parameter placement logic to the new
+       function s390_handle_arg.  Call it for calculating the stack area
+       sizes first, and again for actually writing the parameters.
+
+2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
+         false if the argument is zero.
+
+2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * ada-lang.c (template_to_static_fixed_type): Return input type
+       when it is already fixed.  Cache the input type itself when not
+       creating a static fixed copy.  Make it explicit that we never
+       molestate the input type.
+       * gdbtypes.c (resolve_dynamic_struct): Reset the
+       TYPE_TARGET_TYPE field for resolved copies.
+
+2015-04-27  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
+       (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
+       (template_to_static_fixed_type): Call ada_check_typedef only
+       when necessary.
+
+2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * cli/cli-dump.c (srec_dump_command): Add internationalization
+       mark ups.
+       (ihex_dump_command): Likewise.
+       (tekhex_dump_command): Likewise.
+       (binary_dump_command): Likewise.
+       (binary_append_command): Likewise.
+
+2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * cli/cli-dump.c (verilog_cmdlist): New variable.
+       (dump_verilog_memory): New function.
+       (dump_verilog_value): New function.
+       (verilog_dump_command): New function.
+       (_initialize_cli_dump): Add new commands to support verilog dump
+       format.
+       * NEWS: Add entry for "dump verilog".
+
+2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * gdbtypes.c (print_gnat_stuff): Do not recurse on the
+       descriptive type when there is none.
+
+2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * tui/tui-win.c (tui_async_resize_screen): Call
+       rl_resize_terminal().
+
+2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * windows-nat.c (handle_output_debug_string): Don't change
+       current_event.dwThreadId.
+       (get_windows_debug_event): Use thread_id, rather than relying on
+       current_event.dwThreadId being changed.
+
+2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * windows-nat.c (windows_continue): Report an error if
+       ContinueDebugEvent() fails.
+
+2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * windows-nat.c (windows_resume): Fix misspelling in debug output.
+
+2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * windows-nat.c (get_windows_debug_event): Replace retval with
+       thread_id throughout.  Update stale comment.
+
+2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * windows-nat.c (get_windows_debug_event): Don't use ternary
+       conditional operator.
+
+2015-04-21  Pierre Muller  <muller@sourceware.org>
+
+       PR pascal/17815
+       p-exp.y (yylex): Reorganize code to return the matched pattern
+       for a field of this.
+
+2015-04-21  Gary Benson <gbenson@redhat.com>
+
+       * common/fileio.h (fileio_to_host_openflags): New declaration.
+       * common/fileio.c (fcntl.h): New include.
+       (fileio_to_host_openflags): New function, factored out from...
+       * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
+       Single use updated.
+
+2015-04-21  Kevin Buettner  <kevinb@redhat.com>
+
+       * rl78-tdep.c (RL78_SP_ADDR): Define.
+       (opc_reg_to_gdb_regnum): New static function.
+       (rl78_analyze_prologue): Recognize instructions forming slightly
+       more interesting prologues.
+
+2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       Revert:
+       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-20  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       Revert:
+       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-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
+
+       * breakpoint.c (update_dprintf_command_list): Remove duplicated
+       xmalloc.
+
+2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * reply_mig_hack.awk: Robustify parsing.
+
+       * reply_mig_hack.awk: Don't bother to declare an intermediate
+       function pointer variable.
+
+2015-04-17  Doug Evans  <dje@google.com>
+
+       * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
+       to "exec_displacement" to avoid confusion with inner use of the name.
+
+2015-04-17  Pedro Alves  <palves@redhat.com>
+
+       * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
+       if HW point of TYPE isn't supported.
+
+2015-04-17  Yao Qi  <yao.qi@linaro.org>
+           Pedro Alves  <palves@redhat.com>
+
+       * target.h (target_can_use_hardware_watchpoint): Update comments.
+       Remove trailing ";".
+
+2015-04-17  Gary Benson <gbenson@redhat.com>
+
+       * remote.c (remote_add_inferior): New argument try_open_exec.
+       If nonzero, attempt to open the inferior's executable file as
+       the main executable if no main executable is open already.
+       All callers updated.
+       * NEWS: Mention that GDB now supports automatic location and
+       retrieval of executable + files from remote targets.
+
+2015-04-17  Gary Benson <gbenson@redhat.com>
+
+       * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
+       * remote.c (PACKET_qXfer_exec_file): Likewise.
+       (remote_protocol_features): Register the
+       "qXfer:exec-file:read" feature.
+       (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
+       (remote_pid_to_exec_file): New function.
+       (init_remote_ops): Initialize to_pid_to_exec_file.
+       (_initialize_remote): Register new "set/show remote
+       pid-to-exec-file-packet" command.
+       * NEWS: Announce new qXfer:exec-file:read packet.
+
+2015-04-17  Gary Benson <gbenson@redhat.com>
+
+       * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
+       New declaration.
+       * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
+       New function, factored out from...
+       * linux-nat.c (linux_child_pid_to_exec_file): ...here.
+
+2015-04-17  Gary Benson <gbenson@redhat.com>
+
+       * exec.c (solist.h): New include.
+       (exec_file_locate_attach): Prefix absolute executable
+       paths with gdb_sysroot if set.
+       * NEWS: Mention that executable paths may be prepended
+       with sysroot.
+
+2015-04-17  Gary Benson <gbenson@redhat.com>
+
+       * solist.h (exec_file_find): New declaration.
+       * solib.c (solib_find_1): New function, factored out from...
+       (solib_find): ...here.
+       (exec_file_find): New function.
+
+2015-04-17  Gary Benson <gbenson@redhat.com>
+
+       * gdbcore.h (exec_file_locate_attach): New declaration.
+       * exec.c (exec_file_locate_attach): New function, factored
+       out from...
+       * infcmd.c (attach_command_post_wait): ...here.
+
+2015-04-17  Mike Frysinger  <vapier@gentoo.org>
+
+       * MAINTAINERS: Add myself for Blackfin/write-after-approval.
+
+2015-04-16  Yao Qi  <yao.qi@linaro.org>
+
+       * infrun.c (maybe_software_singlestep): Declare.
+       (displaced_step_fixup): Call maybe_software_singlestep.
+
+2015-04-15  Doug Evans  <dje@google.com>
+
+       * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
+
+2015-04-15  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
+
+2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * python/lib/gdb/command/unwinders.py: Add parentheses.
+
+2015-04-15  Yao Qi  <yao.qi@linaro.org>
+
+       * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
+
+2015-04-15  Yao Qi  <yao.qi@linaro.org>
+
+       * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
+
+2015-04-15  Yao Qi  <yao.qi@linaro.org>
+
+       * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
+       dsc->insn_size instead of 4.
+
+2015-04-14  Gary Benson <gbenson@redhat.com>
+
+       * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
+       * minidebug.c (lzma_stat): Likewise.
+       * solib-spu.c (spu_bfd_iovec_stat): Likewise.
+       * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
+
+2015-04-13  Stan Shebs  <stanshebs@google.com>
+
+       * MAINTAINERS: Update my email address.
+
+2015-04-13  John Baldwin  <jhb@FreeBSD.org>
+
+       * amd64-tdep.c (amd64_target_description): New function.
+       * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
+       * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
+       (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
+       x86 extended save area.
+       (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
+       * amd64bsd-nat.h: Export amd64bsd_xsave_len.
+       * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
+       (_initialize_amd64fbsd_nat): Set "to_read_description" to
+       "amd64fbsd_read_description".
+       * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
+       (amd64fbsd_supply_xstateregset): New function.
+       (amd64fbsd_collect_xstateregset): New function.
+       Add "amd64fbsd_xstateregset".
+       (amd64fbsd_iterate_over_regset_sections): New function.
+       (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
+       "I386_FBSD_XSAVE_XCR0_OFFSET".
+       Add "iterate_over_regset_sections" gdbarch method.
+       Add "core_read_description" gdbarch method.
+       * i386-tdep.c (i386_target_description): New function.
+       * i386-tdep.h: Export i386_target_description and tdesc_i386.
+       * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
+       (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
+       x86 extended save area.
+       (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
+       * i386bsd-nat.h: Export i386bsd_xsave_len.
+       * i386fbsd-nat.c (i386fbsd_read_description): New function.
+       (_initialize_i386fbsd_nat): Set "to_read_description" to
+       "i386fbsd_read_description".
+       * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
+       (i386fbsd_core_read_description): New function.
+       (i386fbsd_supply_xstateregset): New function.
+       (i386fbsd_collect_xstateregset): New function.
+       Add "i386fbsd_xstateregset".
+       (i386fbsd_iterate_over_regset_sections): New function.
+       (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
+       "I386_FBSD_XSAVE_XCR0_OFFSET".
+       Add "iterate_over_regset_sections" gdbarch method.
+       Add "core_read_description" gdbarch method.
+       * i386fbsd-tdep.h: New file.
+
+2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * NEWS (Changes since GDB 7.9): Add removed -xdb.
+       * breakpoint.c (command_line_is_silent): Remove xdb_commands
+       conditional.
+       (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
+       and lb.
+       * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
+       va.
+       * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
+       conditional.
+       * defs.h (xdb_commands): Remove declaration.
+       * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
+       * guile/scm-cmd.c (command_classes): Remove xdb from comment.
+       * infcmd.c (run_no_args_command, go_command): Remove.
+       (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
+       * infrun.c (xdb_handle_command): Remove.
+       (_initialize_infrun): Remove xdb_commands for lz and z.
+       * main.c (xdb_commands): Remove variable.
+       (captured_main): Remove "xdb" from long_options.
+       (print_gdb_help): Remove --xdb from help.
+       * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
+       * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
+       * stack.c (backtrace_full_command, args_plus_locals_info)
+       (current_frame_command): Remove.
+       (_initialize_stack): Remove xdb_commands for t, T and l.
+       * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
+       * thread.c (_initialize_thread): Remove xdb_commands condition.
+       * tui/tui-layout.c (tui_toggle_layout_command)
+       (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
+       (_initialize_tui_layout): Remove xdb_commands for td and ts.
+       * tui/tui-regs.c (tui_scroll_regs_forward_command)
+       (tui_scroll_regs_backward_command): Remove.
+       (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
+       * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
+       (_initialize_tui_win): Remove xdb_commands for U and w.
+       * utils.c (pagination_on_command, pagination_off_command): Remove.
+       (initialize_utils): Remove xdb_commands for am and sm.
+
+2015-04-10  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (displaced_step_fixup): Switch to the event ptid
+       earlier.  If the thread stopped for a watchpoint and the
+       target/arch has non-continuable watchpoints, cancel the displaced
+       step.
+       (resume): Don't start a displaced step if in-line step-over info
+       is valid.
+
+2015-04-10  Pedro Alves  <palves@redhat.com>
+
+       * 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  <palves@redhat.com>
+
+       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  <yao.qi@linaro.org>
 
        * arm-tdep.c (install_alu_reg): Update comment.
This page took 0.040748 seconds and 4 git commands to generate.