aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectPlugin.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-04-24 21:29:08 +0000
committerEnrico Granata <egranata@apple.com>2013-04-24 21:29:08 +0000
commite743c78299bb8034c7148e45d69a978af1e30656 (patch)
tree865801528fbb124f0e1d35c4fcf67aa03c896455 /lldb/source/Commands/CommandObjectPlugin.cpp
parent2ad6691be440e88e3719c73ba49c99239ab1d230 (diff)
downloadllvm-e743c78299bb8034c7148e45d69a978af1e30656.zip
llvm-e743c78299bb8034c7148e45d69a978af1e30656.tar.gz
llvm-e743c78299bb8034c7148e45d69a978af1e30656.tar.bz2
<rdar://problem/13209140>
“plugin load” tries to be more helpful when it fails to load a plugin llvm-svn: 180218
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlugin.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectPlugin.cpp5
1 files changed, 4 insertions, 1 deletions
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();
}