inf-ptrace.c: use ptid_get_pid when resuming all threads
[external/binutils.git] / gdb / ChangeLog
index 3319194..20250e4 100644 (file)
@@ -1,3 +1,181 @@
+2015-03-03  Pedro Alves  <palves@redhat.com>
+
+       * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
+       Use ptid_get_pid to get the overall process id when resuming all
+       threads.
+
+2015-03-03  Pedro Alves  <palves@redhat.com>
+
+       * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
+       the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
+       * inf-ptrace.c (get_ptrace_pid): New function.
+       (inf_ptrace_resume): Use it.
+       * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
+       to the lower layer.
+
+2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * nat/linux-btrace.c: Include sys/utsname.h.
+       (linux_determine_kernel_ptr_bits): New.
+       (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
+       * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
+       ptr_bits.
+
+2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * btrace.c (ftrace_update_function): Treat return as tailcall for
+       "_dl_runtime_resolve".
+
+2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * btrace.h (btrace_function) <lbegin, lend>: Remove.
+       * btrace.c (ftrace_debug): Do not print the line range.
+       (ftrace_skip_file, ftrace_update_lines): Remove.
+       (ftrace_new_function): Remove lbegin and lend initialization.
+       (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
+       * record-btrace.c (btrace_compute_src_line_range): New.
+       (btrace_call_history_src_line): Call btrace_compute_src_line_range.
+
+2015-03-02  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (follow_exec): Delete all threads of the process except
+       the event thread.  Extended comments.
+
+2015-03-02  Joel Brobecker  <brobecker@adacore.com>
+
+       * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
+
+2015-03-02  Joel Brobecker  <brobecker@adacore.com>
+
+       * utils.h: Remove <stdbool.h> #include.
+       (producer_is_gcc): Change return type to "int".
+       * utils.c (producer_is_gcc): Change return type to int.
+       Return 1 instead of true, and 0 instead of false.
+       Adjust function documentation accordingly.
+
+2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * s390-linux-nat.c (have_regset_vxrs): New static variable.
+       (s390_linux_fetch_inferior_registers): Handle vector registers, if
+       present.
+       (s390_linux_store_inferior_registers): Likewise.
+       (s390_get_hwcap): Remove function.  Embed its logic...
+       (s390_read_description): ...here.  Yield a target description with
+       vector registers if applicable.
+       * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
+       "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
+       "features/s390x-tevx-linux64.c".
+       (struct gdbarch_tdep) <v0_full_regnum>: New field.
+       (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
+       for "GNU/Linux-specific registers".
+       (s390_dwarf_reg_r0l): New enum value.
+       (s390_dwarf_reg_to_regnum): Support vector registers.
+       (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
+       of GPR lower halves.
+       (regnum_is_vxr_full): New function.
+       (s390_register_name): New function.
+       (s390_pseudo_register_name): Handle v0-v15, which are composed of
+       f0-f15 and v0l-v15l.
+       (s390_pseudo_register_type): Likewise.
+       (s390_pseudo_register_read): Likewise.
+       (s390_pseudo_register_write): Likewise.
+       (s390_value_from_register): Account for the fact that values are
+       placed left-justified in vector registers.
+       (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
+       the vector reggroup and omit them from the general reggroup.
+       (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
+       (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
+       (s390_iterate_over_regset_sections): Add iterations for the two
+       new vector regsets.
+       (s390_core_read_description): Yield a target description with
+       vector registers if applicable.
+       (s390_gdbarch_init): Handle target descriptions with vector
+       registers.  Add "register_name" gdbarch method.
+       (_initialize_s390_tdep): Call new tdesc initialization functions.
+       * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
+       (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
+       (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
+       (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
+       (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
+       (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
+       (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
+       (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
+       (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
+       (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
+       (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
+       (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
+       (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
+       (S390_NUM_REGS): Adjust value.
+       (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
+       (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
+       (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
+       * NEWS: Announce S/390 vector register support.
+
+2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * features/s390-tevx-linux64.xml: New file.
+       * features/s390-vx-linux64.xml: New file.
+       * features/s390-vx.xml: New file.
+       * features/s390x-tevx-linux64.xml: New file.
+       * features/s390x-vx-linux64.xml: New file.
+       * features/Makefile (WHICH): Add s390-vx-linux64,
+       s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
+       (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
+       (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
+       macros.
+       * features/s390-tevx-linux64.c: New generated file.
+       * features/s390-vx-linux64.c: Likewise.
+       * features/s390x-tevx-linux64.c: Likewise.
+       * features/s390x-vx-linux64.c: Likewise.
+       * regformats/s390-tevx-linux64.dat: Likewise.
+       * regformats/s390-vx-linux64.dat: Likewise.
+       * regformats/s390x-tevx-linux64.dat: Likewise.
+       * regformats/s390x-vx-linux64.dat: Likewise.
+
+2015-02-28  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.h (struct symtab) <next>: Fix comment.
+
+2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * python/python.c (python_GdbModuleDef): Rename GdbMethods to
+       python_GdbMethods.
+
+2015-02-27  Pedro Alves  <palves@redhat.com>
+
+       * dtrace-probe.c (dtrace_probe_ops): Make extern.
+
+2015-02-27  Pedro Alves  <palves@redhat.com>
+
+       * common/common-exceptions.h (exception_none): Declare.
+       * common/common-exceptions.c (exception_none): Moved from
+       exceptions.c.
+       (exceptions_state_mc_init): Use exception_none.
+       * exceptions.c (exception_none): Move to
+       common/common-exceptions.c.
+       * exceptions.h (exception_none): Move to
+       common/common-exceptions.h.
+
+2015-02-27  Pedro Alves  <palves@redhat.com>
+
+       * main.c (catch_command_errors, catch_command_errors_const):
+       Remove 'mask' argument.  Adjust.
+       (captured_main): Adjust callers.
+
+2015-02-27  Pedro Alves  <palves@redhat.com>
+
+       * python/python-internal.h: Include "extension-priv.h".
+
+2015-02-27  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.h (enum print_stop_action): Move further up in the
+       file.
+
+2015-02-27  Pedro Alves  <palves@redhat.com>
+
+       * gdbarch.sh: Include regcache.h.
+       * gdbarch.h: Regenerate.
+
 2015-02-27  Pedro Alves  <palves@redhat.com>
 
        * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>: