diff options
author | Oleg Tolmatcev <oleg.tolmatcev@gmail.com> | 2024-08-26 23:11:36 +0200 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-12-13 09:46:15 -0700 |
commit | 83c1269833c88608dac27edf78afc335ca8dbff1 (patch) | |
tree | 8bff4b834fa1b44fdd0c61406077d835c16b1be7 /gdb/python/py-unwind.c | |
parent | ef1f1b7ac6a6797d554ef8a2161cfb6dc07775fd (diff) | |
download | gdb-83c1269833c88608dac27edf78afc335ca8dbff1.zip gdb-83c1269833c88608dac27edf78afc335ca8dbff1.tar.gz gdb-83c1269833c88608dac27edf78afc335ca8dbff1.tar.bz2 |
gdb-dap: fix gdb.error: Frame is invalid.
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".
Signed-off-by: Oleg Tolmatcev <oleg.tolmatcev@gmail.com>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32133
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-unwind.c')
0 files changed, 0 insertions, 0 deletions