diff options
author | Caroline Tice <ctice@apple.com> | 2010-09-10 04:48:55 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-09-10 04:48:55 +0000 |
commit | 428a9a58facb5aafed162386944f91afa17a1023 (patch) | |
tree | 64cc8b3e5f3b2585089bc2580e9f2d0ab59f0ded /lldb/source/Commands/CommandObjectFile.cpp | |
parent | 6c0cc5e69a5bfdb5aefcbfce9629f9af2cee0979 (diff) | |
download | bcm5719-llvm-428a9a58facb5aafed162386944f91afa17a1023.tar.gz bcm5719-llvm-428a9a58facb5aafed162386944f91afa17a1023.zip |
If the file the user specifies can't be found in the current directory,
and the user didn't specify a particular directory, search for the file
using the $PATH environment variable.
llvm-svn: 113575
Diffstat (limited to 'lldb/source/Commands/CommandObjectFile.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectFile.cpp b/lldb/source/Commands/CommandObjectFile.cpp index 9db40b02904..54bd975a07e 100644 --- a/lldb/source/Commands/CommandObjectFile.cpp +++ b/lldb/source/Commands/CommandObjectFile.cpp @@ -117,7 +117,7 @@ CommandObjectFile::Execute { FileSpec file_spec (file_path); - if (! file_spec.Exists()) + if (! file_spec.Exists() && !file_spec.ResolveExecutableLocation()) { result.AppendErrorWithFormat ("File '%s' does not exist.\n", file_path); result.SetStatus (eReturnStatusFailed); |