[Lldb-commits] [PATCH] D46588: [LLDB][lldb-mi] Add possibility to set breakpoints without selecting a target.

Alexander Polyakov via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu May 17 09:18:08 PDT 2018


polyakov.alex added a comment.

In https://reviews.llvm.org/D46588#1103180, @aprantl wrote:

> 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 completion.
>
> 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.


Where is the right place to call SBDebugger::SetAsync(true) to enable asynchronous mode?


Repository:
  rL LLVM

https://reviews.llvm.org/D46588





More information about the lldb-commits mailing list