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/API/SBFileSpec.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/API/SBFileSpec.cpp')
| -rw-r--r-- | lldb/source/API/SBFileSpec.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/API/SBFileSpec.cpp b/lldb/source/API/SBFileSpec.cpp index e1a83999f03..5ec93f3b4ff 100644 --- a/lldb/source/API/SBFileSpec.cpp +++ b/lldb/source/API/SBFileSpec.cpp @@ -61,6 +61,13 @@ SBFileSpec::Exists () const return false; } +bool +SBFileSpec::ResolveExecutableLocation () +{ + if (m_opaque_ap.get()) + return m_opaque_ap->ResolveExecutableLocation (); + return false; +} int SBFileSpec::ResolvePath (const char *src_path, char *dst_path, size_t dst_len) |

