https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/195850
Add the function name and the event mask the listener is waiting for. >From 0eed1de9b90621bac43f68e8b2bfc5d4bd91eb34 Mon Sep 17 00:00:00 2001 From: Ebuka Ezike <[email protected]> Date: Tue, 5 May 2026 13:55:17 +0100 Subject: [PATCH] [lldb] update the listener logs Add the function name and the event mask the listener is waiting for. --- lldb/source/Utility/Listener.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lldb/source/Utility/Listener.cpp b/lldb/source/Utility/Listener.cpp index 57755e1ac5c80..f7188762491e2 100644 --- a/lldb/source/Utility/Listener.cpp +++ b/lldb/source/Utility/Listener.cpp @@ -258,7 +258,10 @@ bool Listener::GetEventInternal( Broadcaster *broadcaster, // nullptr for any broadcaster uint32_t event_type_mask, EventSP &event_sp) { Log *log = GetLog(LLDBLog::Events); - LLDB_LOG(log, "this = {0}, timeout = {1} for {2}", this, timeout, m_name); + + LLDB_LOG(log, + "{0} Listener('{1}')::{2}, timeout = {3}, event_type_mask = {4:x}", + this, m_name, __FUNCTION__, timeout, event_type_mask); std::unique_lock<std::mutex> lock(m_events_mutex); @@ -275,8 +278,8 @@ bool Listener::GetEventInternal( if (result == std::cv_status::timeout) { log = GetLog(LLDBLog::Events); - LLDB_LOGF(log, "%p Listener::GetEventInternal() timed out for %s", - static_cast<void *>(this), m_name.c_str()); + LLDB_LOG(log, "{0} Listener('{1}')::{2}(), timed out", this, m_name, + __FUNCTION__); return false; } else if (result != std::cv_status::no_timeout) { log = GetLog(LLDBLog::Events); _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
