[all-commits] [llvm/llvm-project] 9f34f1: [lldb] Remove the Diagnostics callback mechanism (...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Jun 26 10:50:16 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f34f1caf558c27c3d5bf879d7514f3c7fab13f8
      https://github.com/llvm/llvm-project/commit/9f34f1caf558c27c3d5bf879d7514f3c7fab13f8
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2026-06-26 (Fri, 26 Jun 2026)

  Changed paths:
    M lldb/include/lldb/Core/Debugger.h
    M lldb/include/lldb/Utility/Diagnostics.h
    M lldb/source/Commands/CommandObjectDiagnostics.cpp
    M lldb/source/Core/Debugger.cpp
    M lldb/source/Utility/Diagnostics.cpp

  Log Message:
  -----------
  [lldb] Remove the Diagnostics callback mechanism (#206132)

The Diagnostics framework had a callback registry (AddCallback /
RemoveCallback) so subsystems could contribute files to a diagnostics
directory, intended to also run during crash handling. That crash-time
path never materialized, and the sole registered callback was the
Debugger copying its file-backed logs. If you had no logging enabled,
the directory would be empty, confusing the users.

Remove the registry and the callback loop in Diagnostics::Create (which
now just writes the in-memory log), and expose the log copying as
Debugger::CopyLogFilesToDirectory, which "diagnostics dump" calls
directly. The dump command now copies the invoking debugger's logs
rather than every debugger's, which is the more useful behavior I want
to double down on.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list