summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2017-01-26 02:13:43 +0000
committerJason Molenda <jmolenda@apple.com>2017-01-26 02:13:43 +0000
commit891c777f90cd86e3955cdaae349bffcb29735bc9 (patch)
treea1b6824524b982da87c43b7469b95ab6ed03116f
parentaee15fb20445c2402ff3cda24318195a9603aa9a (diff)
downloadbcm5719-llvm-891c777f90cd86e3955cdaae349bffcb29735bc9.tar.gz
bcm5719-llvm-891c777f90cd86e3955cdaae349bffcb29735bc9.zip
Instead of weak-linking against LoggingSupport framework (which
requires that this private framework be available - and it is not available earlier than macOS 10.12 - to build lldb), dlopen the framework binary on demand in debugserver. We're already using dlsym() to look up all the symbols so there is no need to use weak linking here. <rdar://problem/30158797> llvm-svn: 293135
-rw-r--r--lldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp b/lldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp
index 982367092ed..9c81851c444 100644
--- a/lldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp
@@ -50,6 +50,7 @@ bool LookupSPICalls() {
static bool s_has_spi;
std::call_once(s_once_flag, [] {
+ dlopen ("/System/Library/PrivateFrameworks/LoggingSupport.framework/LoggingSupport", RTLD_NOW);
s_os_activity_stream_for_pid = (os_activity_stream_for_pid_t)dlsym(
RTLD_DEFAULT, "os_activity_stream_for_pid");
s_os_activity_stream_resume = (os_activity_stream_resume_t)dlsym(
OpenPOWER on IntegriCloud