>> feature allows breaks upon an access across a range of addresses.  However,
>> theOpenOCD wp command does not support this
>
>In what sense "not support"?  I hae certainly configured and used OpenOCD
>watchpoints with of 64 KByte size, thus, "a range of addresses".  (And ISTR
>larger ranges, where hardware allows.)

Does the size argument to the wp command refer to the size of a block of
memory? I assumed it meant the size of a single access (byte, half-word, or
word). Ditto for the size argument to the bp command (2 for thumb mode, 4 for
arm mode). Indeed, the xscale implementation of wp returns an error if not 1,
2, or 4. And the same code subsequently ignores that argument, so if size
refers to a memory range, xscale doesn't support it. If my interpretation of
the argument is incorrect, perhaps the correct remedy is to use the mask
capability of the xscale debug hardware to implement the command correctly.

I'll take a look at the implementation in other targets. It would be good to
patch the documentation to clarify the meaning.

Thanks,
Mike

----

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to