Skip to content

Commit c24199e

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
1 parent 5e9c9b3 commit c24199e

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
@@ -1631,10 +1631,8 @@ lldb::thread_result_t Debugger::DefaultEventHandler() {
16311631
CommandInterpreter::eBroadcastBitAsynchronousOutputData |
16321632
CommandInterpreter::eBroadcastBitAsynchronousErrorData);
16331633

1634-
if (!m_broadcaster.EventTypeHasListeners(Debugger::eBroadcastBitProgress)) {
1635-
listener_sp->StartListeningForEvents(&m_broadcaster,
1636-
Debugger::eBroadcastBitProgress);
1637-
}
1634+
listener_sp->StartListeningForEvents(&m_broadcaster,
1635+
Debugger::eBroadcastBitProgress);
16381636

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

0 commit comments

Comments
 (0)