aprantl added a comment.
My overall mental image of lldb-mi is very incomplete, but I'm imagining
lldb-mi as having one thread that wakes up every n milliseconds checks for
command input and then calls into the SBAPI to handle the commands. If that is
how it works, then one very simple thing we can try is to call
SBDebugger::SetAsync(false), thus forcing all the SBAPI calls to block until
Alexander, can you see what happens to your lit test when you enable
synchronous mode in the SBAPI? Does it block now as expected, or does it still
finish early? If that experiment works, we could add a --async command line
option to lldb-mi to enable this behavior for running the test suite.
lldb-commits mailing list