forked from OSchip/llvm-project
Resolve source paths that start with ~ when doing substitutions.
llvm-svn: 160158
This commit is contained in:
parent
eca5cd20a1
commit
96816e4848
|
@ -388,6 +388,11 @@ LocateMacOSXFilesUsingDebugSymbols
|
|||
char build_src_path[PATH_MAX];
|
||||
::CFStringGetFileSystemRepresentation (actual_src_cfpath, actual_src_path, sizeof(actual_src_path));
|
||||
::CFStringGetFileSystemRepresentation (build_src_cfpath, build_src_path, sizeof(build_src_path));
|
||||
if (actual_src_path[0] == '~')
|
||||
{
|
||||
FileSpec resolved_source_path(actual_src_path, true);
|
||||
resolved_source_path.GetPath(actual_src_path, sizeof(actual_src_path));
|
||||
}
|
||||
module_spec.GetSourceMappingList().Append (ConstString(build_src_path), ConstString(actual_src_path), true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -245,7 +245,8 @@ SymbolVendorMacOSX::CreateInstance (const lldb::ModuleSP &module_sp)
|
|||
const char *node_content = (const char *)::xmlNodeGetContent(value_node);
|
||||
if (node_content)
|
||||
{
|
||||
strncpy(DBGSourcePath, node_content, sizeof(DBGSourcePath));
|
||||
FileSpec resolved_source_path(node_content, true);
|
||||
resolved_source_path.GetPath(DBGSourcePath, sizeof(DBGSourcePath));
|
||||
}
|
||||
}
|
||||
key_node = value_node;
|
||||
|
|
Loading…
Reference in New Issue