diff options
author | Jim Ingham <jingham@apple.com> | 2011-09-23 00:54:11 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-09-23 00:54:11 +0000 |
commit | 87df91b8661737980b58f7d1d05c27534c57f490 (patch) | |
tree | 14e962e25baadb5013438b6686d0c9b1f64922d2 /lldb/source/Host/common/FileSpec.cpp | |
parent | b9a11322b13a13dfcccb79cb34ebfc4a84d65bfd (diff) | |
download | bcm5719-llvm-87df91b8661737980b58f7d1d05c27534c57f490.tar.gz bcm5719-llvm-87df91b8661737980b58f7d1d05c27534c57f490.zip |
Added the ability to restrict breakpoints by function name, function regexp, selector
etc to specific source files.
Added SB API's to specify these source files & also more than one module.
Added an "exact" option to CompileUnit's FindLineEntry API.
llvm-svn: 140362
Diffstat (limited to 'lldb/source/Host/common/FileSpec.cpp')
-rw-r--r-- | lldb/source/Host/common/FileSpec.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp index 8f398e05ada..5e034db6571 100644 --- a/lldb/source/Host/common/FileSpec.cpp +++ b/lldb/source/Host/common/FileSpec.cpp @@ -506,10 +506,10 @@ FileSpec::Compare(const FileSpec& a, const FileSpec& b, bool full) bool FileSpec::Equal (const FileSpec& a, const FileSpec& b, bool full) { - if (full) - return a == b; - else + if (!full && (a.GetDirectory().IsEmpty() || b.GetDirectory().IsEmpty())) return a.m_filename == b.m_filename; + else + return a == b; } |