> Yes. I straced gdb to be sure it really does PTRACE_SET_DEBUGREF to
> use the hardware watchpoint.
> 
> There is something strange though. gdb does PTRACE_SINGLESTEP and only
> then PTRACE_CONT after "watch xxx".

powerpc's data breakpoints are before-access, whereas x86's are
after-access.  In x86-speak, it's a fault-type exception rather than a
trap-type.  The only way to actually get the caught load or store to
complete is to clear the DABR, single-step, and then restore it.


Thanks,
Roland

Reply via email to