This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Getting the i386 watchpoints into the taget vector?
- From: Kevin Buettner <kevinb at redhat dot com>
- To: Andrew Cagney <ac131313 at ges dot redhat dot com>, gdb at sources dot redhat dot com
- Date: Fri, 20 Sep 2002 00:38:10 -0700
- Subject: Re: Getting the i386 watchpoints into the taget vector?
- References: <3D8A8094.5080908@ges.redhat.com>
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