From e743c78299bb8034c7148e45d69a978af1e30656 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 24 Apr 2013 21:29:08 +0000 Subject: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “plugin load” tries to be more helpful when it fails to load a plugin llvm-svn: 180218 --- lldb/source/Host/common/DynamicLibrary.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lldb/source/Host/common/DynamicLibrary.cpp') diff --git a/lldb/source/Host/common/DynamicLibrary.cpp b/lldb/source/Host/common/DynamicLibrary.cpp index e1ac3666829..315a675895f 100644 --- a/lldb/source/Host/common/DynamicLibrary.cpp +++ b/lldb/source/Host/common/DynamicLibrary.cpp @@ -20,6 +20,12 @@ DynamicLibrary::DynamicLibrary (const FileSpec& spec, uint32_t options) : m_file m_handle = NULL; } +bool +DynamicLibrary::IsValid () +{ + return m_handle != NULL; +} + DynamicLibrary::~DynamicLibrary () { if (m_handle) -- cgit v1.2.3