If you want ,you can check the "Debug output" (not "console") window in "view" > "debug windows" (newer Lazarus in "IDE Internals"). And see if gdb hangs..
Though the knowledge want make to much difference... I do seem to recall that the IDE had some issues putting the asm together (as it is received in blocks, and they need to "join up").
Its possible that a slight diff result from gdb (never mind if correct or not) can trigger something like that in the IDE.
But if the IDE goes into an endless loop, then there is little to be done. Since that old an IDE does not receive fixes anymore.
If you are on 64 bits. I have an older build, that's been laying around forever. I only have it for 64 bit.
Its gdb 12.0.50 (not sure if it was from a tag, or if I did build from the branch....).
IIRC, I used that a few times, and it wasn't to bad either. So if you want to give it a go...
(I put it on the snapshot site for now)
https://sourceforge.net/projects/lazarus-snapshots/upload/Window%2064/gdb/