summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBValue.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-06 22:10:17 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-06 22:10:17 +0000
commit524e60b4e4a20bd674e5401c866fc56106369226 (patch)
treed8a9015d00ebc4a8a5b2bdd26f2aefcd0092b2a6 /lldb/source/API/SBValue.cpp
parent24ab1ce8c2d8e3429f54b6c2ede5c5ed8fe79192 (diff)
downloadbcm5719-llvm-524e60b4e4a20bd674e5401c866fc56106369226.tar.gz
bcm5719-llvm-524e60b4e4a20bd674e5401c866fc56106369226.zip
Expose the error contained within an SBValue.
Move anything that creates a new process into SBTarget. Marked some functions as deprecated. I will remove them after our new API changes make it through a build cycle. llvm-svn: 115854
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