summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2022-03-10 12:48:46 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2022-03-10 12:51:27 -0800
commitc24199e8e885800147aa98ce2b48b5d830bd51ed (patch)
treee3c83a2f647231038291b1cfbfe6d2a70b9a4e8d
parent5e9c9b324a1f7f904b733852d0a05a43e9783cbb (diff)
[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
-rw-r--r--lldb/source/Core/Debugger.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 3d3bc75b34eb..57e7ca4588f3 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -1631,10 +1631,8 @@ lldb::thread_result_t Debugger::DefaultEventHandler() {
CommandInterpreter::eBroadcastBitAsynchronousOutputData |
CommandInterpreter::eBroadcastBitAsynchronousErrorData);
- if (!m_broadcaster.EventTypeHasListeners(Debugger::eBroadcastBitProgress)) {
- listener_sp->StartListeningForEvents(&m_broadcaster,
- Debugger::eBroadcastBitProgress);
- }
+ listener_sp->StartListeningForEvents(&m_broadcaster,
+ Debugger::eBroadcastBitProgress);
// Let the thread that spawned us know that we have started up and that we
// are now listening to all required events so no events get missed