This is the mail archive of the gdb-patches@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]

Re: [PATCH]: Make Linux use the new unified x86 watchpoint support



On Wed, 28 Mar 2001, Mark Salter wrote:

> > Sorry, I don't understand: why does reading a watched region generate
> > an error?  At least in the x86 implementation, watchpoints are set to
> > be task-local, so reading the data from GDB, which is another process,
> > should not produce any errors.  Am I missing something?
> 
> I'm using a remote target which has global hw watchpoints and no OS.
> The remote target still has the watchpoints installed when gdb tries
> to read the area being watched. I don't know. Maybe the target stub
> should take it upon itself to remove the watchpoints before telling
> gdb it stopped?

Is there any reason that you can't define HAVE_NONSTEPPABLE_WATCHPOINT 
(or some of its other brethren; see infrun.c) and get GDB to DTRT for 
your target?


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