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/Commands/CommandObjectPlugin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectPlugin.cpp') diff --git a/lldb/source/Commands/CommandObjectPlugin.cpp b/lldb/source/Commands/CommandObjectPlugin.cpp index 395dad7..1bc7632 100644 --- a/lldb/source/Commands/CommandObjectPlugin.cpp +++ b/lldb/source/Commands/CommandObjectPlugin.cpp @@ -96,10 +96,13 @@ protected: FileSpec dylib_fspec(path,true); - if (m_interpreter.GetDebugger().LoadPlugin(dylib_fspec)) + if (m_interpreter.GetDebugger().LoadPlugin(dylib_fspec, error)) result.SetStatus(eReturnStatusSuccessFinishResult); else + { + result.AppendError(error.AsCString()); result.SetStatus(eReturnStatusFailed); + } return result.Succeeded(); } -- cgit v1.1