I have a strange issue with gdb; I can set breakpoints on lines and functions and if I "continue" in the debugger it will actually stop at the breakpoints, but if I use "step", it will not break at the next line, but keep going as if I had used "continue".
I was under the impression that single-stepping is done by setting a breakpoint at the first instruction on the next line, so I'm surprised that explicit breakpoints work, but single stepping doesn't. Does anyone have an idea what the difference between the two kinds of breakpoints is? I've just read through http://openocd.sourceforge.net/doc/html/GDB-and-OpenOCD.html and I didn't actually use any of the configuration mentioned, like the two commands: set remote hardware-breakpoint-limit 6 set remote hardware-watchpoint-limit 4 ... so that might be the cause of my troubles. I've read a bit of the cortex_m3 code in openocd and it looks to me as though single stepping is implemented entirely in openocd as a "set breakpoint, run, remove breakpoint"-operation, so I don't understand how gdb could possibly break that by missing some configuration. Any clues? -- Flemming Frandsen - YAPH - http://osaa.dk - http://dren.dk/ ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
