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/Core/FileSpec.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/Core/FileSpec.cpp')
| -rw-r--r-- | lldb/source/Core/FileSpec.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Core/FileSpec.cpp b/lldb/source/Core/FileSpec.cpp index 7e2e087a545..b4aea9c888a 100644 --- a/lldb/source/Core/FileSpec.cpp +++ b/lldb/source/Core/FileSpec.cpp @@ -22,6 +22,7 @@ #include "lldb/Core/DataBufferHeap.h" #include "lldb/Core/DataBufferMemoryMap.h" #include "lldb/Core/Stream.h" +#include "lldb/Host/Host.h" using namespace lldb; using namespace lldb_private; @@ -414,6 +415,12 @@ FileSpec::Exists () const return GetFileStats (this, &file_stats); } +bool +FileSpec::ResolveExecutableLocation () +{ + return Host::ResolveExecutableLocation (m_directory, m_filename); +} + uint64_t FileSpec::GetByteSize() const { |

