diff options
author | Jason Molenda <jmolenda@apple.com> | 2014-08-21 23:22:33 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2014-08-21 23:22:33 +0000 |
commit | 6fd86771f2024d9d7bba770e789e9a287b2c9f7c (patch) | |
tree | fa6a81f8ef4cc8786e80d86db2ecc06046217fe2 | |
parent | 0e0b4c1cda8f9146da74e6523b07b0e32786c736 (diff) | |
download | bcm5719-llvm-6fd86771f2024d9d7bba770e789e9a287b2c9f7c.tar.gz bcm5719-llvm-6fd86771f2024d9d7bba770e789e9a287b2c9f7c.zip |
Two small fixes to get Mac native + debugserver working after the
HostInfo et al changes from Zachary. Changes suggested by Zachary
- fixes the problems I was seeing.
llvm-svn: 216243
-rw-r--r-- | lldb/source/Host/macosx/Host.mm | 4 | ||||
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 8a4263f53bf..efc95c70bbb 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -1255,7 +1255,7 @@ LaunchProcessXPC (const char *exe_path, ProcessLaunchInfo &launch_info, ::pid_t const char *xpc_service = nil; bool send_auth = false; AuthorizationExternalForm extForm; - if ((requested_uid == UINT32_MAX) || (requested_uid == Host::GetEffectiveUserID())) + if ((requested_uid == UINT32_MAX) || (requested_uid == HostInfo::GetEffectiveUserID())) { xpc_service = "com.apple.lldb.launcherXPCService"; } @@ -1392,7 +1392,7 @@ ShouldLaunchUsingXPC(ProcessLaunchInfo &launch_info) #if !NO_XPC_SERVICES bool launchingAsRoot = launch_info.GetUserID() == 0; - bool currentUserIsRoot = Host::GetEffectiveUserID() == 0; + bool currentUserIsRoot = HostInfo::GetEffectiveUserID() == 0; if (launchingAsRoot && !currentUserIsRoot) { diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index f9c43263f38..1057c6d2702 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -687,7 +687,7 @@ GDBRemoteCommunication::StartDebugserverProcess (const char *hostname, // directory. if (HostInfo::GetLLDBPath(ePathTypeSupportExecutableDir, debugserver_file_spec)) { - debugserver_file_spec.GetFilename().SetCString(DEBUGSERVER_BASENAME); + debugserver_file_spec.AppendPathComponent (DEBUGSERVER_BASENAME); debugserver_exists = debugserver_file_spec.Exists(); if (debugserver_exists) { |