From 776cd7ad44881d78e7f674aec092107dbfc1f56d Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 27 Apr 2018 15:45:58 +0000 Subject: 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 --- lldb/source/Breakpoint/BreakpointResolverFileLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Breakpoint/BreakpointResolverFileLine.cpp') 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) { -- cgit v1.2.3