This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0/6] S390: Watchpoint enhancements and hardware breakpoints


Pedro Alves wrote:
> On 09/15/2016 12:52 PM, Andreas Arnez wrote:
> > This series adds some enhancements to the current s390-linux native
> > support for watchpoints.  It also adds hardware breakpoint support.
> > 
> > While this is mostly an s390-specific series, it includes one
> > common-code patch: patch #5, "linux-nat: Add function lwp_is_stepping".
> > I'm looking for feedback on that.  Comments to the s390-specific patches
> > are certainly welcome as well.
> 
> I'm curious on the need to disable hw breakpoints when single-stepping.

This is more of a hardware restriction than a GDB issue.  The problem is
that s390 hardware doesn't really have a separate hardware single-step
feature; to implement ptrace single-stepping, the kernel uses the s390
hardware breakpoint feature (in effect, enabling hardware breakpoints
on the full address space, which will hit on the next instruction that
is executed).

This use of the feature by kernel single-stepping can conflict with
explicit use of the same feature by GDB; that's why it is better to
not attempt such explicit use while at the same time also requesting
kernel single-stepping.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU/Linux compilers and toolchain
  Ulrich.Weigand@de.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]