This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Getting the i386 watchpoints into the taget vector?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]