diff options
| author | Greg Clayton <gclayton@apple.com> | 2014-08-15 18:03:30 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2014-08-15 18:03:30 +0000 |
| commit | 39945dcc0ba585b111a06cbe5fb9e9416676a1dc (patch) | |
| tree | 9ab48b58c97246c282c3a416932efcff7e76c314 /lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp | |
| parent | 1a0b735340da46ffaf0f9deb529d8395b337d633 (diff) | |
| download | bcm5719-llvm-39945dcc0ba585b111a06cbe5fb9e9416676a1dc.tar.gz bcm5719-llvm-39945dcc0ba585b111a06cbe5fb9e9416676a1dc.zip | |
Missed a few places where we need to report unreadable executables.
<rdar://problem/17727734>
llvm-svn: 215743
Diffstat (limited to 'lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp')
| -rw-r--r-- | lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp b/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp index 8e925dffaac..b7744c0d1c5 100644 --- a/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp +++ b/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp @@ -287,10 +287,17 @@ PlatformFreeBSD::ResolveExecutable (const FileSpec &exe_file, if (error.Fail() || !exe_module_sp) { - error.SetErrorStringWithFormat ("'%s' doesn't contain any '%s' platform architectures: %s", - exe_file.GetPath().c_str(), - GetPluginName().GetCString(), - arch_names.GetString().c_str()); + if (exe_file.Readable()) + { + error.SetErrorStringWithFormat ("'%s' doesn't contain any '%s' platform architectures: %s", + exe_file.GetPath().c_str(), + GetPluginName().GetCString(), + arch_names.GetString().c_str()); + } + else + { + error.SetErrorStringWithFormat("'%s' is not readable", exe_file.GetPath().c_str()); + } } } } |

