[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:33 PDT 2025


================
@@ -1534,15 +1534,13 @@ bool Debugger::FormatDisassemblerAddress(const FormatEntity::Entry *format,
                                          const ExecutionContext *exe_ctx,
                                          const Address *addr, Stream &s) {
   FormatEntity::Entry format_entry;
+  if (format)
+    format_entry = *format;
+  else if (exe_ctx != nullptr && exe_ctx->HasTargetScope())
----------------
adrian-prantl wrote:

```suggestion
  else if (exe_ctx && exe_ctx->HasTargetScope())
```

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


More information about the lldb-commits mailing list