Closed rk-exxec closed 3 years ago
Yes, this is a current limitation. Unfortunately there are not a lot of great ways to handle this - while we can detect the number of HW breakpoints available it would still have to make arbitrary decisions on what breakpoints we actually pay attention to. Then there are debug probes/servers (like some J-Link) that can work around the HW breakpoints issue - so it may not even be an issue in all cases.
One thing that I might consider is giving a warning in the UI that they have likely used all of the HW breakpoints and may run into issues.
I think a notification would be sufficient. And maybe block setting new breakpoints or auto-disable them if the user specifies in the settings?
I don't have a good solution to this. Most people know the limitations with breakpoints in their embedded processor.
Hey, I don't know if this has been reported yet. I am using this extension to debug my Tiva Launchpad which has 6 hardware breakpoints.
I get strange behavior if I select more than that in the editor. The debugging starts with loading the binary but then stops working. The controls show the pause button, but I cannot pause it. The controller does not appear to be running the program though.
Removing some breakpoints and restarting fixes the issue.
Is there a way to check the number of breakpoints before loading or when changing them while running? The OpenOCD command line displays the capabilities on launch:
I know this is probably easy to mitigate on my own, but some may not be aware of these limitations.