On Tue, Apr 26, 2011 at 4:20 PM, Øyvind Harboe <[email protected]> wrote: > 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....
Like this one? http://www.segger.com/cms/jlink-flash-breakpoints.html -- Xiaofan _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
