Here's v2 of the series to fix some races seen by the thread sanitizer. v1 was here: https://sourceware.org/pipermail/binutils/2024-March/133155.html I believe this version addresses all the review comments. Let me know what you think. This is one of the remaining issues blocking the release of GDB 15. thanks, Tom