diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-06-20 22:30:48 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-06-20 22:30:48 +0000 |
commit | dd68ab83b9610b4be5ac5c6ba4a5b2711a3d9633 (patch) | |
tree | c0bf97c61d4039ecb2da851eedfad58d205be359 /lldb/source/API/SBCommunication.cpp | |
parent | b3aaf95c4f575ac762449d696251424dd4972474 (diff) | |
download | bcm5719-llvm-dd68ab83b9610b4be5ac5c6ba4a5b2711a3d9633.tar.gz bcm5719-llvm-dd68ab83b9610b4be5ac5c6ba4a5b2711a3d9633.zip |
Test lldb Python API object's default constructor and make sure it is invalid
after initial construction.
There are two exceptions to the above general rules, though; the API objects are
SBCommadnReturnObject and SBStream.
llvm-svn: 133475
Diffstat (limited to 'lldb/source/API/SBCommunication.cpp')
-rw-r--r-- | lldb/source/API/SBCommunication.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/API/SBCommunication.cpp b/lldb/source/API/SBCommunication.cpp index 160640683d1..6b5ddb37cd6 100644 --- a/lldb/source/API/SBCommunication.cpp +++ b/lldb/source/API/SBCommunication.cpp @@ -44,6 +44,12 @@ SBCommunication::~SBCommunication() } bool +SBCommunication::IsValid () const +{ + return m_opaque != NULL; +} + +bool SBCommunication::GetCloseOnEOF () { if (m_opaque) |