[Lldb-commits] [lldb] [lldb] Fix data race in statusline format handling (PR #142489)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 2 14:26:34 PDT 2025


================
@@ -144,9 +144,9 @@ void Statusline::Redraw(bool update) {
   }
 
   StreamString stream;
-  if (auto *format = m_debugger.GetStatuslineFormat())
-    FormatEntity::Format(*format, stream, &symbol_ctx, &exe_ctx, nullptr,
-                         nullptr, false, false);
+  FormatEntity::Entry format = m_debugger.GetStatuslineFormat();
+  FormatEntity::Format(format, stream, &symbol_ctx, &exe_ctx, nullptr, nullptr,
+                       false, false);
 
   Draw(std::string(stream.GetString()));
----------------
adrian-prantl wrote:

Draw(stream.GetString().str())

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


More information about the lldb-commits mailing list