Be a little more permissive in DynamicLoaderMacOS::CanLoadImage
authorJim Ingham <jingham@apple.com>
Sat, 6 May 2017 01:15:47 +0000 (01:15 +0000)
committerJim Ingham <jingham@apple.com>
Sat, 6 May 2017 01:15:47 +0000 (01:15 +0000)
commitabc5d72f023b54a57e93c173b6b575adcce26dbb
tree39b3b48149c475761b68b8a83707e1da1e11d9e1
parent88172fb6039123304e817b81f65b95897fbee337
Be a little more permissive in DynamicLoaderMacOS::CanLoadImage

If we can't find the "is dyld locked" symbol, assume it is safe
to load the image unless we only have 1 image loaded - in which case
we are in _dyld_start and it is definitely NOT safe.

Also add a little better errors to that function, and better logging
in SBProcess.cpp.

<rdar://problem/30174817>

llvm-svn: 302327
lldb/source/API/SBProcess.cpp
lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.cpp