From 428a9a58facb5aafed162386944f91afa17a1023 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Fri, 10 Sep 2010 04:48:55 +0000 Subject: 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 --- lldb/source/Commands/CommandObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectFile.cpp') 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); -- cgit v1.2.3