[Lldb-commits] [lldb] [LLDB] Add external progress bit category (PR #120171)

Jacob Lalonde via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 17 10:05:17 PST 2024


================
@@ -106,9 +107,15 @@ void Progress::ReportProgress() {
   if (completed < m_prev_completed)
     return; // An overflow in the m_completed counter. Just ignore these events.
 
+  // Change the category bit if we're an internal or external progress.
+  uint32_t progress_category_bit =
+      m_origin == ProgressOrigin::eExternal
+          ? lldb::eBroadcastBitExternalProgressCategory
+          : lldb::eBroadcastBitProgressCategory;
----------------
Jlalond wrote:

I understand we have two categories and two defined bits here, but I'm confused what you mean by 

> You'll need to check both eBroadcastBitProgress and eBroadcastBitProgressCategory

Wouldn't I just want to set both bits (and unset internal), and pass that to the debugger to see if there is a listener for either?

https://github.com/llvm/llvm-project/pull/120171


More information about the lldb-commits mailing list