summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBCommandReturnObject.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-06-27 17:25:36 +0000
committerJim Ingham <jingham@apple.com>2012-06-27 17:25:36 +0000
commit70f11f88e3e2b95e030f26a05d1f20893746b410 (patch)
treec25457878a9c530216c707905bdc5a4c8a1d1acc /lldb/source/API/SBCommandReturnObject.cpp
parenta58862310cb510b75d77b8cf156d8bb5192b7e20 (diff)
downloadbcm5719-llvm-70f11f88e3e2b95e030f26a05d1f20893746b410.tar.gz
bcm5719-llvm-70f11f88e3e2b95e030f26a05d1f20893746b410.zip
Make a way to set the result status for Python defined commands, and don't overwrite the status of the result if
the python command has set it. llvm-svn: 159273
Diffstat (limited to 'lldb/source/API/SBCommandReturnObject.cpp')
-rw-r--r--lldb/source/API/SBCommandReturnObject.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/API/SBCommandReturnObject.cpp b/lldb/source/API/SBCommandReturnObject.cpp
index ffff751a10a..4e633e4b9ac 100644
--- a/lldb/source/API/SBCommandReturnObject.cpp
+++ b/lldb/source/API/SBCommandReturnObject.cpp
@@ -160,6 +160,13 @@ SBCommandReturnObject::GetStatus()
return lldb::eReturnStatusInvalid;
}
+void
+SBCommandReturnObject::SetStatus(lldb::ReturnStatus status)
+{
+ if (m_opaque_ap.get())
+ m_opaque_ap->SetStatus(status);
+}
+
bool
SBCommandReturnObject::Succeeded ()
{
OpenPOWER on IntegriCloud