Re: Regression in ptrace (Wine) starting with 2.6.33-rc1

From: Roland McGrath
Date: Mon Feb 15 2010 - 14:47:37 EST


> - The other one with 'locally'/'globally' enabled breakpoints.

There is no "local/global" enablement. That distinction is meaningless
given the way the kernel uses the hardware. Which of those bits you set
has no material effect on the watchpoint/trap behavior.

The only regression is in the observed bit pattern read back from dr7.
To be 100% compatible, the hw_breakpoint ptrace-compatibility front-end
should record the state of the useless bits to report back, so the only
differences from the bit pattern written are whatever ones the real
hardware would have shown from writing dr7 and reading it back.


Thanks,
Roland

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/