[PATCH]: Make Linux use the new unified x86 watchpoint support
Tue Mar 27 10:03:00 GMT 2001
Mark Kettenis wrote:
> Date: Tue, 27 Mar 2001 08:55:00 +0200 (IST)
> From: Eli Zaretskii <email@example.com>
> On Mon, 26 Mar 2001, Michael Snyder wrote:
> > Guys, this implementation has problems. You have it hard-coded
> > so that on a linux host, it unconditionally calls native linux
> > methods involving ptrace to get the debug registers. This breaks
> > very badly if you're using a native linux host to debug a remote
> > i386 target.
> Just like the old implementation. I suspect the old implementation
> just happened to work because it didn't do any strict error checking.
> The fundamental problem is that the watpoint-stuff isn't part of the
> target vector.
I think it is a combination of both the architecture and the target
vector. It is the same problem as software single step. A layer of the
target is asked to implement a memory watch. Since that can't be
implemented directly, it asks the architecture vector to implement it
More information about the Gdb-patches