summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2014-09-05 14:48:49 +0000
committerTodd Fiala <todd.fiala@gmail.com>2014-09-05 14:48:49 +0000
commit0ee56ce64006ef1167c239c2c76381890f9a2932 (patch)
tree18473c7b51c02fb6fcb4c832fe024a23e4be848b /lldb/source/Core/Module.cpp
parentd1d1334064ecf8492923c35d6419e967200d01f2 (diff)
downloadbcm5719-llvm-0ee56ce64006ef1167c239c2c76381890f9a2932.tar.gz
bcm5719-llvm-0ee56ce64006ef1167c239c2c76381890f9a2932.zip
Add error report when Module::GetObjectFile() fails to find a plugin to open an object file.
Change by Stephane Sezer. llvm-svn: 217251
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index 6f16ada4982..4e985c0e115 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -1309,6 +1309,10 @@ Module::GetObjectFile()
// unknown.
m_objfile_sp->GetArchitecture (m_arch);
}
+ else
+ {
+ ReportError ("failed to load objfile for %s", GetFileSpec().GetPath().c_str());
+ }
}
}
return m_objfile_sp.get();
OpenPOWER on IntegriCloud