Skip to content

Commit 91777ab

Browse files
committed
[lldb] Always listen for progress events in the default event handler
We came to the conclusion that this doesn't matter for VSCode/Xcode because they don't use the default event loop and that other clients who might care should use the setting. Differential revision: https://reviews.llvm.org/D120972 (cherry picked from commit c24199e)
1 parent 148f1d9 commit 91777ab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lldb/source/Core/Debugger.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,10 +1683,8 @@ void Debugger::DefaultEventHandler() {
16831683
CommandInterpreter::eBroadcastBitAsynchronousOutputData |
16841684
CommandInterpreter::eBroadcastBitAsynchronousErrorData);
16851685

1686-
if (!m_broadcaster.EventTypeHasListeners(Debugger::eBroadcastBitProgress)) {
1687-
listener_sp->StartListeningForEvents(&m_broadcaster,
1688-
Debugger::eBroadcastBitProgress);
1689-
}
1686+
listener_sp->StartListeningForEvents(&m_broadcaster,
1687+
Debugger::eBroadcastBitProgress);
16901688

16911689
// Let the thread that spawned us know that we have started up and that we
16921690
// are now listening to all required events so no events get missed

0 commit comments

Comments
 (0)