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]
Other format: [Raw text]

Re: hw watchpoint/breakpoint support for xscale


Jim Blandy wrote:
> 
> Mark Salter <msalter@redhat.com> writes:
> > > - request a protocol extension (some query packet)
> >
> > I think this is best. Query the board to find out how many hw
> > wathcpoints and hw breakpoints are supported. If the board
> > can't answer the query, then it doesn't support any.
> 
> Be careful!  The number of watchpoints can depend on their addresses
> and sizes.  For example, to set a watchpoint on a two-byte object at
> an odd address, the i386 code will set *two* hardware watchpoints ---
> one for each byte --- since the i386's watchpoints are always aligned
> on a multiple of their size.

I don't think the "number of watchpoints" macro has ever
been implemented correctly on most targets.  Frequently 
it evaluates to "1" or "0" (this is just from my
random access memory).


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