diff options
author | Greg Clayton <gclayton@apple.com> | 2012-02-13 23:10:39 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-02-13 23:10:39 +0000 |
commit | c859e2d52488ef1852e6489716ddf6147402ea64 (patch) | |
tree | 5639f72ea58d93f18e65eb6fb71f76062fbba9e6 /lldb/source/Host/macosx/cfcpp/CFCBundle.cpp | |
parent | 698452bc7e838e3a355029539d7f0be974d4d81d (diff) | |
download | bcm5719-llvm-c859e2d52488ef1852e6489716ddf6147402ea64.tar.gz bcm5719-llvm-c859e2d52488ef1852e6489716ddf6147402ea64.zip |
Full core file support has been added for mach-o core files.
Tracking modules down when you have a UUID and a path has been improved.
DynamicLoaderDarwinKernel no longer parses mach-o load commands and it
now uses the memory based modules now that we can load modules from memory.
Added a target setting named "target.exec-search-paths" which can be used
to supply a list of directories to use when trying to look for executables.
This allows one or more directories to be used when searching for modules
that may not exist in the SDK/PDK. The target automatically adds the directory
for the main executable to this list so this should help us in tracking down
shared libraries and other binaries.
llvm-svn: 150426
Diffstat (limited to 'lldb/source/Host/macosx/cfcpp/CFCBundle.cpp')
-rw-r--r-- | lldb/source/Host/macosx/cfcpp/CFCBundle.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/source/Host/macosx/cfcpp/CFCBundle.cpp b/lldb/source/Host/macosx/cfcpp/CFCBundle.cpp index 6e68af5c597..71b07499366 100644 --- a/lldb/source/Host/macosx/cfcpp/CFCBundle.cpp +++ b/lldb/source/Host/macosx/cfcpp/CFCBundle.cpp @@ -55,6 +55,22 @@ CFCBundle::SetPath (const char *path) return get() != NULL; } +bool +CFCBundle::GetPath (char *dst, size_t dst_len) +{ + CFBundleRef bundle = get(); + if (bundle) + { + CFCReleaser<CFURLRef> bundle_url (CFBundleCopyBundleURL (bundle)); + if (bundle_url.get()) + { + Boolean resolveAgainstBase = 0; + return ::CFURLGetFileSystemRepresentation (bundle_url.get(), resolveAgainstBase, (UInt8 *)dst, dst_len) != 0; + } + } + return false; +} + CFStringRef CFCBundle::GetIdentifier () const { |