[Lldb-commits] [PATCH] D134991: [lldb] Add diagnostics

David Spickett via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 11 01:30:53 PDT 2022


DavidSpickett added inline comments.


================
Comment at: lldb/source/Utility/Diagnostics.cpp:43
+  std::lock_guard<std::mutex> guard(m_callbacks_mutex);
+  m_callbacks.push_back(callback);
+}
----------------
DavidSpickett wrote:
> Is it worth adding an assert that the callback is not already in the list?
> 
> (and below, that the callback is in fact in the list)
Is this still relevant?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134991/new/

https://reviews.llvm.org/D134991



More information about the lldb-commits mailing list