summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBValue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
-rw-r--r--lldb/source/API/SBValue.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp
index 6f63f53d745..6fbd5fd1777 100644
--- a/lldb/source/API/SBValue.cpp
+++ b/lldb/source/API/SBValue.cpp
@@ -53,6 +53,17 @@ SBValue::IsValid () const
return (m_opaque_sp.get() != NULL);
}
+SBError
+SBValue::GetError()
+{
+ SBError sb_error;
+
+ if (m_opaque_sp.get())
+ sb_error.SetError(m_opaque_sp->GetError());
+
+ return sb_error;
+}
+
const char *
SBValue::GetName()
{
OpenPOWER on IntegriCloud