diff options
| author | Greg Clayton <gclayton@apple.com> | 2018-04-27 15:45:58 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2018-04-27 15:45:58 +0000 |
| commit | 776cd7ad44881d78e7f674aec092107dbfc1f56d (patch) | |
| tree | e88f3b0604ba07542f776f3a138186eb64ddee93 /lldb/source/Breakpoint/BreakpointResolverFileLine.cpp | |
| parent | 1b5533c9e848940570638f34d05106f1642dec2f (diff) | |
| download | bcm5719-llvm-776cd7ad44881d78e7f674aec092107dbfc1f56d.tar.gz bcm5719-llvm-776cd7ad44881d78e7f674aec092107dbfc1f56d.zip | |
Always normalize FileSpec paths.
Always normalizing lldb_private::FileSpec paths will help us get a consistent results from comparisons when setting breakpoints and when looking for source files. This also removes a lot of complexity from the comparison routines. Modified the DWARF line table parser to use the normalized compile unit directory if needed.
Differential Revision: https://reviews.llvm.org/D45977
llvm-svn: 331049
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointResolverFileLine.cpp')
| -rw-r--r-- | lldb/source/Breakpoint/BreakpointResolverFileLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp b/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp index feef9e70390..ca69ec9e4ef 100644 --- a/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp +++ b/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp @@ -122,7 +122,7 @@ void BreakpointResolverFileLine::FilterContexts(SymbolContextList &sc_list, llvm::StringRef relative_path; if (is_relative) - relative_path = m_file_spec.GetNormalizedPath().GetDirectory().GetStringRef(); + relative_path = m_file_spec.GetDirectory().GetStringRef(); Log * log = GetLogIfAllCategoriesSet(LIBLLDB_LOG_BREAKPOINTS); for(uint32_t i = 0; i < sc_list.GetSize(); ++i) { |

