diff options
Diffstat (limited to 'lldb/source/API')
| -rw-r--r-- | lldb/source/API/SBValue.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp index a94b18bfa1f..5f8251ec28a 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -430,9 +430,17 @@ SBValue::GetLocation () return cstr; } +// Deprecated - use the one that takes an lldb::SBError bool SBValue::SetValueFromCString (const char *value_str) { + lldb::SBError dummy; + return SetValueFromCString(value_str,dummy); +} + +bool +SBValue::SetValueFromCString (const char *value_str, lldb::SBError& error) +{ bool success = false; lldb::ValueObjectSP value_sp(GetSP()); LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API)); @@ -451,7 +459,7 @@ SBValue::SetValueFromCString (const char *value_str) if (target_sp) { Mutex::Locker api_locker (target_sp->GetAPIMutex()); - success = value_sp->SetValueFromCString (value_str); + success = value_sp->SetValueFromCString (value_str,error.ref()); } } } |

