summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/macosx/Symbols.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-02-13 23:10:39 +0000
committerGreg Clayton <gclayton@apple.com>2012-02-13 23:10:39 +0000
commitc859e2d52488ef1852e6489716ddf6147402ea64 (patch)
tree5639f72ea58d93f18e65eb6fb71f76062fbba9e6 /lldb/source/Host/macosx/Symbols.cpp
parent698452bc7e838e3a355029539d7f0be974d4d81d (diff)
downloadbcm5719-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/Symbols.cpp')
-rw-r--r--lldb/source/Host/macosx/Symbols.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Host/macosx/Symbols.cpp b/lldb/source/Host/macosx/Symbols.cpp
index 820126674bb..50161def0db 100644
--- a/lldb/source/Host/macosx/Symbols.cpp
+++ b/lldb/source/Host/macosx/Symbols.cpp
@@ -367,7 +367,8 @@ LocateMacOSXFilesUsingDebugSymbols
if (out_exec_fspec)
{
- CFCReleaser<CFDictionaryRef> dict(::DBGCopyDSYMPropertyLists (dsym_url.get()));;
+ CFCReleaser<CFDictionaryRef> dict(::DBGCopyDSYMPropertyLists (dsym_url.get()));
+ bool success = false;
if (dict.get())
{
char uuid_cstr_buf[64];
@@ -381,10 +382,13 @@ LocateMacOSXFilesUsingDebugSymbols
{
++items_found;
out_exec_fspec->SetFile(path, path[0] == '~');
+ if (out_exec_fspec->Exists())
+ success = true;
}
}
}
- else
+
+ if (!success)
{
// No dictionary, check near the dSYM bundle for an executable that matches...
if (::CFURLGetFileSystemRepresentation (dsym_url.get(), true, (UInt8*)path, sizeof(path)-1))
OpenPOWER on IntegriCloud