On Tuesday 03 November 2009, loody wrote:
> 1. what are the differences between bp hw and bp sw?
>    I know some cpu, like mips, have break assembly instruction.
>    Does that mean if we use bp hw, the openocd will insert the "break"
> assembly at the location we assign?

That would be "bp sw".  Hardware breakpoints come from
special debug hardware that monitors bus access, while
the software ones use instructions like "BKPT".  Like
EmbeddedICE or DWT on ARMs.

Some examples of where you need hardware breakpoints:
when the software is running from flash memory, or ROM.
In those cases you can't write a BKPT instruction; or
maybe you don't want to (wears out flash).


Maybe someone else has quick answers for the rest...


_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to