Getting the i386 watchpoints into the taget vector?
Kevin Buettner
kevinb@redhat.com
Fri Sep 20 00:38:00 GMT 2002
On Sep 19, 9:57pm, Andrew Cagney wrote:
> Another (less well thought out) idea, is for the target stack, to fall
> back to the ``native watchpoint'' mechanism when the [remote] target
> doesn't support watchpoints. I think this would mean putting the
> ``native watchpoint'' methods in the architecture vector where the
> target vector code could call it.
Assuming a remote target, I can see that this would work in situations
where you have access to the hardware breakpoint registers via the
remote protocol. However, in situations where the ``native watchpoint''
mechanism consists of funky ptrace() calls (or the like), this clearly
won't work. (E.g, I don't think this could be made to work for
Linux/IA-64.)
Kevin
More information about the Gdb
mailing list