[Lldb-commits] [PATCH] D120972: [lldb] Show progress events in the command line driver
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 9 10:36:21 PST 2022
labath added inline comments.
================
Comment at: lldb/source/Core/Debugger.cpp:1624
+ if (!m_broadcaster.EventTypeHasListeners(Debugger::eBroadcastBitProgress)) {
+ listener_sp->StartListeningForEvents(&m_broadcaster,
----------------
JDevlieghere wrote:
> labath wrote:
> > labath wrote:
> > > Why is this conditional on someone else listening for this event? We don't e.g. suppress the "Thread #N" blurb if someone is listening for eBroadcastBitThreadSelected
> > (listening for this event **at a specific point in time**)
> My reasoning was that I didn't want us to handle events if someone else already is. What would be the canonical way to do this? Are you suggestion that we check it in the loop/callback?
I think the canonical way is to not do that. :) Events (except eStateChanged events) can go to multiple listeners and each one can handle them in his own way.
And there already is a setting controlling whether to print them, so anyone not interested can turn them off that way.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120972/new/
https://reviews.llvm.org/D120972
More information about the lldb-commits
mailing list