[Lldb-commits] [PATCH] D83441: [ldb/Reproducers] Add YamlRecorder and MultiProvider

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 8 16:23:46 PDT 2020


JDevlieghere created this revision.
JDevlieghere added reviewers: labath, teemperor.

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`.

This is the basis of a future patch that I'm working on which will implement a Provider through the `YamlRecorder`.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D83441

Files:
  lldb/include/lldb/Utility/Reproducer.h
  lldb/source/API/SBDebugger.cpp
  lldb/source/Utility/Reproducer.cpp
  lldb/unittests/Utility/ReproducerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83441.276594.patch
Type: text/x-patch
Size: 9334 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200708/af9119c1/attachment-0001.bin>


More information about the lldb-commits mailing list