[PATCH] gdb-dap: fix gdb.error: Frame is invalid.

Oleg Tolmatcev oleg.tolmatcev@gmail.com
Thu Sep 5 11:25:05 GMT 2024


Hello,

this is a fix for the bug
https://sourceware.org/bugzilla/show_bug.cgi?id=32133 that I reported.

When you try to use a frame on one thread and it was created on
another you get an error. I fixed it by creating a map from a frame ID
to a thread ID. When a frame is created it is added to the map. When
you try to find a frame for an id it checks if it is on the correct
thread and if not switches to that thread. I had to store the frame id
instead of the frame itself in a "_ScopeReference".

Best regards
Oleg Tolmatcev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gdb-dap-fix-gdb.error-Frame-is-invalid.patch
Type: application/octet-stream
Size: 6263 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/gdb-patches/attachments/20240905/36328a30/attachment.obj>


More information about the Gdb-patches mailing list