[all-commits] [llvm/llvm-project] 169c83: [ldb/Reproducers] Add YamlRecorder and MultiProvider

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Jul 10 12:48:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 169c83208f37f8e5539b1386030d9f3e4b15f16a
      https://github.com/llvm/llvm-project/commit/169c83208f37f8e5539b1386030d9f3e4b15f16a
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-07-10 (Fri, 10 Jul 2020)

  Changed paths:
    M lldb/include/lldb/Utility/Reproducer.h
    M lldb/source/API/SBDebugger.cpp
    M lldb/source/Utility/Reproducer.cpp
    M lldb/unittests/Utility/ReproducerTest.cpp

  Log Message:
  -----------
  [ldb/Reproducers] Add YamlRecorder and MultiProvider

This patch does several things that are all closely related:

 - It introduces a new YamlRecorder as a counterpart to the existing
   DataRecorder. As the name suggests the former serializes data as yaml
   while the latter uses raw texts or bytes.

 - It introduces a new MultiProvider base class which can be backed by
   either a DataRecorder or a YamlRecorder.

 - It reimplements the CommandProvider in terms of the new
   MultiProvider.

Finally, it adds unit testing coverage for the MultiProvider, a naive
YamlProvider built on top of the new YamlRecorder and the existing
MutliLoader.

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




More information about the All-commits mailing list