Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Getting the i386 watchpoints into the taget vector?
@ 2002-09-19 18:57 Andrew Cagney
  2002-09-20  0:38 ` Kevin Buettner
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andrew Cagney @ 2002-09-19 18:57 UTC (permalink / raw)
  To: gdb

Hello,

With the watchpoint interface made part of the target vector, its time 
to think about how the i386 case should be handled.  Instead of using a 
system interface, the i386 manipulates the hardware watchpoint registers 
directly.  For want of a better name, I'll call this ``native watchpoints''.

One thought is to change the config/i386/nm-i386.h macros to something 
native specific (native_insert_watchpoint()) and then have the various 
native targets (infptrace.c, ...) add these methods to their target vector.

It does restrict things to native targets.  A remote target couldn't 
make use of GDB's built-in knowledge of watchpoint registers.

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.

Thoughts?  Better ideas?

Andrew


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-09-21  8:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-19 18:57 Getting the i386 watchpoints into the taget vector? Andrew Cagney
2002-09-20  0:38 ` Kevin Buettner
2002-09-20  6:32 ` Paul Koning
2002-09-20  8:26   ` Andrew Cagney
2002-09-20 14:42 ` Eli Zaretskii
2002-09-20 16:51   ` Andrew Cagney
2002-09-21  1:32     ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox