forked from OSchip/llvm-project
<rdar://problem/12897145>
Changes to lldb made the following fail when it used to work: % cd /tmp % lldb ls error: unable to find executable for '/tmp/ls' Resolving an executable with no relative path was broken, now its fixed. llvm-svn: 178719
This commit is contained in:
parent
d6e6ddd636
commit
9ff5aae5b0
|
@ -178,7 +178,9 @@ TargetList::CreateTarget (Debugger &debugger,
|
|||
std::string cwd_user_exe_path (cwd);
|
||||
cwd_user_exe_path += '/';
|
||||
cwd_user_exe_path += user_exe_path;
|
||||
file.SetFile(cwd_user_exe_path.c_str(), false);
|
||||
FileSpec cwd_file (cwd_user_exe_path.c_str(), false);
|
||||
if (cwd_file.Exists())
|
||||
file = cwd_file;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue