summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBDebugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r--lldb/source/API/SBDebugger.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index 1ea1258aaf8..a7217964abf 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -1057,9 +1057,15 @@ const char *SBDebugger::GetReproducerPath() const {
: nullptr);
}
-void SBDebugger::SetReproducerPath(const char *p) {
- if (m_opaque_sp)
- m_opaque_sp->SetReproducerPath(llvm::StringRef::withNullAsEmpty(p));
+SBError SBDebugger::ReplayReproducer(const char *p) {
+ SBError sb_error;
+ if (m_opaque_sp) {
+ auto error =
+ m_opaque_sp->SetReproducerReplay(llvm::StringRef::withNullAsEmpty(p));
+ std::string error_str = llvm::toString(std::move(error));
+ sb_error.ref().SetErrorString(error_str);
+ }
+ return sb_error;
}
ScriptLanguage SBDebugger::GetScriptLanguage() const {
OpenPOWER on IntegriCloud