[Bug 21317] New: Stepping broken with memory threads backed by real threads

Bug ID 21317
Summary Stepping broken with memory threads backed by real threads
Product lldb
Version unspecified
Hardware PC
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter ribrdb@google.com
Classification Unclassified

Created attachment 13225 [details]
Possible fix for ProcessGDBRemote.cpp

Thread 1 is a memory thread backed by "real" thread 0xaaa.
If you try to step, a breakpoint gets set for thread 1. However,
ProcessGDBRemote only looks at the "real" thread 0xaaa, which doesn't match the
breakpoint. So when the breakpoint is hit it gets ignored.
I've attached a potential fix for ProcessGDBRemote, but I'm not sure if this is
the best way to fix this. I suspect the other process classes also need similar
changes.