Sysprogs forums › Forums › VisualGDB › Hang/crash when using >3 breakpoints
- This topic has 6 replies, 2 voices, and was last updated 9 years ago by
zzattack.
-
AuthorPosts
-
November 21, 2016 at 12:56 #9540
zzattack
ParticipantUsing latest openocd to debug a stm32f0 device, whenever I create a 4th breakpoint I’m presented with a “GDB timeout”/”Break-in request taking too long” message after which I can only stop debugging and restart my session. Is this a limitation of the debugging capabilities on this microcontroller, or an issue with VisualGDB? Is there a way to prevent/warn upon the creation of more breakpoints than supported, so as to not lock up the session?
November 22, 2016 at 05:50 #9546support
KeymasterHi,
The restriction for the amount of simultaneous breakpoints in FLASH is a limitation of the microcontroller. However it should clearly show a message like “too many hardware breakpoints” and not hang.
Could you please try stopping the program at a breakpoint, adding more breakpoints to exceed the limit and pressing F5 to continue? Does it hang as well? Do you get the same behavior on all devices?
November 24, 2016 at 16:54 #9581zzattack
ParticipantIf I do so, I get a message “Command aborted.” in the GDB session window. When I then try to remove the extra breakpoints, I get into the same behavior where it hangs.
This is my first project with VisualGDB, haven’t tested it on another microcontroller before.
-
This reply was modified 9 years ago by
zzattack.
November 24, 2016 at 21:16 #9587support
KeymasterHi,
Sorry about that. Based on your description this looks like a potential problem with the board or the USB driver, so trying a different board or a different machine might easily solve this.
If this is not possible, please do the following to diagnose this:
- Start debugging as usual
- Press “break all” to cause the “Command aborted” error
- Switch the GDB Session window to “All GDB Interaction”
- Copy all contents of the GDB Session window and the OpenOCD window and post it here
This should help us understand what could be causing this and give you further advice.
December 2, 2016 at 12:45 #9683zzattack
ParticipantDecember 3, 2016 at 03:33 #9689support
KeymasterHi,
Thanks very much for reporting this. It looks like the new gdb reports the ‘failed to resume session’ events slightly differently and this totally confuses VisualGDB.
We have fixed it in this build: http://sysprogs.com/files/tmp/VisualGDB-5.2.14.1324.msi
It will also be included in the next maintenance release of v5.2.
December 5, 2016 at 00:26 #9696zzattack
ParticipantExcellent, I can confirm this addresses the issue. Thanks for the fast resolution!
-
This reply was modified 9 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.