summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-10-31 21:44:39 +0000
committerGreg Clayton <gclayton@apple.com>2012-10-31 21:44:39 +0000
commit48baf7a788272d088cb90d7b53e3415bd860bdf9 (patch)
tree1694d8aee317a90b539c6a09731042b1e8621239 /lldb/tools/debugserver/source/MacOSX/CFBundle.cpp
parent4cb8cdab5e0002f4672c85afd467da8230dff476 (diff)
downloadbcm5719-llvm-48baf7a788272d088cb90d7b53e3415bd860bdf9.tar.gz
bcm5719-llvm-48baf7a788272d088cb90d7b53e3415bd860bdf9.zip
Resolve any bundle paths we are given when the specified executable is a bundle.
llvm-svn: 167175
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/CFBundle.cpp')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/CFBundle.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp b/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp
index a15755044c3..fdcb7cc2fcb 100644
--- a/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp
@@ -85,3 +85,13 @@ CFBundle::GetIdentifier () const
return ::CFBundleGetIdentifier (bundle);
return NULL;
}
+
+
+CFURLRef
+CFBundle::CopyExecutableURL () const
+{
+ CFBundleRef bundle = get();
+ if (bundle != NULL)
+ return CFBundleCopyExecutableURL(bundle);
+ return NULL;
+}
OpenPOWER on IntegriCloud