Here is an idea for a new feature: sw breakpoints in flash. The way this feature would work would be to detect if a breakpoint is in the flash region. If it is, a hw breakpoint would be used until the hw breakpoints run out.
At that point the flash sector would be rewritten with the sw breakpoint as required. Sounds great in theory, but would it work in real life? To execute past the breakpoint, gdb would have to restore the original instruction, single step over it and then write back the breakpoint again. Any thoughts on other schemes? I know there is some cortex-m3(and perhaps even vendor specific???) flash patching hardware. What I don't like about this feature is that it would be target and perhaps even vendor specific. I like features that are general enough that they will get a lot of testing exposure and use.... -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development