Have you tried this, with two breakpoints set in the middle of the working area used by the crc code ?
As I can se it : The disabled breakpoints will be enabled on resume line 1541 in arm7_9_common.c when running the algorithm. To disble breakpoints and run the algorithm without removing them from the target breakpoint list we need a flag indicating the disabled state to keep arm7_9_enable_breakpoints(target) from reenabling them. My idea was to save target->watchpoints , set it to NULL and then add the algoritm breakpoint Regards, Magnus Spen wrote: >>> One solution is to first unset all breakpoints, then save the >>> watchpoint and breakpoint list pointers and the >>> >> arm7_9->wp_available >> >>> to temporary variables in the algoritm code (and be careful hove to >>> restore stuff on >>> errors) >>> >> Yes, the backup/restore of the whole list should work >> >> Regards, >> >> Dario >> > > How about the attached patch. > any disabled breakpoints will be reenabled when the target is resumed in a > non-debug context. > > Cheers > Spen > _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
