diff options
Diffstat (limited to 'lldb/source')
| -rw-r--r-- | lldb/source/API/SBReproducer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/API/SBReproducer.cpp b/lldb/source/API/SBReproducer.cpp index c3dad774d7f..697878c8f3f 100644 --- a/lldb/source/API/SBReproducer.cpp +++ b/lldb/source/API/SBReproducer.cpp @@ -2940,6 +2940,15 @@ SBRegistry::SBRegistry() { } } +const char *SBReproducer::Capture() { + static std::string error; + if (auto e = Reproducer::Initialize(ReproducerMode::Capture, llvm::None)) { + error = llvm::toString(std::move(e)); + return error.c_str(); + } + return nullptr; +} + const char *SBReproducer::Capture(const char *path) { static std::string error; if (auto e = |

