[all-commits] [llvm/llvm-project] d49caf: [lldb] Add `source cache dump` and `source cache c...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Mon Jun 26 10:40:25 PDT 2023


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

  Changed paths:
    M lldb/include/lldb/Core/Debugger.h
    M lldb/include/lldb/Core/SourceManager.h
    M lldb/source/Commands/CommandObjectSource.cpp
    M lldb/source/Commands/CommandObjectTarget.cpp
    M lldb/source/Core/SourceManager.cpp
    M lldb/test/API/source-manager/TestSourceManager.py

  Log Message:
  -----------
  [lldb] Add `source cache dump` and `source cache clear` subcommand

Add two new source subcommands: source cache dump and source cache
clear. As the name implies the first one dumps the source cache while
the later clears the cache.

This patch was motivated by a handful of (internal) bug reports related
to sources not being available. Right now those issues can be hard to
diagnose. The new commands give users, as well as us as developers, more
insight into and control over the source cache.

Differential revision: https://reviews.llvm.org/D153685




More information about the All-commits mailing list